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