Example #1
0
 public static void Circle()
 {
     Assert.InRange(PatternMatch.Perimeter(circle), 18, 19);
 }
Example #2
0
 public static void Rectangle()
 {
     Assert.Equal(12, PatternMatch.Perimeter(rectangle));
 }
Example #3
0
 public static void Triangle()
 {
     Assert.Equal(6, PatternMatch.Perimeter(triangle));
 }
Example #4
0
 public static void Square()
 {
     Assert.Equal(8, PatternMatch.Perimeter(square));
 }
Example #5
0
 public static void IncorrectInput()
 {
     Assert.Equal(0, PatternMatch.Perimeter("test"));
 }
Example #6
0
 public static void NoInput()
 {
     Assert.Equal(0, PatternMatch.Perimeter());
 }