예제 #1
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            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
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestDevPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(0.5, math.Dev(10, 20));
            }
예제 #4
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestDevNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Dev(10, 20));
            }
예제 #5
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestMulNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Mul(10, 20));
            }
예제 #6
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestMulPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(200, math.Mul(10, 20));
            }
예제 #7
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestAddNegative()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(45, math.Sub(10, 20));
            }
예제 #8
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestSubPositive()
            {
                MyMath math = new MyMath();

                Assert.AreEqual(-10, math.Sub(10, 20));
            }
예제 #9
0
파일: MyMathTest.cs 프로젝트: temka93/Calc
            public void TestAddPositive()
            {
                MyMath math = new MyMath();

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