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 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 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.
by Fred Song (Melbourne)
Angular 7 with .NET Core 2.2 - Global Weather
by 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
by Alexandr Surkov
My experience of using C++ with microcontrollers
by DiponRoy
How to delete all rows in EF Core 6 using alternate options
by Halil ibrahim Kalkan
An implementation of dependency injection, repository and unit of work patterns using Castle Windsor and NHibernate.
by onqtam
Intro to testing framework, what makes it unique and points about its capabilities
by Manfredzik
Write your own simple generic mapper with TDD
by Vassili Kravtchenko-Berejnoi
Use of a narrow-focus strategy in test-driven-development
by Peter_Vogel
Unit testing your Web Service API should be just that: unit testing your API. With the wrong approach, though, API testing can take over your whole testing plan. A great unit testing strategy makes sure of two things: You create good tests and you just test your API.
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.
by Ashley Davis
Documents my experiment building a flowchart with web technologies.
by _Noctis_
Different ways of achieving unit testing for your projects
by Zijian
Learn to use EventSourceDB through Unit Testing on xUnit.NET
by WebMaster
Mockito is a mocking framework that tastes really good. It lets you write beautiful tests with clean & simple API.
by Indranil Pal
Mocking database in Unit Tests using Moq.
by Sean Rand
Getting the most from your test runner
by Marla Sukesh
In this article we will learn how to perform Unit Testing in Asp.Net MVC
by Roger C Moore
MVVM Silverlight app with EF and WCF Service
by Łukasz Bownik
The article describes an alternative approach to unit testing.
by mvastarelli
How to organize unit-tests within a library without the need for a separate test library.
by 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
by Andreas Gieriet
How to define RelationAssert as an extension to the VisualStudio Assert class.
by James Coleman
Leveraging Selenium and Image Magick to perform screenshot comparisons for UI regression testing.
by RahulMittal2018
SQL unit testing with SQL Server data tools (SSDT)
by Lukasz Szyrmer
Use cost of market delay and your learning costs to figure out whether TDD, or its alternatives, makes sense for you
by Naveen Kosana
Learn how to write unit test cases using Jasmine framework for Angular Controllers
by DannyFreeman
Writing unit tests for a deep clone method
by Seckin Tozlu
How to create a comprehensive test suite for your API
by David Bywaters
Two approaches for unit testing Entity Framework
by Anup Raghavendra Hosur
In this article we will be discussing about unit testing and Rhino Mocks
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 DMEvans
A discussion of three options for the creation of simple .NET types without affecting the testability of your class
by Habibur Rony
BDD, AAA Structure And Object Mocking in Unit testing
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 Zohaib Waqar
This article provides actionable insights into leveraging NUnit for unit testing in established codebases, enhancing code quality and reliability.
by Ehsan.MA
Information on how to use UnitConversionLib in C# for changing units and quantities
by Henning Dieterichs
This article introduces a library for handling units of measure.
by Michael Pan
Presenting techniques for effective usage of Google unit test frameworks in embedded environment.
by 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.
by Sibeesh Passion
How to write unit test cases for our WCF Service with a framework called NUnit
by Giovanni Scerra
Discussion on the root causes of failure when undertaking code refactoring
by 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.