public void ChecksWieldingByLevel() { var character = new Wizard { Experience = 1000 }; var item1 = new Staff { MinLevel = 5 }; var result1 = _god.Says(character).Can.Wield(item1); Assert.That(result1, Is.True, "Failed for legal item."); var item2 = new Staff { MinLevel = 100 }; var result2 = _god.Says(character).Can.Wield(item2); Assert.That(result2, Is.False, "Failed for illegal item."); }
public void AcceptsWieldingLegal() { var character = new Wizard { Experience = Int32.MaxValue }; var item = new Staff(); var result = _god.Says(character).Can.Wield(item); Assert.That(result, Is.True); }