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 G.TR
how to use NUnit to code tests
by Mike114
How to setup unit test environment on Amazon Elastic Bamboo instance
by Raja.Krishnasamy
Data Driven Testing in MSTest by using Excel as data source and Named Region as table name instead of sheet name
by cynthia_dunlop
Service virtualization undeniably benefits the development process, but it can be both a blessing & a curse for developers. Learn how to minimize the burden on development to achieve maximum acceleration of delivery cycles.
by Dave Clemmer
Using XUnit.net to develop some unit tests, using Fact and Theory form of testing, including happy path tests and tests expected to throw exceptions
by andyharman
Temporarily freeze time by injecting a thread-safe time bubble into your C# code.
by Ralph Varjabedian
Easy error mocking in node.js/mocha/istanbul to achieve full code coverage
by Daan Acohen
Boost your xUnit tests with detailed logging for clearer insights and easier debugging.
by marcus obrien
When starting a new C# project, put in a test project to unit test your code as you develop. This is test-driven development.
by 吴骏明
Generate interface for WebService client stub for unit testing.
by Daan Acohen
Explains how to do multiple assertions using the Fluent Assertions library, without multiple validation lines
by Marcell Lipp
This tip shows how to unit test a private function in C++.
by Carlos Luis Rojas Aragonés
Qunit by example
by Yossi Yaari
A solution for monitoring Events called during test.
by Carlos Luis Rojas Aragonés
Formatting your rails specs with rspec_pacman_formatter
by Caio Hamamura
Run unit tests as you modify your code
by _Noctis_
How to Unit Test private methods using wrappers and preproccesor directives
by Purbasha Ghosh
Stubbing HttpClient calls using NSubstitute framework
by Shivprasad koirala
Code digger analyzes all the possible execution paths of your code and defines the behavior in terms of inputs and outputs.
by Nanda Kumar Chintam
This tip explains how to perform unit testing for business logic written in App_code for a website project.
by George Swan
How to replace the System.Timer with a mock object when testing
by James Walsh Jr
Unit testing Fluent Validation methods for data validation
by Pete O'Hanlon
While we are all familiar with testing standard interface implementations, actually testing Lazy imports can be trickier if you don't follow this trick.
by Purbasha Ghosh
Make MVC Web API code unit testable from controller
by John M. Dlugosz
How can an automated test program test that something is rejected at compile time?
by Ibrahim ben Salah
This tip describes how to write Selenium based tests while allowing you to mock/fake parts of the server components.