Esempio n. 1
0
        public void PlayerNameValidation_WhenPlayerNameIsLongerThan30Char_ReturnsFalse()
        {
            string playerName = "jpoobvhayfwhexqvtvswegnfwvqdom";
            PlayerNameValidator myPlayerNameValidator = new PlayerNameValidator();
            bool result = myPlayerNameValidator.IsPlayerNameLessThen30(playerName);

            Assert.False(result);
        }
Esempio n. 2
0
        public void PlayerNameValidation_WhenPlayerNameIsLessThan30Char_ReturnsTrue()
        {
            string playerName = "cmilzniqpxdphrclaaqqoxsskxmcj";
            PlayerNameValidator myPlayerNameValidator = new PlayerNameValidator();
            bool result = myPlayerNameValidator.IsPlayerNameLessThen30(playerName);

            Assert.True(result);
        }