示例#1
0
        public void TestAdd()
        {
            SimpleCalc calc   = new SimpleCalc();
            double     result = calc.Add(2, 3);

            Assert.AreEqual(6, result); //intentionally wrong 1st
        }
示例#2
0
        public void TestDivide()
        {
            SimpleCalc calc   = new SimpleCalc();
            double     result = calc.Divide(100, 2);

            Assert.AreEqual(50, result); //correct, but make wrong inside class
        }