In some of my unit tests I run the "unhappy path" to show a failure result as another test. My question is when using a fluent Assert such as:
[TestMethod]
public void U05WILLFAILShouldOccursNever()
{
var alpha = Mock.Create<IStingPatrol>();
alpha.Submit();
Mock.Assert(() => alpha.Submit(), Occurs.Never());
}
how do I pass this failure? I know it will fail, that is the purpose of this. but how do I make it so it does not come up as a failure when I run my tests?
[TestMethod]
public void U05WILLFAILShouldOccursNever()
{
var alpha = Mock.Create<IStingPatrol>();
alpha.Submit();
Mock.Assert(() => alpha.Submit(), Occurs.Never());
}
how do I pass this failure? I know it will fail, that is the purpose of this. but how do I make it so it does not come up as a failure when I run my tests?