Testing
Stories about writing tests and testing code.
In this edition: keep your tests updated; software as a product; getting prop names from lambda expressions; resolving conflict in remote teams; and default browser problems in Windows 11.
Let's use C# named arguments to make our tests cleaner and more readable.
Do you want to start writing unit tests? and you don't even know where to start? Let's write our first unit tests in C# with MSTest.
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.
C#, .NET, Web Tech, The Catch Block, Blazor, MVC, and more!
You've successfully subscribed to Exception Not Found
Welcome back! You've successfully signed in.
Great! You've successfully signed up.
Your link has expired
Success! Your account is fully activated, you now have access to all content.