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

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

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

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