public void TestQfg2MagicMaxValues() { QfgCharacter qfgCharacter = new QfgCharacter(); qfgCharacter.QfgGame = QfgGames.QFG2; qfgCharacter.QfgClass = QfgClasses.Magic; qfgCharacter.CharacterName = "Adam"; qfgCharacter.SetMaxValues(); string characterString = qfgCharacter.Encode(); Assert.AreEqual<string>(QFG2_MAGIC_MAX_VAL, characterString); }
public void TestQfg1FighterMaxValues() { QfgCharacter qfgCharacter = new QfgCharacter(); qfgCharacter.QfgGame = QfgGames.QFG1; qfgCharacter.QfgClass = QfgClasses.Fighter; qfgCharacter.CharacterName = "Adam"; qfgCharacter.SetMaxValues(); string characterString = qfgCharacter.Encode(); Assert.AreEqual<string>(QFG1_FIGHTER_MAX_VAL, characterString); }
public void TestQfg1ThiefMaxValues() { QfgCharacter qfgCharacter = new QfgCharacter(); qfgCharacter.QfgGame = QfgGames.QFG1; qfgCharacter.QfgClass = QfgClasses.Thief; qfgCharacter.CharacterName = "Adam"; qfgCharacter.SetMaxValues(); string characterString = qfgCharacter.Encode(); Assert.AreEqual<string>(QFG1_THIEF_MAX_VAL, characterString); }
public ActionResult Save(QfgCharacter qfgCharacter) { string characterString = qfgCharacter.Encode(); return File(Encoding.ASCII.GetBytes(characterString), "application/force-download", "character.sav"); }
public void TestQfg2PaladinMaxValues() { QfgCharacter qfgCharacter = new QfgCharacter(); qfgCharacter.QfgGame = QfgGames.QFG2; qfgCharacter.QfgClass = QfgClasses.Paladin; qfgCharacter.CharacterName = "Adam"; qfgCharacter.SetMaxValues(); string characterString = qfgCharacter.Encode(); Assert.AreEqual<string>(QFG2_PALADIN_MAX_VAL, characterString); }