What is the best test development tool for development using asp.net 2.0?

We use Asp.Net 2.0 and plan to switch to TDD so that the middle tier can be developed and tested, while others in the team are involved in the area of ​​user interface and database.

Can someone kindly tell me the prerequisites for TDD and which one is the best tool for .net? Thanks...

[UPDATE]

Thank you all for your answers and help.

  • I read an article on TDD and ASP.NET, and he said that "ASP.NET is not very TDD friendly, and ASP.NET MVC is an alternative way to create your application that is more testable than a form application =. Should I switch / modify ASP.NET MVC?

  • What books do you recommend regarding TDD / Test?

+3
source share
9 answers

Unit testing and mockery

I suggest you combine NUnit and Moq to mock an object. You will need more effort to conduct unit testing in your web form application.

  • NUnit is a well-known, lively project and widespread.
  • Moq , on the other hand, uses the latest language features, is easy to use, and is also used by the community.

The fact is that you cannot miss these two.

Switch to MVC if at the beginning of the project

, Asp.net MVC, . , MVC - - Asp.net. . , .

+3
+3

TestDriven.NET - Visual Studio, . MbUnit, NUnit - Rhino.Mocks Moq, .

+1

, "The Art of Unit Testing" . ASP.NET , , , . Mocking, .
alt text http://www.artofunittesting.com/@api/deki/site/logo.png

+1

/ , , ASP.NET. ASP.NET - , -. , , MVC, MVP MVVM.

Asp.net MVC - , , , , ASP.NET. , , , .

, , , , . - ...

spring . LiveUI. , . , .

+1
0

NUnit , , , XUnit.NET. , , . , XUnit.NET , ( ) , , BDD "".

XUnit.NET "" , BDD. ... , . , : SubSpec. Phil Haack, Microsoft, , BDD.

XUnit.NET, Moq . XUnit.NET, Moq - , , , , -, / ..

0

( , ). / , , . Fitnesse. , -. , .

0

# NUnit - , NUnit, .

In addition, ASP.NET MVC in action can start working with ASP.NET MVC and also show you how to unit test your controller code.

0
source

Source: https://habr.com/ru/post/1721846/


All Articles