Example #1
0
        public void testDivisionTotal()
        {
            //arrange
            var x = new DoTheMath();

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

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

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

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