public void TriangleIsRight() { //arrange ShapeSquareFactory factory = new ShapeSquareFactory(); //act var square = factory.Triangle(new Point(10, 0), new Point(10, 10), new Point(20, 0)); //assert Assert.IsTrue(square.IsRight()); }
public void TriangleSquareValues() { //arrange ShapeSquareFactory factory = new ShapeSquareFactory(); //act var square = factory.Triangle(new Point(10, 0), new Point(10, 10), new Point(20, 0)); //assert Assert.AreEqual(50, square.Square()); }