public void QueriesWillMatchListParameter() { // Fixture setup var expectedQueries = new IMethodQuery[] { new DelegatingMethodQuery(), new DelegatingMethodQuery(), new DelegatingMethodQuery() }.AsEnumerable(); var sut = new CompositeMethodQuery(expectedQueries); // Exercise system var result = sut.Queries; // Verify outcome Assert.True(expectedQueries.SequenceEqual(result)); // Teardown }
public void QueriesWillNotMatchParamsArray() { // Arrange var expectedQueries = new IMethodQuery[] { new DelegatingMethodQuery(), new DelegatingMethodQuery(), new DelegatingMethodQuery() }; var sut = new CompositeMethodQuery(expectedQueries[0], expectedQueries[2], expectedQueries[1]); // Act var result = sut.Queries; // Assert Assert.False(expectedQueries.SequenceEqual(result)); }
public void QueriesWillMatchListParameter() { // Arrange var expectedQueries = new IMethodQuery[] { new DelegatingMethodQuery(), new DelegatingMethodQuery(), new DelegatingMethodQuery() }.AsEnumerable(); var sut = new CompositeMethodQuery(expectedQueries); // Act var result = sut.Queries; // Assert Assert.True(expectedQueries.SequenceEqual(result)); }
public void QueriesWillNotMatchParamsArray() { // Fixture setup var expectedQueries = new IMethodQuery[] { new DelegatingMethodQuery(), new DelegatingMethodQuery(), new DelegatingMethodQuery() }; var sut = new CompositeMethodQuery(expectedQueries[0], expectedQueries[2], expectedQueries[1]); // Exercise system var result = sut.Queries; // Verify outcome Assert.False(expectedQueries.SequenceEqual(result)); // Teardown }