public void Setup() { PlayerRepo _repo = new PlayerRepo(); players = _repo.ListOfPlayers(1); var dice = new Dice(); gameboard = new Gameboard(players, dice); }
public void ListOfPlayers_WhenReturn_GivesAListOfCorrectNumberOfPlayers() { //Arrange IList <IPlayer> players = new List <IPlayer> { new Player(1), new Player(2) }; var expected = players; //Act var result = playerListFactory.ListOfPlayers(2); //Assert Assert.AreEqual(expected.Count, result.Count); }