public void RightTriangle_CalculateArea_With_Sides_3_4_5_Is_6() { var rightTriangle = new RightTriangle(3, 4, 5); var area = rightTriangle.CalculateArea(); Assert.AreEqual(6, area, "Разные значения"); }
public void RightTriangle_CalculateArea_BadSides_InvalidOperationException() { var rightTriangle = new RightTriangle(3, 4, 6); Assert.Throws <InvalidOperationException>(() => rightTriangle.CalculateArea()); }