From the course: Advanced ASP.NET Core: Unit Testing

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Understand the NUnit framework

Understand the NUnit framework - ASP.NET Core Tutorial

From the course: Advanced ASP.NET Core: Unit Testing

Start my 1-month free trial

Understand the NUnit framework

- NUnit is a unit testing framework for all .NET languages, but its existence dates back almost 30 years long before .NET was even a thing. If you have previously worked with Java, there is a chance you have heard of the JUnit which is a unit testing framework for Java applications. NUnit is derived from JUnit and is used for unit testing .NET applications. The NUnit runs very well with the .NET programming languages like C#, Visual Basic .NET, et cetera. It's open source and can be used with a graphical user interface or a command line, but which are the core NUnit elements? When you want to identify the classes that contain the test methods, you can use the SetUp decorator and when you want to identify the methods that contain the test code, you use the Test decorator. When you want to provide different inputs to the same test method, then you use the TestCase, and if the input that you want to provide to a test…

Contents