#unit-testing
7 articles tagged with #unit-testing
How to unit test Entity Framework Core?
Unit test code that uses Entity Framework Core with test doubles for DbContext and DbSet, so the tests stay fast and focused on the system under test.
Integration tests vs unit tests - where to draw the line
Unit and integration tests serve different boundaries, feedback loops and maintenance costs, with practical guidance for choosing test types and organising a .NET solution.
Test Driven Development (TDD) - is it worth it for our team
Test-Driven Development evaluated through its design benefits, upfront costs, defect feedback, suitable code areas and a gradual adoption approach for teams.
What is a Test Double - stub vs mock vs fake
Test doubles explained through dummy, stub, spy, mock and fake objects, with practical examples showing when stubs, mocks and fakes are appropriate.
Unit Test Best Practices - FIRST properties
FIRST properties explained through fast, independent, repeatable, self-validating and timely unit tests, with practical guidance for keeping a test suite healthy.
How to do TDD (Test-Driven Development)?
Test-Driven Development explained through the Red-Green-Refactor cycle and a step-by-step fund-universe example built with tests first for practical development and design.
How to write unit tests with NUnit and Moq?
Unit testing with NUnit and Moq explained through FIRST properties, the AAA pattern, test doubles, test cases, exceptions, and verification of interactions.