public void GetMinPerimeter_Prime_NPlus1Twice(int area) { var solver = new MinPerimeterRectangle(); var p = solver.GetMinPerimeter(area); p.Should().Be(2 * (area + 1)); }
public void GetMinPerimeter_Composite_ClosestToRoot(int area, int perimeter) { var solver = new MinPerimeterRectangle(); var p = solver.GetMinPerimeter(area); p.Should().Be(perimeter); }
public void GetMinPerimeter_Square_4TimesRoot(int area, int perimeter) { var solver = new MinPerimeterRectangle(); var p = solver.GetMinPerimeter(area); p.Should().Be(perimeter); }