public void SutYieldsInjectedElements() { var expected = new[] { new Mock<IReflectionElement>().Object, new Mock<IReflectionElement>().Object, new Mock<IReflectionElement>().Object }; var sut = new CompositeReflectionElement(expected); Assert.True(expected.SequenceEqual(sut)); Assert.True( expected.Cast<object>().SequenceEqual(sut.OfType<object>())); }