如何在Visual Studio中添加NUnit

时间:2022-08-08 20:28:18

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中。我在哪里可以下载它们?

2 个解决方案

#1


5  

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)
  • 你是否有兴趣学习nunit(在这种情况下,nunit.org将是一些关于TDD / UnitTesting的书籍的地方)

  • If you're trying to integrate nunit with VisualStudio IDE, I'd go with the external executable approach listed as Option#1 here or TestDriven.net Option#2
  • 如果您正在尝试将nunit与VisualStudio IDE集成,我将使用此处选项#1列出的外部可执行方法或TestDriven.net选项#2

#2


6  

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集成,以及一些文档。

#1


5  

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)
  • 你是否有兴趣学习nunit(在这种情况下,nunit.org将是一些关于TDD / UnitTesting的书籍的地方)

  • If you're trying to integrate nunit with VisualStudio IDE, I'd go with the external executable approach listed as Option#1 here or TestDriven.net Option#2
  • 如果您正在尝试将nunit与VisualStudio IDE集成,我将使用此处选项#1列出的外部可执行方法或TestDriven.net选项#2

#2


6  

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集成,以及一些文档。