Class FailException
Exception thrown when Assert.Fail is called.
public class FailException : XunitException, ISerializable, IAssertionException
- Inheritance
-
FailException
- Implements
- Inherited Members
Methods
ForFailure(string?)
Creates a new instance of the FailException class to be thrown when the user calls Assert.Fail.
public static FailException ForFailure(string? message)
Parameters
messagestringThe user's failure message.