Пример #1
0
        public void IntTest()
        {
            Integer minusOne = new Integer(-1);
            Integer zero     = new Integer(0);
            Integer one      = new Integer(1);
            Integer two      = new Integer(2);

            Assert.AreEqual(zero, plus.Execute(zero, zero));
            Assert.AreEqual(one, plus.Execute(zero, one));
            Assert.AreEqual(one, plus.Execute(one, zero));
            Assert.AreEqual(two, plus.Execute(one, one));

            Assert.AreEqual(zero, plus.Execute(minusOne, one));
            Assert.AreEqual(minusOne, plus.Execute(minusOne, zero));
        }