public void ExceptionPropertyCollectionEquivalenceTesting_Danglers() { // Arrange var expected = new SomeNode() { Id = 1, Name = "Moo" }; // Pre-assert // Act Assert.That( () => { Expect(() => throw new ExceptionWithNode(expected)) .To.Throw <ExceptionWithNode>() .With.CollectionProperty(e => e.Nodes).For.Moo(); }, Throws.Nothing); }
private Node CreateNode() { var node = new SomeNode(); return node; }