public void CalculateArea_ReturnsExpectedValue(double radius, double expected) { // Arrange CircleByRadius sut = new CircleByRadius(radius); // Act double actual = sut.CalculateArea(); // Assert Tolerance.AreEqual(actual, expected).Should().BeTrue(); }
public void Ctor_SetsRadius() { // Arrange double radius = .1; // Act CircleByRadius sut = new CircleByRadius(radius); // Assert sut.Radius.Should().Be(radius); }