示例#1
0
        public void TestGameOptionsLoadPathIsNull()
        {
            GameOption GameOptions = new GameOption();
            Character  character   = GameOptions.createCharacter("Warrior", "Linus", 7, false);

            GameOptions.Load(null, character);
        }
示例#2
0
        public void TestGameOptionsLoadWithoutPath()
        {
            GameOption GameOptions = new GameOption();
            Character  character   = GameOptions.createCharacter("Warrior", "Linus", 7, false);

            GameOptions.Load("", character);
        }
示例#3
0
        public void TestGameOptionsLoadDoesntExist()
        {
            GameOption GameOptions = new GameOption();
            Character  character   = GameOptions.createCharacter("Warrior", "Linus", 7, false);

            GameOptions.Load("dingennzo.bin", character);
        }
示例#4
0
        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);
        }
示例#5
0
        public void TestGameOptionsCreateCharacterWithZeroAsAge()
        {
            GameOption GameOptions = new GameOption();

            GameOptions.createCharacter("Warrior", "Linus", 0, false);
        }
示例#6
0
        public void TestGameOptionsCreateCharacterWithNegativeAge()
        {
            GameOption GameOptions = new GameOption();

            GameOptions.createCharacter("Warrior", "Linus", -4, false);
        }
示例#7
0
        public void TestGameOptionsCreateCharacterWithoutClass()
        {
            GameOption GameOptions = new GameOption();

            GameOptions.createCharacter("", "Linus", 7, false);
        }
示例#8
0
        public void TestGameOptionsCreateCharacterWithoutName()
        {
            GameOption GameOptions = new GameOption();

            GameOptions.createCharacter("Warrior", "", 7, false);
        }