Exemplo n.º 1
0
 public static void Fail(string message)
 {
     InternalContract.RequireNotNull(message, nameof(message));
     GenericAssert <ValidationException> .Fail(message);
 }
Exemplo n.º 2
0
 public static void IsTrue(bool mustBeTrue, string errorLocation, string message)
 {
     InternalContract.RequireNotNullOrWhiteSpace(message, nameof(message));
     GenericAssert <ValidationException> .IsTrue(mustBeTrue, errorLocation, message);
 }
Exemplo n.º 3
0
 public static void IsNotNullOrWhiteSpace(string value, string errorLocation = null, string customMessage = null)
 {
     GenericAssert <FulcrumAssertionFailedException> .IsNotNullOrWhiteSpace(value, errorLocation, customMessage);
 }
Exemplo n.º 4
0
 public static void AreNotEqual(object expectedValue, object actualValue, string errorLocation = null, string customMessage = null)
 {
     GenericAssert <FulcrumAssertionFailedException> .AreNotEqual(expectedValue, actualValue, errorLocation, customMessage);
 }
Exemplo n.º 5
0
 public static void IsNotDefaultValue <T>(T value, string errorLocation = null, string customMessage = null)
 {
     GenericAssert <FulcrumAssertionFailedException> .IsNotDefaultValue(value, errorLocation, customMessage);
 }
Exemplo n.º 6
0
 public static void IsNull(object value, string errorLocation = null, string customMessage = null)
 {
     GenericAssert <FulcrumAssertionFailedException> .IsNull(value, errorLocation, customMessage);
 }
Exemplo n.º 7
0
 public static void Fail(string message)
 {
     InternalContract.RequireNotNullOrWhiteSpace(message, nameof(message));
     GenericAssert <FulcrumAssertionFailedException> .Fail(null, message);
 }
Exemplo n.º 8
0
 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);
 }
Exemplo n.º 9
0
 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);
 }