Ejemplo n.º 1
0
        public void CharactersProficientInGroupsOfWeaponsPassSpecificProficiencyTests()
        {
            var configure = new MemoryStore();

            configure.SetValue("weapon", "crossbow");
            var prof = new WeaponProficiencyPrerequisite(configure);

            var bob = CharacterTestTemplates.AverageBob();

            bob.Add(new WeaponProficiency("simple"));
            Assert.True(prof.IsQualified(bob.Components));
        }
Ejemplo n.º 2
0
        public void ChecksWhetherProficientWithTypeOfWeapon()
        {
            var configure = new MemoryStore();

            configure.SetValue("weapon", "martial");
            var prof = new WeaponProficiencyPrerequisite(configure);

            var bob = CharacterTestTemplates.AverageBob();

            Assert.False(prof.IsQualified(bob.Components));
            bob.Add(new WeaponProficiency("martial"));
            Assert.True(prof.IsQualified(bob.Components));
        }
Ejemplo n.º 3
0
        public void IfSetToNotProficientChecksFailIfProficientPassIfNot()
        {
            var configure = new MemoryStore();

            configure.SetValue("weapon", "martial");
            configure.SetValue("not-proficient", true);
            var prof = new WeaponProficiencyPrerequisite(configure);

            var bob = CharacterTestTemplates.AverageBob();

            Assert.True(prof.IsQualified(bob.Components));
            bob.Add(new WeaponProficiency("martial"));
            Assert.False(prof.IsQualified(bob.Components));
        }