I have a constructor as follows
public class MyClass
{
public MyClass()
{
}
}
While writing test cases, i used Assert.Pass(). But it throws an exception of type ArguementNullException
I have a constructor as follows
public class MyClass
{
public MyClass()
{
}
}
While writing test cases, i used Assert.Pass(). But it throws an exception of type ArguementNullException
The
SuccessException
is a convenience for a test runner. This allows you to pass a test and record an optional message. The better way to approach this is to just let the test finish without throwing any exceptions or recording failed assertions.More info here: http://www.nunit.org/index.php?p=utilityAsserts&r=2.5