public void DrawShape3Times() { var testShape = new XShape(3); Assert.AreEqual("x x\n x \nx x", testShape.GetShape()); Assert.AreEqual("x x\n x \nx x", testShape.GetShape()); Assert.AreEqual("x x\n x \nx x", testShape.GetShape()); }
public void TesScaling() { var testShape = new XShape(100); var splitShape = testShape.GetShape().Split("\n"); var actualLastLine = splitShape[splitShape.Length - 1]; var expectedLastLine = "x" + new String(' ', 98) + "x"; Assert.AreEqual(expectedLastLine, actualLastLine); }
public void TestDrawSize5() { var testShape = new XShape(5); Assert.AreEqual("x x\n x x \n x \n x x \nx x", testShape.GetShape()); }
public void TestDrawSize1() { var testShape = new XShape(1); Assert.AreEqual("x", testShape.GetShape()); }