public void PlayerNameValidation_WhenPlayerNameIsLongerThan30Char_ReturnsFalse() { string playerName = "jpoobvhayfwhexqvtvswegnfwvqdom"; PlayerNameValidator myPlayerNameValidator = new PlayerNameValidator(); bool result = myPlayerNameValidator.IsPlayerNameLessThen30(playerName); Assert.False(result); }
public void PlayerNameValidation_WhenPlayerNameIsLessThan30Char_ReturnsTrue() { string playerName = "cmilzniqpxdphrclaaqqoxsskxmcj"; PlayerNameValidator myPlayerNameValidator = new PlayerNameValidator(); bool result = myPlayerNameValidator.IsPlayerNameLessThen30(playerName); Assert.True(result); }