示例#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));
        }