예제 #1
0
            public void TestDivideNegative()
            {
                MyMath math = new MyMath();

                Assert.LessOrEqual(math.Divide(20, 10), 1);
            }
예제 #2
0
            public void TestMultiplePositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(200, math.Multiple(20, 10));
            }
예제 #3
0
            public void TestMultipleNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(150, math.Sub(20, 10));
            }
예제 #4
0
            public void TestSubNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(5, math.Sub(20, 10));
            }
예제 #5
0
            public void TestSubPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(10, math.Sub(20, 10));
            }
예제 #6
0
            public void TestAddNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Add(10, 20));
            }
예제 #7
0
            public void TestAddPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(30, math.Add(10, 20));
            }
예제 #8
0
            public void TestAddGreater()
            {
                MyMath math = new MyMath();

                Assert.Greater(45, math.Add(10, 20));
            }