Click here to Skip to main content
14,972,994 members
Everything / DevOps / Unit Testing

Unit Testing

unit-testing

Great Reads

by Fred Song (Melbourne)
Angular 7 with .NET Core 2.2 - Global Weather
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 Naveen Kosana
Learn how to write unit test cases using Jasmine framework for Angular Controllers
by Indranil Pal
Mocking database in Unit Tests using Moq.

Latest Articles

by Łukasz Bownik
A simple method to estimate the quality of a unit test suite that can give some insight into the subject beyond regular test coverage.
by F-ES Sitecore
A discussion of what to unit test in your C# code and how to test it, including a section covering MVC
by Vassili Kravtchenko-Berejnoi
Use of a narrow-focus strategy in test-driven-development
by Paulo Zemek
I partially agree with the basic idea, but it fails when we need to deal with an issue no unit-test caught and the good developers and code-reviewers simply can't understand what's going on.

All Articles

Sort by Score

Unit Testing 

Please Sign up or sign in to vote.
15 Sep 2015
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.
Please Sign up or sign in to vote.
3 Dec 2012
Vasil Trifonov
Getting console output within a unit test
Please Sign up or sign in to vote.
28 Sep 2014
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.
Please Sign up or sign in to vote.
11 Feb 2014
harleydk
Mocking Session State in an ASP.NET MVC4 Unit Test using Moq
Please Sign up or sign in to vote.
3 Aug 2015
Vladimir Khorikov
Test-induced design damage or why TDD is so painful
Please Sign up or sign in to vote.
6 Apr 2015
Naveen
An improvisation to boost unit test frame work that will let you run unit test cases in parallel.
Please Sign up or sign in to vote.
3 Dec 2012
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.
Please Sign up or sign in to vote.
22 Jul 2015
Cybermaxs
Moving to xUnit.net
Please Sign up or sign in to vote.
26 Apr 2016
xszaboj
How to test ConfigurationManager class by using interface instead of static class
Please Sign up or sign in to vote.
5 Aug 2013
Shivprasad koirala
How to test private methods/functions using VSTS unit test with C#