public void TestDivisionByZero()
        {
            var simpleArithmetic = new SimpleArithmetic();

            simpleArithmetic.Division(2,0);
        }
        public void TestDivision()
        {
            var simpleArithmetic = new SimpleArithmetic();

            Assert.IsTrue(simpleArithmetic.Division(8, 2) == 4);
        }
Exemplo n.º 3
0
        public void TestDivision()
        {
            var simpleArithmetic = new SimpleArithmetic();

            Assert.IsTrue(simpleArithmetic.Division(8, 2) == 4);
        }
Exemplo n.º 4
0
        public void TestDivisionByZero()
        {
            var simpleArithmetic = new SimpleArithmetic();

            simpleArithmetic.Division(2, 0);
        }
Exemplo n.º 5
0
        public void TestDivisionNaN()
        {
            var simpleArithmetic = new SimpleArithmetic();

            Assert.IsTrue(simpleArithmetic.Division(0, 0) == float.NaN);
        }