public void WorksForTriangleInequality() { TriangleType t = Week3.TypeTriangle("7", "3", "3"); Assert.AreEqual(t, TriangleType.TRIANGLE_INEQUALITY); }
public void WorksForEquilateralTriangle() { TriangleType t = Week3.TypeTriangle("4", "4", "4"); Assert.AreEqual(t, TriangleType.EQUILATERAL); }
public void WorksForIsoscelesTriangle() { TriangleType t = Week3.TypeTriangle("4", "4", "6"); Assert.AreEqual(t, TriangleType.ISOSCELES); }
public void WorksForScaleneTriangle() { TriangleType t = Week3.TypeTriangle("5,9", "3", "7"); Assert.AreEqual(t, TriangleType.SCALENE); }
public void WorksForInvalidTriangle() { TriangleType t = Week3.TypeTriangle("0", "4", "9"); Assert.AreEqual(t, TriangleType.NONE); }
public void FailsWithTextValue() { TriangleType result = Week3.TypeTriangle("4", "5", "tito"); }