What's the first thing every developer does when things go wrong? He debugs the code, of course. Well, sometimes you want to debug the tests a little bit, put Console.WriteLine or whatever...
Category: Unit Testing
Events are critical for any software application because they help to decouple and improve the extensibility of the software system. Therefore, unit testing the code that raises an event is a must to...
If you work with .NET and C#, chances are you’ll need to write tests for your code from time to time. Whether it is to validate the functional specifications of a new feature, check that an API...
How to Use Mutation Testing in C# To Improve Your Unit Tests
Do you want to find bugs in your code? Sounds like a silly question, doesn’t it? Of course, you want to find bugs. That’s why you use unit tests. But what about bugs and holes in unit...
Writing tests is a lot like writing code - you must follow a specific process to ensure your code is working properly. Sometimes, you need to run them in a specific order because of circumstances....
Async methods are a great way to improve the performance of your applications by running tasks in the background. However, unit testing async methods in C# can be tricky. When writing unit tests...