Click here to Skip to main content
15,031,145 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 James Walsh Jr
Unit testing Fluent Validation methods for data validation
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

All Articles

Sort by Score

Unit Testing 

Please Sign up or sign in to vote.
9 Apr 2019
Fred Song (Melbourne)
Angular 7 with .NET Core 2.2 - Global Weather
Please Sign up or sign in to vote.
18 Feb 2017
Naveen Kosana
Learn how to write unit test cases using Jasmine framework for Angular Controllers
Please Sign up or sign in to vote.
18 Oct 2012
Indranil Pal
Mocking database in Unit Tests using Moq.
Please Sign up or sign in to vote.
6 Jan 2021
Ł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.
Please Sign up or sign in to vote.
19 Oct 2018
Sean Rand
Getting the most from your test runner
Please Sign up or sign in to vote.
21 Jan 2013
Simeon Sheye
Beyond basic unit tests, how do you choose your tests and when are you done?
Please Sign up or sign in to vote.
11 Mar 2012
Andreas Gieriet
How to define RelationAssert as an extension to the VisualStudio Assert class.
Please Sign up or sign in to vote.
20 Sep 2020
F-ES Sitecore
A discussion of what to unit test in your C# code and how to test it, including a section covering MVC
Please Sign up or sign in to vote.
10 Feb 2013
Enrique Albert
Pattern to follow using mock frameworks so non public methods can be tested. The code example is based on the RhinoMock framework but it is easily applicable to any other mock framework.
Please Sign up or sign in to vote.
18 Jan 2017
Sergey Podobry
How-to guide about using KmTest for writing kernel-mode unit tests
Please Sign up or sign in to vote.
21 Jan 2014
Ashley Davis
Documents my experiment building a flowchart with web technologies.
Please Sign up or sign in to vote.
11 Mar 2020
Vassili Kravtchenko-Berejnoi
Use of a narrow-focus strategy in test-driven-development
Please Sign up or sign in to vote.
19 Sep 2012
David Bywaters
Two approaches for unit testing Entity Framework
Please Sign up or sign in to vote.
8 May 2014
Halil ibrahim Kalkan
An implementation of dependency injection, repository and unit of work patterns using Castle Windsor and NHibernate.
Please Sign up or sign in to vote.
27 Dec 2012
WebMaster
Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API.
Please Sign up or sign in to vote.
20 Jun 2012
Henning Dieterichs
This article introduces a library for handling units of measure.
Please Sign up or sign in to vote.
21 Jan 2013
Simeon Sheye
How to manage state and simulate behavior against the system under test.
Please Sign up or sign in to vote.
16 Dec 2013
Seckin Tozlu
How to create a comprehensive test suite for your API
Please Sign up or sign in to vote.
30 May 2016
Evgeny N
Combinatorial tests are helpful to cover a lot of various input data combinations, but their out-of-the box support in testing frameworks can easily bloat your continuous integration server times. Not necessarily...
Please Sign up or sign in to vote.
5 Jun 2013
Lukasz Szyrmer
Use cost of market delay and your learning costs to figure out whether TDD, or its alternatives, makes sense for you
Please Sign up or sign in to vote.
20 Nov 2016
Sibeesh Passion
In this post we will see how we can write unit test cases for our WCF Service with a framework called NUnit. We will also be covering how to mock our dependencies in our test, here we wil be using Rhino Mocks. I am going to use Visual Studio 2015 for the development. I hope […]
Please Sign up or sign in to vote.
5 Jan 2020
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.
Please Sign up or sign in to vote.
11 Oct 2013
ASP.NET Community
ASP.NET MVC: How to start Unit TestingWhy Unit Testing?Why should you write Unit Tests? Here are some points which are mostly mentioned if
Please Sign up or sign in to vote.
8 Nov 2015
Michael Pan
Presenting techniques for effective usage of Google unit test frameworks in embedded environment.
Please Sign up or sign in to vote.
14 May 2014
Marla Sukesh
In this article we will learn how to perform Unit Testing in Asp.Net MVC
Please Sign up or sign in to vote.
21 Nov 2016
onqtam
The article consists of an introduction to the testing framework, motivation behind it's creation (what makes it unique) and a few important points about it's capabilities.
Please Sign up or sign in to vote.
23 Jun 2014
Ehsan.MA
Information on how to use UnitConversionLib in C# for changing units and quantities
Please Sign up or sign in to vote.
9 Feb 2016
Manfredzik
This article shows how to easily write own simple generic mapper with TDD. This is a great excercise to practice TDD that results in fully-working and simple generic mapper that can be used in production projects.
Please Sign up or sign in to vote.
13 Jun 2016
john_1726
MVVM Silverlight Application with Entity Framework and WCF Service
Please Sign up or sign in to vote.
21 Nov 2013
Ralph Varjabedian
With one function call, wrap a class with a proxy in Javascript. A precursor to easy error mocking in node.js using mocha
Please Sign up or sign in to vote.
8 Nov 2018
DMEvans
A discussion of three options for the creation of simple .NET types without affecting the testability of your class
Please Sign up or sign in to vote.
8 May 2017
Habibur Rony
How to write the test method name, guideline for the naming convention, body structure inside the test method, and why need object mocking in the test method for unit testing.
Please Sign up or sign in to vote.
27 Nov 2013
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.
Please Sign up or sign in to vote.
11 May 2014
Giovanni Scerra
Discussion on the root causes of failure when undertaking code refactoring
Please Sign up or sign in to vote.
8 Feb 2018
RahulMittal2018
SQL unit testing with SQL Server data tools (SSDT)
Please Sign up or sign in to vote.
28 Nov 2013
James Coleman
Leveraging Selenium and Image Magick to perform screenshot comparisons for UI regression testing.
Please Sign up or sign in to vote.
12 Jun 2014
_Noctis_
Different ways of achieving unit testing for your projects
Please Sign up or sign in to vote.
28 Jul 2019
Adam Tibi
One of the MVC mantras is that it allows unit testing your controllers. But, that doesn't mean you should. In my opinion, you should focus your unit testing valuable effort in more effective areas as the controller, if done right, doesn't require unit testing.
Please Sign up or sign in to vote.
20 Dec 2015
Anup Raghavendra Hosur
In this article we will be discussing about unit testing and Rhino Mocks
Please Sign up or sign in to vote.
29 Feb 2016
Alexandr Surkov
My expiriance of using C++ with microcontrollers
Please Sign up or sign in to vote.
13 May 2016
DannyFreeman
Writing unit tests for a deep clone method
Please Sign up or sign in to vote.
28 Jun 2016
mvastarelli
How to organize unit-tests within a library without the need for a separate test library.