Class TrueException
Exception thrown when Assert.True fails.
public class TrueException : XunitException, ISerializable, IAssertionException
- Inheritance
-
TrueException
- Implements
- Inherited Members
Methods
ForNonTrueValue(string?, bool?)
Creates a new instance of the TrueException class to be thrown when
a non-true value was provided.
public static TrueException ForNonTrueValue(string? message, bool? value)
Parameters
messagestringThe message to be displayed, or
nullfor the default messagevaluebool?The actual value