Exemplo n.º 1
0
            public void IsDevInteger()
            {
                MyMath math = new MyMath();

                Assert.IsInstanceOf(typeof(double), math.Dev(20, 20));
            }
Exemplo n.º 2
0
            public void TestAddCore()
            {
                MyMath math = new MyMath();

                Assert.Greater(math.Add(30, 10), 30);
            }
Exemplo n.º 3
0
            public void TestDevPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(0.5, math.Dev(10, 20));
            }
Exemplo n.º 4
0
            public void TestDevNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Dev(10, 20));
            }
Exemplo n.º 5
0
            public void TestMulNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Mul(10, 20));
            }
Exemplo n.º 6
0
            public void TestMulPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(200, math.Mul(10, 20));
            }
Exemplo n.º 7
0
            public void TestAddNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Sub(10, 20));
            }
Exemplo n.º 8
0
            public void TestSubPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(-10, math.Sub(10, 20));
            }
Exemplo n.º 9
0
            public void TestAddPositive()
            {
                MyMath math = new MyMath();

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