public void AddCardToHand_OtherPlayersDidNotAddCard() { // Arrange WriteClass write = new WriteClass(); FakeUserInput input = new FakeUserInput(); PlayersHand playersHand = new PlayersHand(write, input); var expectedtList = new List <Player>(); expectedtList.Add(new Player("Test", 0)); expectedtList.Add(new Player("Test2", 1)); expectedtList.Add(new Player("Test3", 2)); // Act var expected = input.GetStringInput(); string deltCard = "testCard"; playersHand.AddCardToHand(deltCard, expectedtList); // Assert foreach (var player in expectedtList) { if (player.Name != expected) { Assert.IsFalse(player.Hand.Contains(deltCard)); } } }
public void GetStringInput_ReturnStringInput() { // Arrange FakeUserInput fakeInput = new FakeUserInput(); // Act var actual = fakeInput.GetStringInput(); var expected = "Test"; // Assert Assert.AreEqual(expected, actual); }