Пример #1
0
        public void PlayerNameValidation_WhenPlayerNameIsNotNull_ReturnsFalse()
        {
            string playerName = "Monique";
            PlayerNameValidator myPlayerNameValidator = new PlayerNameValidator();
            bool result = myPlayerNameValidator.IsPlayerNameNull(playerName);

            Assert.False(result);
        }
Пример #2
0
        public void PlayerNameValidation_WhenPlayerNameIsNull_ReturnsTrue()
        {
            string playerName = "";
            PlayerNameValidator myPlayerNameValidator = new PlayerNameValidator();
            bool result = myPlayerNameValidator.IsPlayerNameNull(playerName);

            Assert.True(result);
        }