예제 #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);
 }