예제 #1
0
 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);
 }
예제 #2
0
 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());
 }
예제 #3
0
        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);
        }
예제 #4
0
        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());
        }