public AddSpellsToSpellbookTests() { var configuration = new MemoryStore(); configuration.SetValue( "spells", new string[] { "all", "3" } ); var step = new AddSpellsToSpellbook(configuration); wizard = CharacterTestTemplates.Wizard().WithWizardCasting(); step.ExecuteStep(wizard); }
public void WillAddTheModifierToNumericSlotsIfSetToTrue() { var configuration = new MemoryStore(); configuration.SetValue( "spells", new string[] { "all", "3" } ); configuration.SetValue("add-modifier", true); var step = new AddSpellsToSpellbook(configuration); var wizard = CharacterTestTemplates.Wizard().WithWizardCasting(); wizard.AbilityScores.SetScore(AbilityScoreTypes.Intelligence, 16); step.ExecuteStep(wizard); var casting = wizard.Get <ISpellCasting>(); Assert.Equal( 6, casting.GetKnownSpells(1).Count() ); }