public void DrawShape3Times()
        {
            var testShape = new ChristmasTreeShape(3);

            Assert.AreEqual("  x  \n xxx \nxxxxx", testShape.GetShape());
            Assert.AreEqual("  x  \n xxx \nxxxxx", testShape.GetShape());
            Assert.AreEqual("  x  \n xxx \nxxxxx", testShape.GetShape());
        }
        public void TestScaling()
        {
            var shapeSize        = 100;
            var testShape        = new ChristmasTreeShape(shapeSize);
            var expectedLastLine = new string('x', shapeSize * 2 - 1);
            var splitShape       = testShape.GetShape().Split("\n");
            var actualLastLine   = splitShape[splitShape.Length - 1];

            Assert.AreEqual(expectedLastLine, actualLastLine);
        }
        public void TestCreation()
        {
            var testShape = new ChristmasTreeShape(2);

            Assert.IsNotNull(testShape);
        }
        public void TestDrawSize5()
        {
            var testShape = new ChristmasTreeShape(5);

            Assert.AreEqual("    x    \n   xxx   \n  xxxxx  \n xxxxxxx \nxxxxxxxxx", testShape.GetShape());
        }
        public void TestDrawSize0()
        {
            var testShape = new ChristmasTreeShape(0);

            Assert.AreEqual("", testShape.GetShape());
        }