public void GenerateFourRandomColours_WhenGameBegins() { var randomColourGenerator = new RandomColourGenerator(4); var result = randomColourGenerator.Generate(); Assert.Equal(4, result.Length); }
static void Main(string[] args) { var randomGen = new RandomColourGenerator(Constants.MasterColoursCount); var inputReceiver = new InputReceiver(); var errorHandler = new ConsoleErrorHandler(); var consoleDisplay = new ConsoleDisplay(); var inputHandler = new InputHandler(inputReceiver, errorHandler); var gameEngine = new GameEngine(randomGen, inputHandler, consoleDisplay); gameEngine.Run(); }