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