public void IgnoreTest() { Calculator obj = new Calculator(); decimal result = obj.Divide(5, 0); }
public void DivideByZeroExceptionTest() { Calculator obj = new Calculator(); //decimal result = obj.Divide(5, 0); Assert.Throws<DivideByZeroException>(() => obj.Divide(2,2),"Trying to divide by zero...haha"); }