Ejemplo n.º 1
0
        public void IntegerUtils_Abs1Test()
        {
            int?int1   = new int?(1);
            int?result = (int?)IntegerUtils.Abs(int1);

            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());
        }