예제 #1
0
 public void AllSidesIsZero()
 {
     Assert.IsFalse(TriangleTest.IsTriangle(0, 0, 0));
 }
예제 #2
0
 public void IsTriangleIsoscelesTriangle()
 {
     Assert.IsTrue(TriangleTest.IsTriangle(7, 7, 9));
 }
예제 #3
0
 public void OneSideIsZero()
 {
     Assert.IsFalse(TriangleTest.IsTriangle(0, 1, 5));
 }
예제 #4
0
 public void TwoSideIsZero()
 {
     Assert.IsFalse(TriangleTest.IsTriangle(0, 0, 5));
 }
예제 #5
0
 public void AllSidesIsNegative()
 {
     Assert.IsFalse(TriangleTest.IsTriangle(-3, -2, -4));
 }
예제 #6
0
 public void TwoSideIsNegative()
 {
     Assert.IsFalse(TriangleTest.IsTriangle(-3, -2, 4));
 }
예제 #7
0
 public void IsTriangleEquilateralTriangle()
 {
     Assert.IsTrue(TriangleTest.IsTriangle(7, 7, 7));
 }
예제 #8
0
 public void IsTrianglePossible_SumMoreThanSideLength()
 {
     Assert.IsTrue(TriangleTest.IsTriangle(3, 2, 5));
 }
예제 #9
0
 public void IsRightTriangle()
 {
     Assert.IsTrue(TriangleTest.IsTriangle(6, 8, 10));
 }