visual-studio 如何在 Visual Studio 中添加 NUnit

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/196740/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 09:45:01  来源:igfitidea点击:

How to add NUnit in Visual Studio

asp.netvisual-studionunit

提问by balaweblog

I need to write test cases for my application. I've chosen NUnit. Please let me know how to add NUnit to my Visual Studio IDE. where can I download them?

我需要为我的应用程序编写测试用例。我选择了 NUnit。请告诉我如何将 NUnit 添加到我的 Visual Studio IDE。我在哪里可以下载它们?

采纳答案by Gishu

Your question is a bit ambiguous..

你的问题有点模棱两可。。

  • Are you interested in learning nunit (In which case nunit.org would be the place to look along with some books on TDD/UnitTesting)
  • If you're trying to integrate nunit with VisualStudio IDE, I'd go with the external executable approach listed as Option#1 hereor TestDriven.net Option#2
  • 您是否有兴趣学习 nunit(在这种情况下,nunit.org 将是查看有关 TDD/UnitTesting 的一些书籍的地方)
  • 如果您尝试将 nunit 与 VisualStudio IDE 集成,我会使用此处列为 Option#1或 TestDriven.net Option#2的外部可执行方法

回答by AshtonKJ

Best place to start would probably be: http://testdriven.net/

最好的起点可能是:http: //testdriven.net/

They have NUnit, and a host of other unit testing suites that can integrate with various versions of Visual Studio, as well as some documentation on them.

他们有 NUnit,以及许多可以与各种版本的 Visual Studio 集成的其他单元测试套件,以及一些关于它们的文档。