public void InvalidInputCircleTest() { try { Circle circ = new Circle(-3.5); } catch (ArgumentException e) { Assert.AreEqual("Size must be a positive number.", e.Message); } }
public void ValidInputCircleTest() { Circle circ = new Circle(3.5); Assert.AreEqual("38.4845", string.Format("{0:f4}", circ.CalculateSurface())); }