public void NonGenericEnumeratorMatchesGenericEnumerator() { // Arrange var sut = new DefaultRelays(); // Act IEnumerable result = sut; // Assert Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast <object>().Select(o => o.GetType()))); }
public void NonGenericEnumeratorMatchesGenericEnumerator() { // Fixture setup var sut = new DefaultRelays(); // Exercise system IEnumerable result = sut; // Verify outcome Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast<object>().Select(o => o.GetType()))); // Teardown }
public void NonGenericEnumeratorMatchesGenericEnumerator() { // Fixture setup var sut = new DefaultRelays(); // Exercise system IEnumerable result = sut; // Verify outcome Assert.True(sut.Select(b => b.GetType()).SequenceEqual(result.Cast <object>().Select(o => o.GetType()))); // Teardown }
public void SutHasCorrectContents() { // Fixture setup var expectedBuilderTypes = new[] { typeof(ArrayRelay), typeof(ParameterRequestRelay), typeof(PropertyRequestRelay), typeof(FieldRequestRelay), typeof(FiniteSequenceRelay), typeof(SeedIgnoringRelay), typeof(MethodInvoker) }; // Exercise system var sut = new DefaultRelays(); // Verify outcome Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType()))); // Teardown }
public void SutHasCorrectContents() { // Fixture setup var expectedBuilderTypes = new[] { typeof(MultidimensionalArrayRelay), typeof(ArrayRelay), typeof(ParameterRequestRelay), typeof(PropertyRequestRelay), typeof(FieldRequestRelay), typeof(FiniteSequenceRelay), typeof(SeedIgnoringRelay), typeof(MethodInvoker) }; // Exercise system var sut = new DefaultRelays(); // Verify outcome Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType()))); // Teardown }
public void SutHasCorrectContents() { // Arrange var expectedBuilderTypes = new[] { typeof(LazyRelay), typeof(MultidimensionalArrayRelay), typeof(ArrayRelay), typeof(ParameterRequestRelay), typeof(PropertyRequestRelay), typeof(FieldRequestRelay), typeof(FiniteSequenceRelay), typeof(SeedIgnoringRelay), typeof(MethodInvoker) }; // Act var sut = new DefaultRelays(); // Assert Assert.True(expectedBuilderTypes.SequenceEqual(sut.Select(b => b.GetType()))); }