public void ShouldFailAlphaNumeric() { Assert.Throws <ArgumentException>(delegate { CalculateAreaOfCircle.AreaOfCircle("number"); }); }
public void ShouldPass1() { Assert.AreEqual(5881.25, CalculateAreaOfCircle.AreaOfCircle("43.2673")); }
public void ShouldFailNegativeNumber() { Assert.Throws <ArgumentException>(delegate { CalculateAreaOfCircle.AreaOfCircle("-123"); }); //Assert.Throws(typeof(ArgumentException), Kata.CalculateAreaOfCircle("-123")); }