LibraryDependency[] Dependencies(Action <TestDependencyProvider.Entry> configure) { var entry = new TestDependencyProvider.Entry(); configure(entry); return(entry.Dependencies.ToArray()); }
private void AssertDependencies( IEnumerable <LibraryDependency> actual, Action <TestDependencyProvider.Entry> expected) { var builder = new TestDependencyProvider.Entry(); expected(builder); Assert.Equal(builder.Dependencies.Select(d => d.Library), actual.Select(d => d.Library)); }
LibraryDependency[] Dependencies(Action<TestDependencyProvider.Entry> configure) { var entry = new TestDependencyProvider.Entry(); configure(entry); return entry.Dependencies.ToArray(); }
private void AssertDependencies( IEnumerable<LibraryDependency> actual, Action<TestDependencyProvider.Entry> expected) { var builder = new TestDependencyProvider.Entry(); expected(builder); actual.Select(d => d.Library).ShouldBe( builder.Dependencies.Select(d => d.Library) ); }