public void AttackCallTest()
        {
            Game_Controller vTest = new Game_Controller();

            vTest.ClassChoice('W');

            vTest.AttackCall('N');
        }
Exemplo n.º 2
0
 public Battle(char p)
 {
     GameController = new Game_Controller();
     GameController.ClassChoice(p);
     InitializeComponent();
     lblNPCHp.Content     = GameController.enemy.Hp.ToString();
     lblPlayerHp.Content  = GameController.Player.Hp.ToString();
     lblPlayerDam.Content = GameController.Player.BaseDamage.ToString();
 }
        public void ClassChoiceTest()
        {
            //Arrange
            Game_Controller vTest = new Game_Controller();

            //Act
            vTest.ClassChoice('W');
            //Assert
            Assert.AreEqual('W', vTest.player);
        }
Exemplo n.º 4
0
        public void CharacterTest()
        {
            //Arrange
            Game_Controller vTest = new Game_Controller();

            //Act
            vTest.ClassChoice('W');
            //Assert
            Assert.AreEqual(40, vTest.player.Hp);
            Assert.AreEqual(10, vTest.player.BaseDamage);
        }