public void WhenGreatherThan100ReturnException() { var obj = new MathsComponent(); try { string result = obj.FizzBuz(1000); Assert.Fail("no exception thrown"); } catch (Exception ex) { Assert.IsTrue(ex.Message == "Not Allowed beacause it is Greather Than 100"); } }
public void WhenMultipleThreeReturnFizz() { var obj = new MathsComponent(); string result = obj.FizzBuz(3); Assert.AreEqual(result, "Fizz"); }
public void WHenMultipleFiveAndMultipleThreeThanReturnFizzBuzz() { var obj = new MathsComponent(); string result = obj.FizzBuz(15); Assert.AreEqual(result, "FizBuzz"); }
public void WHenMultipleFiveReturnBuzz() { var obj = new MathsComponent(); string result = obj.FizzBuz(5); Assert.AreEqual(result, "Buzz"); }