Beispiel #1
0
        public void AreaTest()
        {
            Triangle t = new Triangle(3, 4, 5);

            double expected = 3 * 4 / 2;
            double area = t.Area();

            Assert.AreEqual(expected, area, 1E-3);
        }
Beispiel #2
0
 public void WrongSideLegthTest()
 {
     Triangle t = new Triangle(1, 2, 0);
 }
Beispiel #3
0
 public void TriangleInequalityTest()
 {
     Triangle t = new Triangle(2, 3, 6);
 }