public static void IsEnum([ValidatedNotNull] object value, string parameterName) { Requires.NotNull(value, parameterName); Assumes.IsTrue(value.GetType().GetTypeInfo().IsEnum); }
public static void Null(object value) { Assumes.IsTrue(value == null); }
public static void Fail(string message) { Assumes.FailFast(message); }
public static void NotNull <T1, T2, T3>(T1 value1, T2 value2, T3 value3) { Assumes.NotNull(value1); Assumes.NotNull(value2); Assumes.NotNull(value3); }
public static void NotNullOrEmpty([ValidatedNotNull] string value) { Assumes.NotNull(value); Assumes.IsTrue(value.Length > 0); }
public static void NotNull <T1, T2>(T1 value1, T2 value2) { Assumes.NotNull(value1); Assumes.NotNull(value2); }
public static void NotNull <T>(T value) { Assumes.IsTrue(value != null); }
public static void IsType <T>([ValidatedNotNull] object value, string parameterName) { Assumes.IsType(value, typeof(T), parameterName); }
public static void IsType([ValidatedNotNull] object value, Type expectedType, string parameterName) { Requires.NotNull(value, parameterName); Assumes.IsTrue(value.GetType() == expectedType); }
public static void IsTrue(bool condition) { Assumes.IsTrue(condition, null); }