ASP.NET MVC > Unit testing

Create normal method in Test class in ASP.NET MVC

How to create a method that is not a test method in the Test class?


To create a method that is not a test method, do not decorate it with [TestMethod]. It can be declared as we declare in normal class.

private void ThisIsGoodMethod()
{

}

This can be called from inside the TestMethod the way it is called from a normal class.

 Views: 6746 | Post Order: 138



Write for us






Hosting Recommendations