public void containerCanNotWearItems() { Container container = new Container("chest"); var testDel = new TestDelegate(() => container.WearItem(new Thing("hatband"))); Assert.That(testDel, Throws.TypeOf<CanNotWearItemsException>()); }