public void TestWhenSuperRoundMessageTriggeredThenStayOnlyTopThreeCommands()
        {
            //Assign
            CommandResultsViewModel viewModel = new CommandResultsViewModel();

            viewModel.InitializeCommands(5);
            for (int index = 0; index < viewModel.CommandResults.Count; index++)
            {
                CommandResultViewModel command = viewModel.CommandResults[index];
                command.AddScore(index + 1);
            }

            //Act
            Messenger.Default.Send(new SupperRoundStartedMessage());

            //Assert
            Assert.True(viewModel.CommandResults.Count(rec => !rec.IsDisabled) == 3);
            Assert.True(viewModel.IsScoreCanbeChanged);
        }
Beispiel #2
0
 protected override void ChangeScore(int count)
 {
     CommandResultViewModel.AddScore(count);
     Messenger.Default.Send(new UnloadQuestionMessage());
 }