public void SutYieldsInjectedBuilder() { // Arrange var expected = new DelegatingSpecimenBuilder(); var sut = new DelegatingRecursionGuard(expected); // Act // Assert Assert.Equal(expected, sut.Single()); Assert.Equal(expected, ((System.Collections.IEnumerable)sut).Cast <object>().Single()); }
public void SutYieldsInjectedBuilder() { // Fixture setup var expected = new DelegatingSpecimenBuilder(); var sut = new DelegatingRecursionGuard(expected); // Exercise system // Verify outcome Assert.Equal(expected, sut.Single()); Assert.Equal(expected, ((System.Collections.IEnumerable)sut).Cast <object>().Single()); // Teardown }