public void TestDevide() { var cal = new FirstUnitTest.Calculation(); Assert.Equal(10, cal.Divide(20, 2)); }
public void TestMultiple() { var cal = new FirstUnitTest.Calculation(); Assert.Equal(6, cal.Multiple(2, 3)); }
public void TestDevideByZero() { var cal = new FirstUnitTest.Calculation(); Assert.Throws <DivideByZeroException>(() => cal.Divide(2, 0)); }
public void TestAdd() { var cal = new FirstUnitTest.Calculation(); Assert.Equal(4, cal.Add(2, 2)); }