Exemple #1
0
        public void should_return_emptystring_for_inanimate_spell_on_female_rat_thief_boss()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = femaleRatThief, futureForm = futureFormInanimate
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #2
0
        public void should_return_emptystring_for_inanimate_spell_on_road_queen()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = roadQueen, futureForm = futureFormInanimate
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #3
0
        public void should_return_emptystring_for_weaken_spell()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = dungeonDemon, spellSourceId = PvPStatics.Spell_WeakenId
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #4
0
        public void should_return_emptystring_for_pet_spell_on_donna()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = targetDonna, futureForm = futureFormPet
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #5
0
        public void should_return_message_for_animate_spell()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = dungeonDemon, spellSourceId = -123
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo("Only the 'Vanquish' spell and Weaken have any effect on the Dark Demonic Guardians."));
        }
Exemple #6
0
        public void should_return_emptystring_for_correct_spell_on_narcissa_with_valid_form()
        {
            var player = new Player();
            var cmd    = new CanAttackNpcWithSpell {
                target = narcissa, spellSourceId = BossProcedures_FaeBoss.SpellUsedAgainstNarcissaSourceId, attacker = player
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #7
0
        public void should_return_emptystring_for_pet_spell(int botId)
        {
            miniboss.BotId = botId;
            var cmd = new CanAttackNpcWithSpell {
                target = miniboss, futureForm = futureFormPet
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #8
0
        public void should_return_no_cast_message_for_weaken_spell_on_road_queen()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = roadQueen, futureForm = null
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "You get the feeling this type of spell won't work against road queen.  Maybe a different one would do..."));
        }
Exemple #9
0
        public void should_return_no_cast_message_for_weaken_spell_on_female_rat_thief_boss()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = femaleRatThief, futureForm = null
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "You get the feeling this type of spell won't work against female thief.  Maybe a different one would do..."));
        }
Exemple #10
0
        public void should_return_no_cast_message_for_animate_spell_on_donna()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = targetDonna, futureForm = futureFormAnimate
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "You get the feeling this type of spell won't work against Donna Milton.  Maybe a different one would do..."));
        }
Exemple #11
0
        public void should_return_no_cast_message_for_weaken_spell_on_bimbo_boss()
        {
            var cmd = new CanAttackNpcWithSpell {
                target = targeBimboBoss, futureForm = null
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "You get the feeling this type of spell won't work against Lady Lovebringer.  Maybe a different one would do..."));
        }
Exemple #12
0
        public void should_return_message_for_weaken(int botId)
        {
            miniboss.BotId = botId;
            var cmd = new CanAttackNpcWithSpell {
                target = miniboss, futureForm = null
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo("Your target seems immune from this kind of spell.  Maybe a different one would do..."));
        }
Exemple #13
0
        public void should_return_message_for_corect_spell_and_incorrect_form_on_nerd_mouse()
        {
            var player = new Player();
            var cmd    = new CanAttackNpcWithSpell {
                target = nerdMouse, attacker = player, spellSourceId = BossProcedures_Sisters.BimboSpellSourceId
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "You can't seem to find the right peeved-off mindset to cast this spell against Adrianna.  Maybe you'd have better luck if you were casting magic against her as a Bimbo Mousegirl..."));
        }
Exemple #14
0
        public void should_return_correct_message_for_correct_spell_on_narcissa_with_weaken()
        {
            var player = new Player();
            var cmd    = new CanAttackNpcWithSpell {
                target = narcissa, spellSourceId = PvPStatics.Spell_WeakenId, attacker = player
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "This spell has no effect on Narcissa!  Maybe you should talk to Rusty at the bar and get some advice..."));
        }
Exemple #15
0
        public void should_return_emptystring_for_correct_spell_and_form_on_nerd_mouse()
        {
            var player = new Player
            {
                FormSourceId = BossProcedures_Sisters.BimboSpellFormSourceId
            };
            var cmd = new CanAttackNpcWithSpell {
                target = nerdMouse, attacker = player, spellSourceId = BossProcedures_Sisters.BimboSpellSourceId
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd), Is.Empty);
        }
Exemple #16
0
        public void should_return_message_for_incorrect_spell_and_correct_form_on_nerd_mouse()
        {
            var player = new Player
            {
                FormSourceId = BossProcedures_Sisters.BimboSpellFormSourceId
            };
            var cmd = new CanAttackNpcWithSpell {
                target = nerdMouse, attacker = player, spellSourceId = PvPStatics.Spell_WeakenId
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo("This spell won't work against Adrianna."));
        }
Exemple #17
0
        public void should_return_emptystring_for_correct_spell_on_narcissa_with_invalid_form(int formSourceId)
        {
            var player = new Player
            {
                FormSourceId = formSourceId
            };
            var cmd = new CanAttackNpcWithSpell {
                target = narcissa, spellSourceId = BossProcedures_FaeBoss.SpellUsedAgainstNarcissaSourceId, attacker = player
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "You try to cast upon Narcissa, but the fae's mastery over your current form is overwhelming and you find that you cannot!"));
        }
Exemple #18
0
        public void should_return_message_when_nerd_mouse_transformed()
        {
            var player = new Player
            {
                FormSourceId = BossProcedures_Sisters.BimboSpellFormSourceId
            };

            nerdMouse.FormSourceId = -123;
            var cmd = new CanAttackNpcWithSpell {
                target = nerdMouse, attacker = player, spellSourceId = BossProcedures_Sisters.BimboSpellSourceId
            };

            Assert.That(DomainRegistry.Repository.FindSingle(cmd),
                        Is.EqualTo(
                            "One of the Brisby sisters have already been transformed; there's no need to attack them any further."));
        }