C# Corner
Tech
News
Videos
Forums
Trainings
Books
Live
More
Interviews
Events
Jobs
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Tags
No tag found
Content Filter
Articles
Videos
Blogs
Resources
News
Forums
Interviews
Complexity Level
Beginner
Intermediate
Advanced
Refine by Author
[Clear]
Ziggy Rafiq(3)
Anoop Kumar Sharma(3)
Sourav Kayal(3)
John Charles Olamendy(3)
Debendra Dash(2)
Akhil Mittal(2)
Jignesh Trivedi(2)
Vidya Vrat Agarwal(2)
Amit Choudhary(2)
Markus Kalina(2)
Sagar Rane(1)
Saket Adhav(1)
Sibeesh Venu(1)
Kaushik S(1)
Amit Prabhu(1)
Jagan Mohan(1)
Dipti Mehta(1)
Shivprasad (1)
Subarta Ray(1)
Sardar Mudassar Ali Khan (1)
Mohit Kala(1)
Robert Snyder(1)
Rakesh (1)
Krishnanand Sivaraj(1)
Krishnan LN(1)
Ian Stallings(1)
Saurav Kumar(1)
Amit Mohanty(1)
Safyan Yaqoob(1)
Mehr Muhammad Hamza (1)
Esmael Esmaeli(1)
Varun Setia(1)
Narasimha Reddy Chennupalli(1)
Vatsal Shah(1)
Dorothy Molloy(1)
Craig Murphy(1)
des_kenny (1)
Resources
No resource found
Unit Test CRUD operation in Web API using NUnit Testing Framework
Apr 07, 2025.
Testing a Web API Crud Operation's test scenarios using NUnit Framework. Learn how to implement unit testing in C# using the NUnit framework for efficient CRUD operation testing. Explore test case scenarios, NUnit features, and the AAA pattern for reliable, high-quality code validation.
The Ultimate Guide to Writing NUnit Unit Tests in .NET 9
Jan 10, 2025.
Demonstrates how to write robust and reliable unit tests in .NET 9 using NUnit. This article teaches developers how to write effective unit tests in .NET 9 using NUnit, covering test setup, assertions, mocks, and best practices to enhance code reliability and bug reduction.
The Complete Guide to NUnit Testing in C# 13 and .NET 9
Dec 10, 2024.
This comprehensive guide explains NUnit testing in C# 13 with .NET 9 with detailed explanations, modern testing techniques, and practical code examples. Authored by Ziggy Rafiq.
Testing The Exception Thrown In NUnit C#
Jul 25, 2022.
In this article, we will learn how to unit test the code that is throwing an exception in NUnit C#
Getting Started With Unit Testing With NUnit In .Net Core
Jul 02, 2022.
In this article, we will learn about Unit Testing with NUnit in .Net Core.
Syntactical Difference Between MSTest Nunit And Xunit
Aug 20, 2019.
In this article, you will learn about the syntactical difference between MSTest NUnit and XUnit.
Introduction To NUnit Testing Framework
Jan 14, 2017.
In this article we are going to learn the basics of Nunit.
WCF Service Unit Tests Using NUnit With Rhino Mocks And Entity Framework
Nov 22, 2016.
In this article, you will learn how to run WCF Service Unit Tests using NUnit, with Rhino Mocks and Entity Framework.
RESTful Day Eight: Unit Testing And Integration Testing in WebAPI Using NUnit And Moq framework: Part Two
Mar 07, 2016.
In "RESTful Day Eight: Unit Testing And Integration Testing in WebAPI Using NUnit And Moq framework: Part Two," learn to rigorously test WebAPI endpoints, employing NUnit and Moq for comprehensive unit and integration testing, ensuring robustness and reliability in API development.
RESTful Day #7: Unit Testing and Integration Testing in WebAPI using NUnit and Moq framework: Part 1
Mar 01, 2016.
Explore essential aspects of RESTful API development with a focus on Unit Testing and Integration Testing using NUnit and Moq framework in WebAPI. Delve into testing strategies and automation for robust software development.
Creating NUnit Test Project
Nov 11, 2015.
In this article you will learn about Nunit test project.
Selenium Webdriver And NUnit With Visual Studio
Oct 08, 2015.
In this article you will learn Selenium Webdriver and NUnit with Visual Studio.
Automated Code Coverage Implementation and Run MSTest or NUnit UnitTests With Parasoft Dot Test
Jun 12, 2015.
In this article you will learn about Automated Code Coverage Implementation and Run Ms Test or NUnit Unit Tests with Parasoft dot Test.
How to use NUnit and TDD
Feb 28, 2011.
Here you will learn about NUnit and TDD.
5 simple steps to execute unit testing using NUNIT
Nov 22, 2009.
Unit testing is validation and verification methodology where the developers test the individual units of source code. In this tutorial we will try to understand how we can do unit testing using NUNIT framework. This tutorial we will try to understand the 5 important steps to do unit testing using NUNIT.
Unit Testing in .NET Core with NUnit
Feb 17, 2025.
This article covers the basics of NUnit, setting up a test project, writing and running unit tests, using assertions, and best practices for effective test automation. Enhance your .NET applications with reliable, automated testing using NUnit.
Web API Testing with xUnit, NUnit, MSTest in ASP.NET Core
Sep 01, 2023.
writing unit tests, integration tests, and end-to-end tests for a Web API using xUnit testing framework in ASP.NET Core. Keep in mind that I won't be able to provide you with actual working code, but I'll give you a detailed example that you can adapt to your project.
Unit testing in C# .Net Core using NUnit
Aug 22, 2023.
Unit testing in C# with NUnit in .NET Core involves using the NUnit testing framework to create and run unit tests for your C# code within a .NET Core application. NUnit is a popular testing framework that provides a convenient and structured way to verify the correctness of individual units of code, such as methods and functions, in isolation from the rest of the application.
Using Arrange-Act-Assert Pattern And Assertions In NUnit
Jul 16, 2022.
This article will teach about AAA (3A) patterns and assertions in the Unit Test case.
Unit Test In .NET Core Application Using NUnit
Feb 08, 2018.
NUnit is a popular open-source unit testing framework for .NET languages, essential for verifying code in ASP.NET Core. This guide covers setting up NUnit in an MVC project using CLI commands, creating test projects, and running tests.
Model Class Validation Testing Using Nunit
Feb 15, 2017.
In this article, we are going to learn about validating a Model class property that has data annotation, using Nunit.
NUnit With C#
May 18, 2016.
NUnit is a unit-testing framework for .NET applications in which the entire application is isolated into diverse modules and each module is tested independently to ensure that the objective is met.
NUnit's Test Case Source
Nov 08, 2015.
In this article I will show when and how to use NUnit’s TestCaseSourceAttribute and why it is an unsung hero.
Introduction to NUnit
Feb 20, 2015.
This article is about the Unit Testing Framework (NUnit ) using C#.
NUnit: A Sample Application For Explanation
Jan 23, 2015.
This article describes how to use NUnit with a sample application.
Fundamentals of Unit Testing: Unit Test Using Nunit
May 01, 2014.
In this article we will use the Nunit framework to implement a unit test.
Learn Basic Unit Testing With Visual Studio 2012 and Nunit
Jan 23, 2014.
With this article we’ll go step-by-step to set up the environment and a few basic test scenarios.
NUnit With C#
Mar 05, 2013.
NUnit is a unit-testing framework for .NET applications in which the entire application is isolated into diverse modules and each module is tested independently to ensure that the objective is met.
Test-driven development approach in Microsoft.NET using NUnit
Feb 19, 2009.
This is the first article of series of articles related to Test-driven development (TDD) approach in Microsoft.NET. My intention is to illustrate this approach with several real-world examples, and this article is an introduction to the approach and the testing framework NUnit.
Testing project using NUnit
Jan 20, 2006.
This article is for the begineers who wish to learn the basics of NUnit.
NUnit for people who can't work
Jan 02, 2002.
In this lesson I will show how to numerically solve algebraic and ordinary differential equations, and perform numerical integration with Simpson method.
NUnit for people who can't cook - Part I
Dec 13, 2001.
This article should l help C# user to get the most out of NUnit. Therefore, we are going to cover not only the usage of NUnit , but also the small tricks on how to set it up most efficiently.
Testing .Net Components Using NUnit
Mar 08, 2001.
Write unit tests before starting development. Writing test allows me to see immediate results of every code change.
What Is Unit Testing and How to Write Your First Unit Test in C#?
Apr 06, 2026.
Master C# unit testing! This beginner's guide covers the basics, AAA pattern, frameworks (MSTest, NUnit, xUnit), best practices, and common mistakes. Build reliable .NET apps!
A Comprehensive Guide for Enterprise Developers on .NET 9
Jan 07, 2025.
Ziggy Rafiq explains how enterprise developers can leverage high-performance APIs, real-time dashboards, and advanced security features using practical examples and best practices.
The Importance of Unit Testing in .NET Applications
Jan 07, 2025.
Unit testing is a crucial practice in .NET applications that helps ensure code reliability, maintainability, and efficiency. By using frameworks like NUnit, MSTest, and XUnit, developers can automate tests, catch bugs early, and improve code quality.
Getting Started with Unit Testing in ASP.NET Core
Aug 22, 2024.
Learn about essential testing frameworks like xUnit and NUnit, explore mocking and dependency injection techniques, and gain insights into best practices for writing robust test cases. Improve code quality and ensure reliable software with practical testing strategies.
Mock Testing with MOQ
Sep 18, 2023.
This article is about Imporanct and Use of Mock Testing. I have explained Mock Testing in a simple way, and demonstrated the use with the code example.
Implementing A Proxy Server In C# - An Example And Test Case
Dec 09, 2022.
In this tutorial, we provide an example of how to create a simple proxy server in a C# application using the HttpListener class. We also show how to write a test case to verify that the proxy server works as expected.
Writing Efficient Unit Test Cases with Moq and Bogus
Mar 21, 2022.
Writing Efficient Unit Test Cases with Moq and Bogus.
Unit Test In .NET Core Application Using XUnit
Feb 07, 2018.
Learn xUnit for ASP.NET Core unit testing with CLI setup and examples. Explore Fact and Theory attributes, ILogger dependency injection, and test project integration for efficient code validation and debugging.
Unit Testing With MS Tests In C#
Jul 26, 2016.
Unit testing ensures code quality by validating individual functions or methods. It reduces regression testing efforts, enhancing software maintenance. Using frameworks like MS Test or NUnit, developers apply TDD principles to write test cases, ensuring robust applications.
Fundamentals of Unit Testing: Understand Mock Object in Unit Testing
May 04, 2014.
Learn unit testing fundamentals with a focus on mocking using the Moq framework in Visual Studio. Explore how mock objects simulate dependencies, ensuring isolated testing environments. Master essential techniques like lambda expressions and the Setup() method for efficient unit tests in distributed team projects.
Fundamentals of Unit Testing: Understand AreEqual and AreEqual<T> in Unit Testing
Apr 26, 2014.
Learn the fundamentals of unit testing with a focus on Assert.AreEqual and Assert.AreEqual<T>. These assertion methods are crucial in ensuring your code behaves as expected. Mastering them enhances code quality and streamlines the testing process, fostering robust software development.
Code Coverage and Unit Tests in VS2012
Sep 09, 2013.
This article explains when to stop writing Unit Tests of something, such as a simple function.
Scraping Web site Dynamic Data using WATIN
Mar 30, 2013.
Learn how to scrape web pages using Watin and NUnit in C# ASP.NET. Explore techniques for efficient scraping, including navigation, HTML parsing with regular expressions, and utilizing third-party tools. Deploy and configure web applications, navigate pages, and extract data with ease.
Test-driven development approach for WCF Web services
Apr 11, 2009.
In this article, I will show how programmers can use the test-driven development approach to implement and test Web service solutions.
Test-driven development approach for a class library in Microsoft.NET
Apr 09, 2009.
This is the second article of series of articles related to Test-driven development (TDD) approach in Microsoft.NET. My intention is to illustrate this approach with several real-world examples. In this article, I will show how programmers can use the test-driven development approach to implement and test a class library.
Continuous Integration with CruiseControl.net
Mar 07, 2009.
Discusses the advantages of continuous integration going into some detail on automating unit tests and documentation. Includes example build files and configuration
Automated Code Coverage and Unit Tests
Mar 08, 2006.
A short tutorial that explains how to use a code coverage tool and how it can be integrated with unit tests to allow us to determine how well the unit tests exercise our application/classes. Code examples are written using C#.
Marble Solitaire Solution Display in GDI+
Feb 13, 2002.
The application finds and displays solutions to a game of solitaire. The application was written using Visual Studio.NET Version 7.0.9254. The test suite was written using NUnit, which is a .NET port of JUnit.