Testers are always on the lookout for bugs. It's their job to spot errors, risks, and potential safety hazards in software before they have time to cause any harm. Unit tests are tests that...
Category: Unit Testing
Writing Unit Test for a Void Method in C#: Easy, Medium, and Hard Level
How do you know that you play the game of life on the easy level? Simply, when you have to write a unit test for a method that returns a value. Think about it. You create a class and call the...
So you want to test private methods in your C# code? Good, you are at the right place. The best possible way to test private methods is not to test them at all. In this post, I will explain...
Mastering 10 Unit Testing Best Practices: Your Ultimate Guide
These days, you live in a world where virtually every application is developed in a dynamically changing environment. This environment can consist of a rapidly changing customer base, a...
Do you know why the Titanic was sunk? Because of the iceberg. As you know, the iceberg has two parts. One part is above water, and the other is below the water. Ultimately, the Titanic has...
Life is unpredictable. And unexpected things happen. It's the same with the code. There are places in the code where you need to use error handling to protect the rest of the code execution from...