public static void Fail(string message) { InternalContract.RequireNotNull(message, nameof(message)); GenericAssert <ValidationException> .Fail(message); }
public static void IsTrue(bool mustBeTrue, string errorLocation, string message) { InternalContract.RequireNotNullOrWhiteSpace(message, nameof(message)); GenericAssert <ValidationException> .IsTrue(mustBeTrue, errorLocation, message); }
public static void IsNotNullOrWhiteSpace(string value, string errorLocation = null, string customMessage = null) { GenericAssert <FulcrumAssertionFailedException> .IsNotNullOrWhiteSpace(value, errorLocation, customMessage); }
public static void AreNotEqual(object expectedValue, object actualValue, string errorLocation = null, string customMessage = null) { GenericAssert <FulcrumAssertionFailedException> .AreNotEqual(expectedValue, actualValue, errorLocation, customMessage); }
public static void IsNotDefaultValue <T>(T value, string errorLocation = null, string customMessage = null) { GenericAssert <FulcrumAssertionFailedException> .IsNotDefaultValue(value, errorLocation, customMessage); }
public static void IsNull(object value, string errorLocation = null, string customMessage = null) { GenericAssert <FulcrumAssertionFailedException> .IsNull(value, errorLocation, customMessage); }
public static void Fail(string message) { InternalContract.RequireNotNullOrWhiteSpace(message, nameof(message)); GenericAssert <FulcrumAssertionFailedException> .Fail(null, message); }
public static void InEnumeration(Type enumerationType, string value, string errorLocation = null, string customMessage = null) { InternalContract.RequireNotNull(enumerationType, nameof(enumerationType)); GenericAssert <FulcrumAssertionFailedException> .InEnumeration(enumerationType, value, errorLocation, customMessage); }
public static void MatchesNotRegExp(string regularExpression, string value, string errorLocation = null, string customMessage = null) { InternalContract.RequireNotNullOrWhiteSpace(regularExpression, nameof(regularExpression)); GenericAssert <FulcrumAssertionFailedException> .MatchesNotRegExp(regularExpression, value, errorLocation, customMessage); }