示例#1
0
            public void IsDevInteger()
            {
                MyMath math = new MyMath();

                Assert.IsInstanceOf(typeof(double), math.Dev(20, 20));
            }
示例#2
0
            public void TestAddCore()
            {
                MyMath math = new MyMath();

                Assert.Greater(math.Add(30, 10), 30);
            }
示例#3
0
            public void TestDevPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(0.5, math.Dev(10, 20));
            }
示例#4
0
            public void TestDevNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Dev(10, 20));
            }
示例#5
0
            public void TestMulNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Mul(10, 20));
            }
示例#6
0
            public void TestMulPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(200, math.Mul(10, 20));
            }
示例#7
0
            public void TestAddNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Sub(10, 20));
            }
示例#8
0
            public void TestSubPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(-10, math.Sub(10, 20));
            }
示例#9
0
            public void TestAddPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(30, math.Add(10, 20));
            }