
Navigate Visual Studio's test explorer to build, discover, and run NUnit tests, create test playlists, run or debug individual tests with breakpoints, group tests, and enable test execution after builds.
Explore programmer responsibility and the role of unit testing and test-driven design in ensuring safe, reliable software through vows of honesty, frequent incremental releases, and continuous improvement.
Learn to install a unit testing framework and runner in Visual Studio, write assertions with the unit API, run tests from console, and understand setup, teardown, grouping, and code coverage.
Learn the arrange-act-assert pattern for unit testing, setting up the system under test, invoking methods, and verifying outcomes with assertions in NUnit and C#.
Demonstrates set up fixture usage at assembly and namespace levels to initialize and clean up before tests, with one-time set up and tear down methods driving the test runner.
Refactor two health tests into a single parameterized test using the test case attribute to pass damage and expected health values, with data driven options via test case source.
Explore how to implement and test a single FizzBuzz method in C# using NUnit's test case attributes, with a single test method and fixture validating multiple inputs.
Learn to unit test a stack in C# with NUnit, covering empty stack, count after pushes, pop exceptions, and peek behavior across push-pop sequences.
This course is all about writing unit tests using C# programming language and NUnit as a unit testing framework. Today unit testing is an absolutely required skill from any professional developer. Companies expect from developers to know how to write unit tests.
Learning unit testing puts a powerful and very useful tool at your fingertips. Being familiar with unit testing you can write reliable and maintainable applications. It is very hard to lead a project which is not covered by unit tests.
Content and Overview
This course is primarily aimed at beginner developers.
We start with basics of unit testing. What is a unit test? What unit testing frameworks exist? How to run and debug unit tests. After getting acquainted with the basics, we will get to the NUnit framework. Here you’ll learn how to install the framework, set the runner. Then you’ll learn the basics of assertions and arrange-act-assert triplet. Other key features of NUnit are also covered: