Brief Summary
This course teaches you how to write awesome unit tests in C# using the MSTest framework. In just 4 hours, you’ll get to know the ins and outs of unit testing, which is super important for creating quality software applications. Spoiler: it'll boost your skills for the job market!
Key Points
-
Learn to write effective unit tests using C# and MSTest framework.
-
Understand the importance of unit testing for software quality.
-
Get familiar with Visual Studio unit testing attributes.
-
Explore advanced concepts like TestContext and Test Driven Development (TDD).
-
Practice running and debugging unit tests.
Learning Outcomes
-
Write effective unit tests with C# and MSTest.
-
Understand key unit testing concepts and their importance.
-
Gain confidence for unit testing interviews.
-
Handle advanced unit testing techniques.
-
Use Visual Studio tools for efficient testing.
About This Course
Learn how to write effective unit tests using Microsoft MSTest framework to build high quality software applications
What is the course about : This course is all about writing effective unit tests using C# programming language and MSTest framework. Along the way we will learn the concepts related to unit testing. Most organisations these days expect it's employees to have unit testing skills, as unit testing is becoming more and more important for the quality of the software applications.
If you have reached this course by using any of the following terminology, you are at the right place, and you will become an expert in writing unit tests in just 4 hours.
Visual Studio unit testing tutorial
MSTest unit testing tutorial
Dot Net testing framework
C# unit test framework
Visual Studio unit testing framework tutorial
csharp unit testing tutorial
How long is the course : The course is around 4 hours. All are video lectures. You will be able to download all the slides and code samples used in the course.
What will we be covering : We will start with, what is a unit test and we will write our first unit test, followed by benefits of unit tests. and unit test naming conventions.
We will also cover running, debugging, auto generating unit tests, grouping unit tests in visual studio, unit test traits, filtering, playlists, code coverage in visual studio, unit testing exceptions, unit testing private methods, visual studio ordered test, visual studio generic test, unit testing assertions and running unit tests from command line
The following visual studio unit testing attributes are discussed with examples
TestClass attribute
TestMethod attribute
TestInitialize attribute
TestCleanup attribute
ClassInitialize attribute
ClassCleanup attribute
AssemblyInitialize attribute
AssemblyCleanup attribute
TimeOut attribute
Ignore attribute
We also discuss the following concepts related to
advanced unit testing with examples
Understand unit testing concepts and their improtance and power when developing software applications
Write effective unit tests using C# and MSTest framework to test software applications
Will be able to answer most of the unit testing related interview questions
Claes E.
Venkat is clear and to the point, as usual