public void Validate_FalseResult() { CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel(); objCharacterClassLevel.ClassLevel = 0; objCharacterClassLevel.Validate(); Assert.IsTrue(!objCharacterClassLevel.Validated && (objCharacterClassLevel.ValidationMessage.Length > 0)); }
public void Validate_TrueResult() { CharacterClassLevel objCharacterClassLevel = new CharacterClassLevel(); objCharacterClassLevel.ClassLevel = 1; objCharacterClassLevel.Validate(); Assert.IsTrue(objCharacterClassLevel.Validated); }