Пример #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));
            }