public void TestIsBluntAngledBadInput() { var sides = new double[] { -1, 2 }; try { TriangleUtils.IsBluntAngled(sides); Assert.True(false, "Exception not thrown"); } catch (ArgumentException) { //Test pass } }
public void TestIsBluntAngledFalse() { var sides = new double[] { 4, 4, 3 }; Assert.False(TriangleUtils.IsBluntAngled(sides)); }
public void TestIsBluntAngledTrue() { var sides = new double[] { 10, 10, 19 }; Assert.True(TriangleUtils.IsBluntAngled(sides)); }