Skip to content

Instantly share code, notes, and snippets.

@paulbatum
Created August 19, 2014 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulbatum/962d6268fd765f8ac8cb to your computer and use it in GitHub Desktop.
Save paulbatum/962d6268fd765f8ac8cb to your computer and use it in GitHub Desktop.
Another RxUI bug?
[Fact]
public void CanStartGameWithThreeOrMorePlayers()
{
foreach (var i in Enumerable.Range(1, 7))
{
viewmodel.NewPlayerName = "Player" + i;
viewmodel.AddPlayer.Execute(null);
// Test passes with this assert present, fails with it commented out
//Assert.Equal(i >= 3, viewmodel.StartGame.CanExecute(null));
}
Assert.Equal(true, viewmodel.StartGame.CanExecute(null));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment