// Analyse der Dreiecksart | // Analyse der Dreiecksart | ||||
public static TriangleType checkTriangle(float a, float b, float c) { | public static TriangleType checkTriangle(float a, float b, float c) { | ||||
return TriangleType.NONE; | |||||
return TriangleType.NORMAL; | |||||
} | } | ||||
} | } |
public void testValidTriangle() { | public void testValidTriangle() { | ||||
// Arrange | // Arrange | ||||
float a = 2; | |||||
float a = 7; | |||||
float b = 3; | float b = 3; | ||||
float c = 4; | |||||
float c = 1; | |||||
// Act | // Act | ||||
TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c); | TriangleChecker.TriangleType type = TriangleChecker.checkTriangle(a, b, c); |