public void RegularPolygon_Constructor() { Polygon polygon = new RegularPolygon(4, 4 * Feet); polygon.IsRectangle().Should().BeTrue(); polygon.Area.Should().Be(16 * SquareFeet); }
public void RegularPolygon_Constructor() { Polygon polygon = new RegularPolygon(4, new Distance(4, Feet)); polygon.IsRectangle().Should().BeTrue(); polygon.Area.Should().Be(new Area(new SquareFoot(), 16)); }