public void TestComplex() { var complex = new ComplexShape(); complex.Add(new Rectangle()); complex.Add(new Rectangle()); complex.Add(new Rectangle()); complex.Add(new Rectangle()); double expectedArea = 4.0; double actualArea = complex.Area(); Assert.AreEqual(expectedArea, actualArea); double expectedPerimeter = 16.0; double actualPerimeter = complex.Perimeter(); Assert.AreEqual(expectedPerimeter, actualPerimeter); }