Demonstration of NUnit & Moq.
Developed with Visual Studio 2015 Community
Tech |
---|
C# |
NUnit 3.5 |
Moq 4.5 |
Project To Test | Test Project | Description |
---|---|---|
Application.NUnit.Domain | Application.NUnit.Domain.Tests | Demonstrates the 3A's, Categorizing & setting up test fixtures, using multiple test fixtures for running multiple tests using different arguments, and handling expected exceptions |
Application.Moq.Domain | Application.Moq.Domain.Tests | Demonstrates some of the above and mocking components within a service |
###Resources
Title | Author | Website |
---|---|---|
Moq4 | GitHub | |
Entity Framework Testing with a Mocking Framework (EF6 onwards) | MSDN | |
Test Driven Development | Andras Nemes | dotnetcodr |
KickStart your Unit Testing using Moq | Adarsh Chaurasia | Code Project |