public void TestXShapeCreation() { var factory = new ConsoleShapeFactory(); var testShape = factory.GetConsoleShape(ConsoleShapeEnum.XShape, 2); Assert.IsNotNull(testShape); }
private static void PrintShape(int shapeType, int shapeSize) { var consoleFactory = new ConsoleShapeFactory(); var shape = consoleFactory.GetConsoleShape((ConsoleShapeEnum)shapeType, shapeSize).GetShape(); Console.WriteLine(shape); Console.WriteLine(); }
public void TestConsoleShapeFactoryCreation() { var factory = new ConsoleShapeFactory(); Assert.IsNotNull(factory); }