Ejemplo n.º 1
0
        public void WhenInvalidInputIsGivenForRoverThenUserPromptShouldBeRetried()
        {
            ConsoleMockInputProvider mockInputProvider = new ConsoleMockInputProvider(new[] { "2", "2", "1,1", "0,0", "x,0", "1,0" });
            Grid grid = mockInputProvider.GetGridFromInputs();

            ShouldCheckValidGrid(grid);
        }
Ejemplo n.º 2
0
        public void WhenValidInputIsGivenThenValidGridIsReturned()
        {
            ConsoleMockInputProvider mockInputProvider = new ConsoleMockInputProvider(new[] { "2", "2", "1,1", "0,0", "1,0" });
            Grid grid = mockInputProvider.GetGridFromInputs();

            ShouldCheckValidGrid(grid);
        }