public void MockNoAttackByInvalidID() { var repo = new AttackRepoMock(); var foundAttack = repo.GetByID(999999); Assert.IsNull(foundAttack); }
public void MockCanGetSingleAttackByID() { var repo = new AttackRepoMock(); var foundAttack = repo.GetByID(3); Assert.AreEqual(3, foundAttack.AttackID); Assert.AreEqual("MockAName3", foundAttack.AttackName); Assert.AreEqual(10, foundAttack.AttackDamage); Assert.AreEqual(2, foundAttack.TypeID); }