示例#1
0
        public void LongUtils_Add3Test()
        {
            long?long1  = default(long?);
            long?long2  = 1L;
            long?result = LongUtils.Add(long1, long2);

            Assert.IsNotNull(result);
            Assert.AreEqual(1, result);
            Assert.AreEqual(1L, result);
        }
示例#2
0
        public void LongUtils_Add1Test()
        {
            long?long1  = 1L;
            long?long2  = 1L;
            long?result = LongUtils.Add(long1, long2);

            Assert.IsNotNull(result);
            Assert.AreEqual(2, result);
            Assert.AreEqual(2L, result);
        }
示例#3
0
        public void LongUtils_Add5Test()
        {
            long?long1  = 1L;
            long?long2  = 1L;
            long?long3  = default(long?);
            long?result = LongUtils.Add(long1, long2, long3);

            Assert.IsNotNull(result);
            Assert.AreEqual(2, result);
            Assert.AreEqual(2L, result);
        }
示例#4
0
        public void LongUtils_Add6Test()
        {
            long?long1  = 1L;
            long?long2  = 1L;
            long?long3  = 1L;
            long?long4  = 1L;
            long?result = LongUtils.Add(long1, long2, long3, long4);

            Assert.IsNotNull(result);
            Assert.AreEqual(4, result);
            Assert.AreEqual(4L, result);
        }
示例#5
0
        public void LongUtils_Add4Test()
        {
            long?long1 = 1L;
            long?long2 = 1L;
            long?long3 = 1L;

            long?result = LongUtils.Add(long1, long2, long3);

            Assert.IsNotNull(result);
            Assert.AreEqual(3, result);
            Assert.AreEqual(3L, result);
        }