コード例 #1
0
        public void Validate_FalseResult()
        {
            CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel();

            objCharacterClassLevel.ClassLevel = 0;
            objCharacterClassLevel.Validate();
            Assert.IsTrue(!objCharacterClassLevel.Validated && (objCharacterClassLevel.ValidationMessage.Length > 0));
        }
コード例 #2
0
        public void Validate_TrueResult()
        {
            CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel();

            objCharacterClassLevel.ClassLevel = 1;
            objCharacterClassLevel.Validate();
            Assert.IsTrue(objCharacterClassLevel.Validated);
        }