예제 #1
0
        public void CompareSub02Asserts()
        {
            var actual = new MyMath();

            Assert.AreEqual(0, actual.Sub(2, 2));
        }
예제 #2
0
        public void CompareSub03Asserts()
        {
            var actual = new MyMath();

            Assert.IsTrue(actual.Sub(2, 2) == 0);
        }
예제 #3
0
        public void Mul04()
        {
            MyMath math = new MyMath();

            Assert.That(math.Mul(12, 1024), Is.Not.Null);
        }
예제 #4
0
        public void TrueAdd03Asserts()
        {
            var actual = new MyMath();

            Assert.IsTrue(actual.Add(2, 2) == 4);
        }
예제 #5
0
        public void Add01()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(31, math.Add(11, 20));
        }
예제 #6
0
        public void Mul03()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(math.Mul(12, 1024), math.Mul(1024, 12));
        }
예제 #7
0
        public void Sub03()
        {
            MyMath math = new MyMath();

            Assert.AreNotEqual(math.Sub(20, 10), math.Sub(10, 20));
        }
예제 #8
0
        public void CompareIntDiv01Asserts()
        {
            var actual = new MyMath();

            Assert.AreEqual(0, actual.Div(1, 1));
        }
예제 #9
0
        public void Sub01()
        {
            MyMath math = new MyMath();

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

            Assert.IsFalse(math.Sub(-10, 10) == 0);
        }
예제 #11
0
        public void Add04()
        {
            MyMath math = new MyMath();

            Assert.That(math.Add(20, 11), Is.AtLeast(20));
        }
예제 #12
0
        public void Add03()
        {
            MyMath math = new MyMath();

            Assert.IsTrue(math.Add(-10, 10) == 0);
        }
예제 #13
0
        public void Add02()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(31, math.Add(20, 11));
        }
예제 #14
0
        public void CompareMul01Asserts()
        {
            var actual = new MyMath();

            Assert.AreEqual(0, actual.Mul(1, 1));
        }
예제 #15
0
        public void Mul01()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(-10, math.Mul(2, -5));
        }
예제 #16
0
        public void NotNullMul02Asserts()
        {
            var actual = new MyMath();

            Assert.IsNotNull(actual.Mul(2, 2));
        }
예제 #17
0
        public void Mul02()
        {
            MyMath math = new MyMath();

            Assert.IsNotNull(math.Mul(12, 1024));
        }
예제 #18
0
        public void CompareDiv01Asserts()
        {
            var actual = new MyMath();

            Assert.AreEqual(1, actual.Div(0.1, 0.1));
        }
예제 #19
0
        public void IntDiv01()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(2, math.IntDiv(5, 2));
        }