Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / DevOps / unit-testing

Unit Testing

unit-testing

Great Reads

by Mahmud Hasan
The only good thing of Test Driven Development is, it ensures the maximum test coverage but TDD puts you in risk of a week design. DTDT tries to solve this while ensuring maximum test coverage.
by G.TR
how to use NUnit to code tests
by Simeon Sheye
Beyond basic unit tests, how do you choose your tests and when are you done?
by Simeon Sheye
How to manage state and simulate behavior against the system under test.

Latest Articles

by Mahmud Hasan
The only good thing of Test Driven Development is, it ensures the maximum test coverage but TDD puts you in risk of a week design. DTDT tries to solve this while ensuring maximum test coverage.
by G.TR
how to use NUnit to code tests
by Simeon Sheye
Beyond basic unit tests, how do you choose your tests and when are you done?
by Simeon Sheye
How to manage state and simulate behavior against the system under test.

All Articles

Sort by Score

unit-testing 

by Anton Angelov
Code samples in C# how to assert DateTime with delta. Write your own Validator for MSTest or use built-in methods in NUnit.
by Gediminas Geigalas
Expose your mocks directly from the Fixture Object if possible. If there is no real need to complicate things by converting types and introducing extension methods, don’t do it.
by Vasil Trifonov
Getting console output within a unit test
by xszaboj
How to test ConfigurationManager class by using interface instead of static class
by harleydk
Mocking Session State in an ASP.NET MVC4 Unit Test using Moq
by Cybermaxs
Moving to xUnit.net
by Naveen
An improvisation to boost unit test frame work that will let you run unit test cases in parallel.
by Vladimir Khorikov
Test-induced design damage or why TDD is so painful
by Vasil Trifonov
When writing unit tests in most of the cases, we have to test private methods. Let's see how this can be achieved using Visual Studio.
by Shivprasad koirala
How to test private methods/functions using VSTS unit test with C#