Posts tagged as "testing"

Verifying Method Calls within a class using Mockito Spies
2 min

How to remove the duplication of test scenarios when one method calls another within the same class

Read post ›
How to load test data from a JSON file for xUnit tests
3 min

In this post, we add a custom attribute in xUnit to load test data from a JSON file.

Read post ›
Stubs vs Mocks vs Fakes vs Spy
3 min

We can use Mocks for almost everything when we use a mocking framework, but what is the difference between Stubs, Mocks, Fakes and Spies

Read post ›
A better naming convention for unit tests
2 min

There are a lot of problems with the most common naming convention(MethodName_Scenario_ExpectedResult) for unit test. Let's look at a naming convention that improves test readability

Read post ›
How to automatically set the access token in Insomnia
2 min

How can you test a GraphQl endpoint accessible only to authorised users in Insomnia to test your requests (without jumping through hoops).

Read post ›
'Codinators.XunitHelpers Nuget Package: Update 2
1 min

This release adds an auto approver to automatically update the approval files generated by ApprovalTests.Net

Read post ›
How to use ApprovalTests with xUnit's Theory attribute
1 min

The approval test filename for Theory-based tests is not unique by default. How can we get generate unique filenames for theory-based approval tests.

Read post ›
Codinators.XunitHelpers Nuget Package: Update 1
0 min

This release adds support for reporting multiple assertion failures in one method in xUnit tests

Read post ›
New Release: Codinators.XunitHelpers Nuget Package
0 min

The 1st Release of Codinators.XunitHelpers adds support for loading test data from a JSON file for xUnit Tests

Read post ›
Testing endpoints protected with an XSRF token in Postman
4 min

How can we test the endpoints using an anti-forgery token to protect us from XSRF(Cross-Site Request Forgery) attacks in Postman

Read post ›