public void TestGameOptionsLoadPathIsNull() { GameOption GameOptions = new GameOption(); Character character = GameOptions.createCharacter("Warrior", "Linus", 7, false); GameOptions.Load(null, character); }
public void TestGameOptionsLoadWithoutPath() { GameOption GameOptions = new GameOption(); Character character = GameOptions.createCharacter("Warrior", "Linus", 7, false); GameOptions.Load("", character); }
public void TestGameOptionsLoadDoesntExist() { GameOption GameOptions = new GameOption(); Character character = GameOptions.createCharacter("Warrior", "Linus", 7, false); GameOptions.Load("dingennzo.bin", character); }
public void TestGameOptionsIfCharacterCanBeMade() { GameOption GameOption = new GameOption(); Warrior warrior = (Warrior)GameOption.createCharacter("Warrior", "Linus", 7, false); Assert.AreEqual("Linus", warrior.Name); Assert.AreEqual(7, warrior.Age); Assert.AreEqual(false, warrior.Admin); }
public void TestGameOptionsCreateCharacterWithZeroAsAge() { GameOption GameOptions = new GameOption(); GameOptions.createCharacter("Warrior", "Linus", 0, false); }
public void TestGameOptionsCreateCharacterWithNegativeAge() { GameOption GameOptions = new GameOption(); GameOptions.createCharacter("Warrior", "Linus", -4, false); }
public void TestGameOptionsCreateCharacterWithoutClass() { GameOption GameOptions = new GameOption(); GameOptions.createCharacter("", "Linus", 7, false); }
public void TestGameOptionsCreateCharacterWithoutName() { GameOption GameOptions = new GameOption(); GameOptions.createCharacter("Warrior", "", 7, false); }