15,912,329 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Everything / DevOps / Unit Testing
Artificial Intelligence
Artificial Intelligence
Neural Networks
Machine Learning
Deep Learning
ML.Net
Big Data
Data Science
Tensorflow
ChatGPT
Internet of Things
Internet of Things
Arduino
Edge Device
Raspberry-Pi
Wearables
IoT Edge
Industrial IoT
DevOps
DevOps
Agile
Automation
Continuous Build
Continuous Delivery
Continuous Deployment
Continuous Integration
Deployment
Git
Installation
Integration Testing
Load Testing
Quality Assurance
TFS
Unit Testing
Testing
Containers
Containers
Docker
Kubernetes
Virtual Machine
High Performance Computing
High Performance Computing
GPU
Parallel Processing
Parallelization
Vectorization
Hosted Services
Hosted Services
AWS
Cordova
ExtJS
Google Cloud
Microservices
PhoneGap
Serverless
Storage
Web Hosting
WordPress
Azure
Security
Security
Blockchain
Cryptography
Encryption
Identity
Identity Server
Web Development
Web Development
Blazor
CSS3
Flask
HTML5
Kestrel
LESS
Nginx
Node.js
React
SCSS
Spring
Vue.js
ASP.NET
CSS
Apache
HTML
IIS
XHTML
Mobile Apps
Mobile Apps
Flutter
Ionic
iOS
Nativescript
React Native
Xamarin
Windows Mobile
Android
Desktop Programming
Desktop Programming
Cocoa
Electron
QT
Universal Windows Platform
X11
Windows Forms
ATL
MFC
Swing
Win32
WTL
WPF
XAML
System
Database Development
Database Development
Data Visualization
Elasticsearch
Lucene
MariaDB
MongoDB
NoSQL
PostgreSQL
Redis
MySQL
SQL Server
Productivity Apps and Services
Productivity Apps and Services
LibreOffice
OpenOffice
Sharepoint
Team Communication Tools
Biztalk
Microsoft Office
SAP
Game Development
Game Development
Doom
Kinect
Playstation 4
Playstation 5
Unity
Unreal
XBox
Multimedia
Multimedia
Audio
Image Processing
Video
Audio Video
DirectX
GDI
GDI+
OpenGL
General Programming
General Programming
Algorithms
Compression
Computational Geometry
Emulation
Exceptions
File
Internet
Localization
Memory Management
Optimization
Parser
Performance
Regular Expressions
Sorting
State Machines
Architecture
Design / Graphics
Printing
String
Threads
Usability
Programming Languages
Programming Languages
ASM
Bash
Basic
COBOL
Dart
Go
Haskell
Kotlin
Lua
Pascal
R
Razor
Rust
Scala
Swift
Typescript
Objective C
Visual Basic
VBScript
C++
C#
F#
FORTRAN
Java
Javascript
Perl
Python
Ruby
SQL
PHP
PowerShell
XML
Submit your article
Unit Testing
unit-testing
Great Reads
Angular 7 with .
NET Core 2.
2 - Global Weather (Part 3)
by
Fred Song (Melbourne)
Angular 7 with .
NET Core 2.
2 - Global Weather
Assert DateTime the Right Way MSTest NUnit C# Code
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.
Testing an Angular Controller with Jasmine
by
Naveen Kosana
Learn how to write unit test cases using Jasmine framework for Angular Controllers
On Design,
Testing and Why Some Unit Tests are Waste
by
Łukasz Bownik
The article describes an alternative approach to unit testing.
Latest Articles
Enhancing xUnit Integration Tests with Comprehensive Logging
by
Daan Acohen
Boost your xUnit tests with detailed logging for clearer insights and easier debugging.
Learn EventSourceDB through Unit Testing
by
Zijian
Learn to use EventSourceDB through Unit Testing on xUnit.
NET
On Design,
Testing and Why Some Unit Tests are Waste
by
Łukasz Bownik
The article describes an alternative approach to unit testing.
How to do Multiple Assertions with Fluent Assertions?
by
Daan Acohen
Explains how to do multiple assertions using the Fluent Assertions library,
without multiple validation lines
All Articles
Article
Project
Technical Blog
Tip/Trick
Video
Reference
Asset
top
Sort by Score
Title
Updated
Author
Score
Unit Testing
Assert DateTime the Right Way MSTest NUnit C# Code
15 Sep 2015 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.
C#
.NET
unit-testing
Getting Console Output Within A Unit Test
3 Dec 2012 by
Vasil Trifonov
Getting console output within a unit test
C#
.NET
VS2010
Visual-Studio
unit-testing
reflection
Exposing Fixture Object mocks
28 Sep 2014 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.
patterns
unit-testing
testing
Mocking Session State in an ASP.NET MVC4 Unit Test using Moq
11 Feb 2014 by
harleydk
Mocking Session State in an ASP.NET MVC4 Unit Test using Moq
ASP.NET
unit-testing
Test-induced Design Damage or Why TDD is So Painful
3 Aug 2015 by
Vladimir Khorikov
Test-induced design damage or why TDD is so painful
C#
.NET
Design
Dev
unit-testing
testing
Parallelizing C++ Boost Unit Test Cases
6 Apr 2015 by
N
aveen
An improvisation to boost unit test frame work that will let you run unit test cases in parallel.
VisualC++
C++
Linux
Windows
All-Topics
VS2010
Visual-Studio
Dev
unit-testing
parallel
Testing Private Methods with Visual Studio
3 Dec 2012 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.
C#
.NET
VS2010
Visual-Studio
unit-testing
reflection
Moving to xUnit.net
22 Jul 2015 by
Cybermaxs
Moving to xUnit.net
C#
.NET
All-Topics
Dev
Architect
unit-testing
IConfigurationManager
26 Apr 2016 by
xszaboj
How to test ConfigurationManager class by using interface instead of static class
C#
VS2013
unit-testing
Testing Private Methods/Functions using VSTS Unit Test With C#
5 Aug 2013 by
Shivprasad koirala
How to test private methods/functions using VSTS unit test with C#
C#
unit-testing