学习笔记之Unit testing/Integration testing/dotnet test and xUnit

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#单元测试,带你快速入门

转载于:https://www.cnblogs.com/pegasus923/p/8621345.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值