public void Given_Circle_Radius_5_When_ComputePerimeter_Then_10XPI() { double expected = 10 * Math.PI; Circle input = new Circle(); input.Radius = 5; CircleService service = new CircleService(); service.Target = input; double actual = service.ComputePerimeter(); Assert.AreEqual(expected, actual); }
public void ComputePerimeterTest() { double expected = 0; circle input = new circle(); input.Radius = 0; CircleService operation = new CircleService(); operation.Target = input; double actual = operation.ComputePerimeter(); Assert.AreEqual(expected, actual); }