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)); }
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)); }
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)); }