public void testAreEqualSpeedComparison() { Monster m1 = new Monster("slime"); m1.Dex = 10; Character c2 = new Character("Carl"); c2.Dex = 10; var battlefield = new BattlefieldController(); var speedTest = battlefield.compareSpeed(m1, c2); // returns a 2 if they DEX are equal. Assert.AreEqual(speedTest, 2); }
public void testSpeedComparisonMonsterFaster() { Monster m1 = new Monster("slime"); m1.Dex = 10; Character c2 = new Character("Carl"); c2.Dex = 5; var battlefield = new BattlefieldController(); int speedTest = battlefield.compareSpeed(m1, c2); //returns a 1 if the character has faster DEX Assert.AreEqual(1, speedTest); }