示例#1
0
        public void IntegerOperationSubtract3With2()
        {
            int expected = -7;

            Assert.AreEqual(expected, IntegerOperations.Subtract3With(2, 3)(6));
        }
示例#2
0
        public void IntegerOperationAdd3With2()
        {
            int expected = 10;

            Assert.AreEqual(expected, IntegerOperations.Add3With(2, 3)(5));
        }
示例#3
0
        public void IntegerOperationSubtractWith()
        {
            int expected = -1;

            Assert.AreEqual(expected, IntegerOperations.SubtractWith(5)(6));
        }
示例#4
0
        public void IntegerOperationDivide3With2()
        {
            int expected = 2;

            Assert.AreEqual(expected, IntegerOperations.Divide3With(10, 2)(2));
        }
示例#5
0
        public void IntegerOperationDivide()
        {
            int expected = 2;

            Assert.AreEqual(expected, IntegerOperations.Divide(5, 2));
        }
示例#6
0
        public void IntegerOperationMultiply3With2()
        {
            int expected = 4;

            Assert.AreEqual(expected, IntegerOperations.Multiply3With(2, 1)(2));
        }
示例#7
0
        public void IntegerOperationAdd()
        {
            int expected = 10;

            Assert.AreEqual(expected, IntegerOperations.Add(5, 5));
        }
示例#8
0
        public void IntegerOperationMultiply()
        {
            int expected = 4;

            Assert.AreEqual(expected, IntegerOperations.Multiply(2, 2));
        }