示例#1
0
 public void VerySmallTrianglesCanBeScalene()
 {
     Tasks.Triangle triangle = new Tasks.Triangle(0.5, 0.4, 0.6);
     Assert.True(triangle.IsScalene());
 }
示例#2
0
 public void TrianglesWithAllSidesEqualAreNotScalene()
 {
     Tasks.Triangle triangle = new Tasks.Triangle(4, 4, 4);
     Assert.False(triangle.IsScalene());
 }
示例#3
0
 public void VerySmallTrianglesCanBeIsosceles()
 {
     Tasks.Triangle triangle = new Tasks.Triangle(0.5, 0.4, 0.5);
     Assert.True(triangle.IsIsosceles());
 }
示例#4
0
 public void IsoscelesTrianglesMustHaveAtLeastTwoEqualSides()
 {
     Tasks.Triangle triangle = new Tasks.Triangle(2, 3, 4);
     Assert.False(triangle.IsIsosceles());
 }
示例#5
0
 public void VerySmallTrianglesCanBeEquilateral()
 {
     Tasks.Triangle triangle = new Tasks.Triangle(0.5, 0.5, 0.5);
     Assert.True(triangle.IsEquilateral());
 }
示例#6
0
 public void TrianglesWithNoEqualSidesAreNotEquilateral()
 {
     Tasks.Triangle triangle = new Tasks.Triangle(5, 4, 6);
     Assert.False(triangle.IsEquilateral());
 }