Using XUnit Theory and InlineData to Test C# Extension Methods
Let's unit test a C# extension method using XUnit's [Theory] and [InlineData] attributes, so we can write lots of tests in little time!
Let's unit test a C# extension method using XUnit's [Theory] and [InlineData] attributes, so we can write lots of tests in little time!
Let's write unit tests for our ASP.NET 5.0 MVC Controller classes, using the goodness of XUnit, Moq, and C#!
Let's write some unit tests! Using Moq and XUnit, let's see how to unit test a sample ASP.NET 5.0 project's business layer.
Using Moq, we'll create a set of "fluent" mocked classes, which will clean up our tests by allowing us to "chain" methods being mocked.
Let's see how to unit test ASP.NET 5.0 applications using XUnit and Moq!