MSTest Unit Testing Tutorial for beginners : C# Unit Testing

Master unit testing using Microsoft MSTest in C#. Learn key concepts and improve software quality in just 4 hours with hands-on video lectures.

  • Overview
  • Curriculum
  • Instructor
  • Review

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
  • What is TestContext

  • Visual Studio data driven unit tests

  • What is test driven development TDD

  • Benefits of TDD

  • 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

Instructor

Profile photo of Venkat Kud
Venkat Kud

Over 15 years of experience in web development, with Microsoft .NET technologies like ASP .NET, C#, SQL Server, AJAX, WCF, JQuery, SSIS, SSAS and SSRS. Currently working as a Technical Architect. Love to share knowledge as I believe in "TO TEACH IS TO LEARN". Got the opportunity to work on world's largest e-commerce and banking applications. Has an excellent track...

More Courses By Venkat Kud
Review
4.9 course rating
4K ratings
ui-avatar of Claes Engelin
Claes E.
4.5
8 months ago

Venkat is clear and to the point, as usual

  • Helpful
  • Not helpful
ui-avatar of TĂş VĹ©
TĂş V.
5.0
8 months ago

The course is very detail about using MSTest. It's good course.

  • Helpful
  • Not helpful
ui-avatar of Yogeeswara Gujalapati
Yogeeswara G.
5.0
8 months ago

nice

  • Helpful
  • Not helpful
ui-avatar of Karthika K
Karthika K.
4.0
8 months ago

good

  • Helpful
  • Not helpful
ui-avatar of Juan Daniel Sanchez Reveles
Juan D. S. R.
5.0
9 months ago

Very important info

  • Helpful
  • Not helpful
ui-avatar of John Swaringen
John S.
4.5
9 months ago

Some technical difficulty with initially showing a blank screen.

  • Helpful
  • Not helpful
ui-avatar of Ronny Mairena Rojas
Ronny M. R.
5.0
9 months ago

Very complete

  • Helpful
  • Not helpful
ui-avatar of Saifuddin Harianawala
Saifuddin H.
5.0
11 months ago

Good Content

  • Helpful
  • Not helpful
ui-avatar of ARAVIND B
Aravind B.
4.0
1 year ago

Basics Covered

  • Helpful
  • Not helpful
ui-avatar of Srikant Kumar
Srikant K.
4.0
1 year ago

informative and helpful

  • Helpful
  • Not helpful
Leave A Reply

Your email address will not be published. Required fields are marked *

Ratings

Courses You May Like

Lorem ipsum dolor sit amet elit
Show More Courses