public void MockNoCreaturesByInvalidTypeID() { var repo = new CreatureRepoMock(); var creatureList = repo.GetCreaturesByTypeID(999999); Assert.IsNull(creatureList); }
public void MockCanGetCreaturesByTypeID() { var repo = new CreatureRepoMock(); var creatureList = repo.GetCreaturesByTypeID(2).ToList(); Assert.AreEqual(1, creatureList.Count()); Assert.AreEqual(2, creatureList[0].CreatureID); Assert.AreEqual("MockCName2", creatureList[0].CreatureName); Assert.AreEqual(2, creatureList[0].TypeID); Assert.AreEqual("MockTName2", creatureList[0].TypeName); Assert.AreEqual(100, creatureList[0].CreatureHP); Assert.AreEqual(true, creatureList[0].Boss); Assert.AreEqual(3, creatureList[0].StrengthID); Assert.AreEqual(1, creatureList[0].WeaknessID); Assert.AreEqual("MockStrength2", creatureList[0].StrengthName); Assert.AreEqual("MockWeakness2", creatureList[0].WeaknessName); }