C# Unit Testing Tutorial

  Рет қаралды 60,815

Raw Coding

Raw Coding

Күн бұрын

Пікірлер: 61
@ivanvincent7534
@ivanvincent7534 2 жыл бұрын
Would you recommend talking about unit tests on a first date?
@RawCoding
@RawCoding 2 жыл бұрын
Yes, yes and yes. Works every time! Only thing more sexy than a programmer is a responsible one!
@igornowicki29
@igornowicki29 Жыл бұрын
Depends if your date is also your technical interviewer.
@laurenceqi7932
@laurenceqi7932 3 жыл бұрын
Can I just say I have only just started watching your videos and I really wish I found your channel earlier, your articulation of these topics is just so well versed at every layer of abstraction. Where you're able to simply descibe what the tooling involves, the utility of it for engineers to the actual use for business strategy itself. I can't thank you enough for investing the time to make these wonderful videos.
@RawCoding
@RawCoding 3 жыл бұрын
Thank you 🙏
@com0oan
@com0oan 9 ай бұрын
10 minutes, already the best video on testing i've seen!
@rafaelurrea2385
@rafaelurrea2385 4 жыл бұрын
Really nice advice all around, really quality content
@RawCoding
@RawCoding 4 жыл бұрын
Thanks
@ariafathi5683
@ariafathi5683 4 жыл бұрын
You are incredible, I really love your videos and they helped me a lot. Thanks
@RawCoding
@RawCoding 4 жыл бұрын
Glad to hear
@JordanBuildz
@JordanBuildz 2 жыл бұрын
Great stuff!! love the flow; thinking about unit tests from the standpoint of a client really paints the picture!
@az1nn
@az1nn Жыл бұрын
Clear and practical explanation, thanks for this video!!!
@anatoliytkachenko7081
@anatoliytkachenko7081 3 жыл бұрын
Anton, Thanks a lot for great video!
@RawCoding
@RawCoding 3 жыл бұрын
Thank you for watching
@madd5
@madd5 4 жыл бұрын
Downloaded to watch later :)
@RawCoding
@RawCoding 4 жыл бұрын
Why download?
@madd5
@madd5 4 жыл бұрын
@@RawCoding I will forget to watch otherwise LOL
@rouzbehzarandi7846
@rouzbehzarandi7846 2 жыл бұрын
Awsome..charming..fantastic...profesional....superb poster back there. by the way nice tut thanks ;)
@funfactor2290
@funfactor2290 Жыл бұрын
since when you can just inherit from any class, doesn't have to be abstract does it ?
@mohammedibrahim5464
@mohammedibrahim5464 2 жыл бұрын
Thanks a lot for the great videos! , Your videos are awesome !!
@RawCoding
@RawCoding 2 жыл бұрын
Glad you like them!
@hozmannew896
@hozmannew896 4 жыл бұрын
Simple but useful, thank you so much
@RawCoding
@RawCoding 4 жыл бұрын
thank you for watching
@reha2341
@reha2341 4 ай бұрын
what's the compiler u r using ??
@crusaderACR
@crusaderACR 3 жыл бұрын
What are you using to show markdown files in Rider?
@RawCoding
@RawCoding 3 жыл бұрын
should be a bundled extension called Markdown
@rade6063
@rade6063 4 жыл бұрын
Great video dude.
@RawCoding
@RawCoding 4 жыл бұрын
Cheers
@mehdihadeli
@mehdihadeli 4 жыл бұрын
@ Raw Coding Thanks for your great video, Please record a separate video for integration testing and E2E testing also. Could you introduce me, some good resources for testing?
@RawCoding
@RawCoding 4 жыл бұрын
Don’t worry it’s coming. And I’d say just practice, can’t read about push-ups
@mehdihadeli
@mehdihadeli 4 жыл бұрын
@@RawCoding thanks
@RawCoding
@RawCoding 4 жыл бұрын
If it helps, I’m currently making videos on testing
@rade6063
@rade6063 4 жыл бұрын
By the way what is this environment where you are coding?
@RawCoding
@RawCoding 4 жыл бұрын
Rider
@rade6063
@rade6063 4 жыл бұрын
@@RawCoding Is it better than Visual Studio enterprise?
@rade6063
@rade6063 4 жыл бұрын
Im asking because you used to use Visual Studio in your previous courses
@RawCoding
@RawCoding 4 жыл бұрын
Yea I like Rider better now
@madd5
@madd5 4 жыл бұрын
@@RawCoding interesting. I'll try Rider.
@HaiNguyen-vu9cj
@HaiNguyen-vu9cj 3 жыл бұрын
Thank you very much.
@RawCoding
@RawCoding 3 жыл бұрын
Thank you for watching
@naodagere8210
@naodagere8210 2 жыл бұрын
Thanks, subscribed.
@SoulGuitarMetal
@SoulGuitarMetal 3 жыл бұрын
What if the tests have bugs?
@RawCoding
@RawCoding 3 жыл бұрын
Then you’ve fucked up
@scigama71
@scigama71 2 жыл бұрын
very good tutorial..thank you
@HAN_USA
@HAN_USA Жыл бұрын
is thi VS code or intelliJ ?
@RawCoding
@RawCoding Жыл бұрын
Rider
@davudsafarli5356
@davudsafarli5356 4 жыл бұрын
Nice! Thanks for the video and explanations. subscribes++; I would like to mention(discuss?) one thing you said about TDD while testing Hashing. If it was only about hashing a string then we could make use of TDD *very* easily, by checking a sha256 of string "AABB" online, and use that result in the test assertions. In this example too, in `arrange` section, we can build an `Item` in such a way that its #content + #url will be "AABB" eventually, and do the same thing I wrote before. But then our tests will be coupled to the implementation, because you may iterate over selectors in reverse order(just an example), and then hashed string would become "BBAA", and tests would fail. So, maybe it's design related problem? Hashing shouldn't go over the selectors at all? It should *only* accept a string(or array of bytes) and make a hash out of it? If we decoupled the the Hashing and Stringifier* logic, then we could make a better unit test for both. I think this way, because when something can't be done with TDD, it's mostly because of design decisions(problems)
@RawCoding
@RawCoding 4 жыл бұрын
> If it was only about hashing a string then we could make use of TDD very easily, by checking a sha256 of string "AABB" online, and use that result in the test assertions. True, I think this is a valid approach, although I think this is more of a chicken and egg problem in our scenario, unless we are using TDD to develop the algorithm. Can't remember if I mentioned it in the video or not but - ideally we want to provide the algorithm from behind an interface, which we can mock. > So, maybe it's design related problem? Hashing shouldn't go over the selectors at all? It should only accept a string(or array of bytes) and make a hash out of it? If we decoupled the the Hashing and Stringifier* logic, then we could make a better unit test for both. Yes I completely agree, we discuss this in the 2nd episode (it will be out on Tuesday) where we talk about mocking and how decoupling helps testing when we can mock. We invert the dependency on algorithm creation and decouple from the parent hashing strategy the way you describe it. > I think this way, because when something can't be done with TDD, it's mostly because of design decisions(problems) Agree
@kimsung2384
@kimsung2384 8 ай бұрын
Really difficult to see the code when watched on phone
@deepak3358
@deepak3358 4 жыл бұрын
Hey! Your videos are awesome and can you please make tutorials for pheonix- live views ? If possible.... Thanks
@RawCoding
@RawCoding 4 жыл бұрын
What’s that?
@deepak3358
@deepak3358 4 жыл бұрын
@@RawCoding basically it is used to make single page applications in which we don't need to worry about heavy JS libraries...we can actually code front end and backend code together...this is the only thing I know as of now...
@RawCoding
@RawCoding 4 жыл бұрын
Sounds like you know more about it than me, I won’t be making a tutorial on something I don’t know
@clearlyunwell
@clearlyunwell 3 жыл бұрын
👍🏽
@RawCoding
@RawCoding 3 жыл бұрын
)
@xxyxungxxraimexx7242
@xxyxungxxraimexx7242 4 жыл бұрын
Cool
@RawCoding
@RawCoding 4 жыл бұрын
indeed
@sreenuksr
@sreenuksr 4 жыл бұрын
First like 👍
@RawCoding
@RawCoding 4 жыл бұрын
:clap:
C# Unit Test Mocking with Moq
44:53
Raw Coding
Рет қаралды 32 М.
C# Integration Testing Tutorial
40:25
Raw Coding
Рет қаралды 37 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Intro to Unit Testing in C# using XUnit
1:42:09
IAmTimCorey
Рет қаралды 423 М.
Building a .NET 6 API Using TDD
1:38:59
Wes Doyle
Рет қаралды 149 М.
How Senior Programmers ACTUALLY Write Code
13:37
Thriving Technologist
Рет қаралды 1,7 МЛН
I Beat Minecraft From One Grass Block
35:27
Beppo
Рет қаралды 7 МЛН
some of the worst API security i've EVER seen
27:53
Low Level
Рет қаралды 268 М.
Learning C# In A Week... Otherwise I Fail University
9:04
DeepSeek is a Game Changer for AI - Computerphile
19:58
Computerphile
Рет қаралды 521 М.
I am not sorry for switching to C
11:34
Sheafification of G
Рет қаралды 180 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН