public void FarmTest2() { var f = new OOShapes(); f.AddRectangle(2,2); f.AddRectangle(3,4); f.AddTriangle(1, 2); Assert.AreEqual(1, f.AllShapes.Last().Area); }
public void FarmTest1() { var f = new OOShapes(); f.AddRectangle(2, 2); f.AddRectangle(3, 4); f.AddTriangle(1, 2); Assert.AreEqual("||4||12/\\1", f.PrintAll()); }
public void FarmTest2() { var f = new OOShapes(); f.AddRectangle(2, 2); f.AddRectangle(3, 4); f.AddTriangle(1, 2); Assert.AreEqual(1, f.AllShapes.Last().Area); }