public void TestSetPlayerNameWithEmptyString() { //Arrange Player TestPlayer = new Player(); string expectedPlayerName = "Player 1"; //Act TestPlayer.SetPlayerName("", 1); string actualPlayerName = TestPlayer.GetPlayerName(); //Assert Assert.AreEqual(actualPlayerName, expectedPlayerName); }
public void TestSetAndGetPlayerName_ValidInputs_CorrectResult() { //Arrange Player TestPlayer = new Player(); string expectedPlayerName = "Mr.Big"; //Act TestPlayer.SetPlayerName("Mr.Big",1); string actualPlayerName = TestPlayer.GetPlayerName(); //Assert Assert.IsTrue(actualPlayerName == expectedPlayerName); }