示例#1
0
        public void CompareAdd02Asserts()
        {
            var actual   = new MyMath();
            var expected = 4;

            Assert.AreEqual(expected, actual.Add(2, 2));
        }
示例#2
0
        public void CompareAdd01Asserts()
        {
            var actual   = new MyMath();
            var expected = 2;

            Assert.AreEqual(expected, actual.Add(1, 1));
        }
示例#3
0
        public void TrueAdd03Asserts()
        {
            var actual = new MyMath();

            Assert.IsTrue(actual.Add(2, 2) == 4);
        }
示例#4
0
        public void Add04()
        {
            MyMath math = new MyMath();

            Assert.That(math.Add(20, 11), Is.AtLeast(20));
        }
示例#5
0
        public void Add03()
        {
            MyMath math = new MyMath();

            Assert.IsTrue(math.Add(-10, 10) == 0);
        }
示例#6
0
        public void Add02()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(31, math.Add(20, 11));
        }
示例#7
0
        public void Add01()
        {
            MyMath math = new MyMath();

            Assert.AreEqual(31, math.Add(11, 20));
        }