Пример #1
0
 public void IsFalseWithException(bool value)
 {
     Guard.False(value, () => new Exception(ErrorMessage));
 }
Пример #2
0
 public void IsFalse(bool value)
 {
     Guard.False(value);
 }
Пример #3
0
 public void AddRangeInclusive(int x)
 {
     Guard.NotOutOfRangeInclusive(() => x, x, 10, 20);
 }
Пример #4
0
 public void IsTrue(bool value)
 {
     Guard.True(value);
 }
Пример #5
0
 public void Run(string testName)
 {
     Guard.NotNull(() => testName, testName);
     Guard.NotNullOrEmpty(() => testName, testName);
 }