示例#1
0
        public void Compare(int a, int b, int expected)
        {
            comp = new MathComp();
            int output = comp.CompareTwoNumbers(a, b);

            Assert.That(output, Is.EqualTo(expected));
        }
示例#2
0
 public void Test_Divider()
 {
     comp = new MathComp();
     Assert.Throws <DivideByZeroException>(() => comp.Divide(5, 0));
 }