Stories about writing tests and testing code.
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 Core 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 Core 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.
We needed to see which of many tasks, executing asynchronously, was taking too long. Stopwatch and ContinueWith were the solution!
Should code review include manual testing? Yes! No! Maybe! Opinions are divided. What's yours?
I want to write automated tests. That's what a good developer does and dammit I'm a good developer.
But how? And why is it so difficult to get started?
C#, the web, ASP.NET Core, tutorials, stories, and more!