예제 #1
0
        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();
        }
예제 #2
0
        public void Ctor_SetsRadius()
        {
            // Arrange
            double radius = .1;

            // Act
            CircleByRadius sut = new CircleByRadius(radius);

            // Assert
            sut.Radius.Should().Be(radius);
        }