source code
- https://github.com/haotang923/dotnet/tree/master/src
Unit testing C# code in .NET Core using dotnet test and xUnit | Microsoft Docs
- https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test
Comparing xUnit.net to other frameworks > xUnit.net
- https://xunit.github.io/docs/comparisons
Getting started with xUnit.net (.NET Core / ASP.NET Core) > xUnit.net
- https://xunit.github.io/docs/getting-started-dotnet-core
Creating Unit Tests for ASP.NET MVC Applications (C#) | Microsoft Docs
- https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions-1/unit-testing/creating-unit-tests-for-asp-net-mvc-applications-cs
Iteration #5 – Create unit tests (C#) | Microsoft Docs
- https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions-1/contact-manager/iteration-5-create-unit-tests-cs
Overview of ASP.NET Core MVC | Microsoft Docs
- https://docs.microsoft.com/en-gb/aspnet/core/mvc/overview#what-is-the-mvc-pattern
- ASP.NET Core MVC is a rich framework for building web apps and APIs using the Model-View-Controller design pattern.
Test controller logic in ASP.NET Core | Microsoft Docs
- https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/testing
- Controllers in ASP.NET MVC apps should be small and focused on user-interface concerns. Large controllers that deal with non-UI concerns are more difficult to test and maintain.
Integration tests in ASP.NET Core | Microsoft Docs
- https://docs.microsoft.com/en-gb/aspnet/core/testing/integration-testing
C#单元测试,带你快速入门