Esempio n. 1
0
        public void testDivisionTotal()
        {
            //arrange
            var x = new DoTheMath();

            x.performMath(1, 2, "divide");
            Assert.AreEqual(x.total, .5);
        }
Esempio n. 2
0
        public void testSubtractionTotal()
        {
            //arrange
            var x = new DoTheMath();

            x.performMath(1, 2, "subtract");
            Assert.AreEqual(x.total, -1);
        }
Esempio n. 3
0
        public void testMultiplicationTotal()
        {
            //arrange
            var x = new DoTheMath();

            x.performMath(1, 2, "multiply");
            Assert.AreEqual(x.total, 2);
        }
Esempio n. 4
0
        public void testAdditionTotal()
        {
            //arrange
            var x = new DoTheMath();

            x.performMath(1, 2, "add");
            Assert.AreEqual(x.total, 3);
        }