Beispiel #1
0
        public void MockNoCreatureAttacksByInvalidAttackID()
        {
            var repo = new CreatureAttacksRepoMock();
            var creatureAttacksList = repo.GetByAttackID(999999);

            Assert.IsNull(creatureAttacksList);
        }
Beispiel #2
0
        public void MockCanGetCreatureAttacksByAttackID()
        {
            var repo = new CreatureAttacksRepoMock();
            var creatureAttacksList = repo.GetByAttackID(5).ToList();

            Assert.AreEqual(3, creatureAttacksList.Count());
            Assert.AreEqual(1, creatureAttacksList[0].CreatureID);
            Assert.AreEqual(5, creatureAttacksList[2].AttackID);
            Assert.AreEqual(2, creatureAttacksList[1].CreatureID);
            Assert.AreEqual(5, creatureAttacksList[1].AttackID);
        }