예제 #1
0
 public static void NotNullUnconstrained_Passes_ForStruct()
 => Demand.NotNullUnconstrained(new My.EmptyStruct());
예제 #2
0
 public static void NotNullUnconstrained_Passes_ForNonNull()
 => Demand.NotNullUnconstrained(new Object());
예제 #3
0
 public static void NotNull_Passes_ForNonNull() => Demand.NotNull(new Object());
예제 #4
0
        public static void NotNull_Passes_ForNull()
        {
            Object obj = null;

            Demand.NotNull(obj);
        }
예제 #5
0
 public static void NotNullOrEmpty_Passes_ForNullString() => Demand.NotNullOrEmpty(null);
예제 #6
0
 public void Range_Fails_ForFalse()
 => Assert.Throws <DebugAssertFailedException>(() => Demand.Range(false));
예제 #7
0
 public static void True_Passes_ForFalse() => Demand.True(false);
예제 #8
0
 public static void True(bool testCondition) => Demand.True(testCondition);
예제 #9
0
 public static void State_Passes_ForFalse() => Demand.State(false);
예제 #10
0
 public static void True_Passes_ForTrue() => Demand.True(true);
예제 #11
0
 public static void State_Passes_ForTrue() => Demand.State(true);
예제 #12
0
 public void NotNullOrEmpty_Fails_ForEmptyString()
 => Assert.Throws <DebugAssertFailedException>(() => Demand.NotNullOrEmpty(String.Empty));
예제 #13
0
 public static void NotNullOrEmpty_Passes_ForEmptyString() => Demand.NotNullOrEmpty(String.Empty);
예제 #14
0
        public static void NotNullUnconstrained_Passes_ForNull()
        {
            Object obj = null;

            Demand.NotNullUnconstrained(obj);
        }
예제 #15
0
 public static void Range_Passes_ForTrue() => Demand.Range(true);
예제 #16
0
        public void NotNullUnconstrained_Fails_ForNull()
        {
            Object obj = null;

            Assert.Throws <DebugAssertFailedException>(() => Demand.NotNullUnconstrained(obj));
        }
예제 #17
0
 public static void Range_Passes_ForFalse() => Demand.Range(false);
예제 #18
0
 public static void False(bool testCondition) => Demand.True(!testCondition);
예제 #19
0
 public static void NotNullOrEmpty_Passes_ForNonNullOrEmptyString()
 => Demand.NotNullOrEmpty("value");