public static void GreatherThanEqualTo(sbyte actual, sbyte expected) { if (!(actual >= expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void NotEqualTo(sbyte actual, sbyte expected) { if (!(actual != expected)) { throw ContractException.GenerateException(actual, expected); } }
[Conditional("DEBUG"), Conditional("ASSERT")] public static void LessThanEqualTo(double actual, double expected) { if (!(actual <= expected)) { throw ContractException.GenerateException(actual, expected); } }
[Conditional("DEBUG"), Conditional("ASSERT")] public static void LessThan(float actual, float expected) { if (!(actual < expected)) { throw ContractException.GenerateException(actual, expected); } }
[Conditional("DEBUG"), Conditional("ASSERT")] public static void GreatherThan(double actual, double expected) { if (!(actual > expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void EqualTo(bool actual, bool expected) { if (!(actual == expected)) { throw ContractException.GenerateException(actual, expected); } }
[Conditional("DEBUG"), Conditional("ASSERT")] public static void GreatherThanEqualTo(float actual, float expected) { if (!(actual >= expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void LessThanEqualTo(byte actual, byte expected) { if (!(actual <= expected)) { throw ContractException.GenerateException(actual, expected); } }
[Conditional("DEBUG"), Conditional("ASSERT")] public static void NotEqualTo(int actual, int expected) { if (!(actual != expected)) { throw ContractException.GenerateException(actual, expected); } }
[Conditional("DEBUG"), Conditional("ASSERT")] public static void EqualTo(short actual, short expected) { if (!(actual == expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void LessThan(double actual, double expected) { if (!(actual < expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void GreatherThan(float actual, float expected) { if (!(actual > expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void LessThan(short actual, short expected) { if (!(actual < expected)) { throw ContractException.GenerateException(actual, expected); } }
public static void NotEqualTo(ushort actual, ushort expected) { if (!(actual != expected)) { throw ContractException.GenerateException(actual, expected); } }