public void addChildToThingThrowsException() { Thing thing = new Thing("lantern"); var testDel = new TestDelegate(() => thing.AddChild(new Thing("fork"))); Assert.That(testDel, Throws.TypeOf<NoChildrenForThingsException>()); }