public void ChangingSelectedGridLoadsSamplePuzzle()
 {
     _mainWindowViewModel.SelectedGrid = _mainWindowViewModel.GridDescriptions[0];
     _mainWindowViewModel.SelectedGridChangedCommand.Execute(null);
     foreach (var colourPair in _mainWindowViewModel.SelectedGrid.SamplePuzzle)
     {
         var localColourPair = colourPair;
         A.CallTo(() => _fakeBoardControl.AddDot(localColourPair.StartCoords, localColourPair.DotColour)).MustHaveHappened();
         A.CallTo(() => _fakeBoardControl.AddDot(localColourPair.EndCoords, localColourPair.DotColour)).MustHaveHappened();
     }
 }
Ejemplo n.º 2
0
 private void AddDot(Coords coords, DotColour dotColour)
 {
     _boardControl.AddDot(coords, dotColour);
     _coordsToDots.Add(coords, dotColour);
     BoardControlHasChanged();
 }