|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
// Assert |
|
|
assertEquals(TriangleChecker.TriangleType.NORMAL, type); |
|
|
assertEquals(TriangleChecker.TriangleType.NORMAL, type); |
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
a = -2; |
|
|
|
|
|
b = 3; |
|
|
|
|
|
c = 4; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE, type); |
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
a = 2; |
|
|
|
|
|
b = -3; |
|
|
|
|
|
c = 4; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE, type); |
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
a = 2; |
|
|
|
|
|
b = 3; |
|
|
|
|
|
c = -4; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE, type); |
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
a = 2; |
|
|
|
|
|
b = 3; |
|
|
|
|
|
c = 10; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE, type); |
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
a = 10; |
|
|
|
|
|
b = 3; |
|
|
|
|
|
c = 4; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE, type); |
|
|
|
|
|
|
|
|
|
|
|
// Arrange |
|
|
|
|
|
a = 2; |
|
|
|
|
|
b = 10; |
|
|
|
|
|
c = 4; |
|
|
|
|
|
|
|
|
|
|
|
// Act |
|
|
|
|
|
type = TriangleChecker.checkTriangle(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
// Assert |
|
|
|
|
|
assertEquals(TriangleChecker.TriangleType.NONE, type); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Test |
|
|
@Test |