예제 #1
0
        public void StowSpellbook_Null_Throws()
        {
            // Arrange
            var character = Mock.Of <ICharacter>();
            EquipmentSection equipmentSection = new EquipmentSection(character);
            ISpellbook       spellbook        = null;

            // Act
            TestDelegate stow = () => equipmentSection.Stow(spellbook);

            // Assert
            Assert.Throws <ArgumentNullException>(stow);
        }
예제 #2
0
 public Caster(string name)
 {
     _spelboook = new Spellbook(1);
 }