Unit Testing C# Code - Tutorial for Beginners

preview_player
Показать описание
Unit testing C# code - Tutorial for beginners

Subscribe for more videos

00:00 What is Automated Testing
02:42 Benefits of Automated Testing
05:20 Types of Tests
09:22 Test Pyramid
12:18 The Tooling
15:13 Source Code
16:14 Writing Your First Unit Test
26:44 Testing All the Execution Paths
32:07 Refactoring With Confidence
34:24 Using NUnit in Visual Studio
38:25 What is Test-Driven Development
41:46 Course Structure
43:34 Summary

STAY IN TOUCH
Рекомендации по теме
Комментарии
Автор

I took your Double Your Coding Speed course back in late 2014 / early 2015. I knew you were a rising teaching star when saw how well you presented the course. Every course of yours that I enrolled in since then has been top tier.

waynegreen
Автор

I love that you can actually watch these videos on mobile. Too many other channels don't zoom in on the code window.

dbassett
Автор

Mosh I'm really glad I stumbled across your videos, you're really awesome at teaching how to code, I'm looking forward to keeping up on your videos on your web site.

camiloospinamolano
Автор

Thanks for this video, Mosh. Also helpful as an introduction to unit testing in general, independent from any programming language.

samsunny
Автор

24:25 You can run a single test with right click in the body method.

nazgulresebo
Автор

It's a very long video but every second of it is totally worth it.

kajals
Автор

I watched the entire video and I'm hyped about the full course. Maybe I will buy it....

ivan_
Автор

excellent! i was riveted/invested the entire time. excellent pace ! excellent information while showing examples. watching all your videos !

hollyferree
Автор

You have no idea how helpful this video was for me. Every single part of it was awesome, I understood everything and you make it seem way easier than I thought. Thanks for sharing!! (I know that its a year later but It still being useful :D)

jorgepiantini
Автор

the only channel that do not provide tutorial without being boring.

yougiely
Автор

Really got a very clear idea on what is TDD !! Thanks Mosh

nithyas
Автор

You actually can run one test at a time in MSTest inside of the test explorer window

Hudgi
Автор

Thank you so much Mosh, easy to understand, and totally increased my understanding

mohdotnet
Автор

The entire lecture is helpful. But there is an awesome little tidbit around the 32-minute mark that may be obvious to more experienced developers but less so to junior folks like me: Well defined and properly named unit tests can help developers new to an existing code base quickly understand the intended function of the classes being tested.

pathofmaximumresistance
Автор

It is possibly common knowledge to most but 'edge cases' (10:20) is testing for extremes of possibility when interacting with your program, like input values which are technically legal but are highly improbable - the effective power bug on iPhone was due to a bug from an unconsidered edge case of text message input

Driftload
Автор

you can run/debug single test, Right click in the method body, u will get both Run Tests/Debug Tests (ctrl+R, ctrl+T)

Gowthamreddykunduru
Автор

Hey Mosh, it seems like your Dropbox link for the Source code is not curretnly working. Can you fix it for me ?

jaythanki
Автор

Been looking for something like this all day, it's all super basic and is just throwing exceptions or it's some crazy mess of tools. I can finally get to work on adding unit tests.

tryfanevans
Автор

great video, i have a little question!! how a Test controller if a use session variables in ther constructor, or is possible to simulate a session? thanks for all!!

glennpavel
Автор

great tutorial .. i learned a lot about testing today.. thank you so much

JayRGabz