public void MockNoAttacksByInvalidTypeID() { var repo = new AttackRepoMock(); var attackList = repo.GetByTypeID(999999); Assert.IsNull(attackList); }
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); }
public void MockCanGetAttacksByTypeID() { var repo = new AttackRepoMock(); var attackList = repo.GetByTypeID(2).ToList(); Assert.AreEqual(2, attackList.Count()); Assert.AreEqual(3, attackList[0].AttackID); Assert.AreEqual("MockAName4", attackList[1].AttackName); Assert.AreEqual(20, attackList[1].AttackDamage); Assert.AreEqual(2, attackList[0].TypeID); }
public void MockCanGetAllAttacks() { var repo = new AttackRepoMock(); var attackList = repo.GetAll(); Assert.AreEqual(6, attackList.Count()); Assert.AreEqual(1, attackList[0].AttackID); Assert.AreEqual("MockAName4", attackList[3].AttackName); Assert.AreEqual(20, attackList[5].AttackDamage); Assert.AreEqual(2, attackList[2].TypeID); }