public void AttackCallTest() { Game_Controller vTest = new Game_Controller(); vTest.ClassChoice('W'); vTest.AttackCall('N'); }
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); }
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); }