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.

No comments:

Post a Comment

How to register multiple implementations of the same interface in Asp.Net Core?

 Problem: I have services that are derived from the same interface. public interface IService { } public class ServiceA : IService { ...