コード例 #1
0
 private static Action CreateCircleFromRadius(double radius) => () => ShapeFactory.CircleFromRadius(radius);
コード例 #2
0
 private static Circle?ReadCircle()
 => TryReadDouble("Radius:", out var radius)
         ? ShapeFactory.CircleFromRadius(radius)
         : null;
コード例 #3
0
 public void CircleFromRadius_PositiveRadius_Success()
 => ShapeFactory.CircleFromRadius(1).Should().NotBeNull();