public void TriangleIsRight() { //arrange AreaOfShapes.Shapes.Triangle triangle = new AreaOfShapes.Shapes.Triangle(3, 4, 5); //act bool isRight = triangle.IsRightTriangle(); //assert Assert.IsTrue(isRight); }
public void TriangleAreaWIthValues() { //arrange AreaOfShapes.Shapes.Triangle triangle = new AreaOfShapes.Shapes.Triangle(3, 4, 5); //act var area = triangle.Area; //assert Assert.AreEqual(6, area); }