public void ValidateNumberOfPlayers_LessThan2() { //Arrange IList <IList <string> > game = new List <IList <string> >() { new List <string>() { "Armado", "P" } }; //Act //Assert Assert.Throws(typeof(WrongNumberOfPlayersException), () => _rpsGame.GameWinner(game)); }
public void WhosTheWinner_FistPlayerRockSecondPlayerScissor_FirstPlayerWins() { RPSGame testRPSGame = new RPSGame ("Paper", "Rock"); List<string> expected = new List<string> {"FistPlayer Wins"}; List<string> actual = testRPSGame.GameWinner(); CollectionAssert.AreEqual(expected, actual); }