public void GameMenuInitialState_PlayerCountChoices() { var gameMenu = new LaunchMenuViewModel(); gameMenu.NumberOfPlayerChoices.Count.Should().Be(3); gameMenu.NumberOfPlayerChoices.Contains(NumberOfPlayers.Two); gameMenu.NumberOfPlayerChoices.Contains(NumberOfPlayers.Three); gameMenu.NumberOfPlayerChoices.Contains(NumberOfPlayers.Four); }
public MainWindowViewModel() { content = new LaunchMenuViewModel(); BeginGame = new RelayCommand<NumberOfPlayers>(n => { Content = new GameViewModel(); ((GameViewModel)Content).StartGame(n); }); AbandonGame = new RelayCommand(() => Content = new LaunchMenuViewModel()); }