public void IntegerUtils_CompareTo3Test() { int?int1 = new int?(1); int?int2 = null; int?result = IntegerUtils.CompareTo(int1, int2); Assert.AreEqual(null, result); }
public void IntegerUtils_CompareTo1Test() { int?int1 = new int?(1); int?int2 = new int?(1); int?result = IntegerUtils.CompareTo(int1, int2); Assert.IsNotNull(result); Assert.AreEqual((byte)0, (byte)result); Assert.AreEqual((short)0, (short)result); Assert.AreEqual(0, result); Assert.AreEqual(0L, (long)result); Assert.AreEqual(0.0f, (float)result, 1.0f); Assert.AreEqual(0.0, (double)result, 1.0); Assert.AreEqual("0", result.ToString()); }