public void Compare(int a, int b, int expected) { comp = new MathComp(); int output = comp.CompareTwoNumbers(a, b); Assert.That(output, Is.EqualTo(expected)); }
public void Test_Divider() { comp = new MathComp(); Assert.Throws <DivideByZeroException>(() => comp.Divide(5, 0)); }