public void TriangleTest2() { var triangle = new Triangle() { SideA = 2, SideB = 2, SideC = 2 }; Assert.AreEqual(triangle.Square(), Math.Sqrt(3)); }
public void TriangleTest6() { var triangle = new Triangle() { SideA = 3, SideB = 4, SideC = 8 }; try { triangle.Square(); } catch (ArgumentException) { Assert.Pass(); } Assert.Fail(); }
public void TriangleTest1() { var triangle = new Triangle(); Assert.AreEqual(triangle.Square(), 0); }