public void TryDivideByZeroCastsException() { //Arrange Calculator calc = new Calculator(); //Act double sum = calc.Div(10.0, 0.0); }
public void DivideNumbersReturnSum() { //Arrange Calculator calc = new Calculator(); //Act double sum = calc.Div(10.0, 2.0); //Assert Assert.AreEqual(5.0, sum, 0.01); }