Пример #1
0
        LibraryDependency[] Dependencies(Action <TestDependencyProvider.Entry> configure)
        {
            var entry = new TestDependencyProvider.Entry();

            configure(entry);
            return(entry.Dependencies.ToArray());
        }
Пример #2
0
        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));
        }
Пример #3
0
 LibraryDependency[] Dependencies(Action<TestDependencyProvider.Entry> configure)
 {
     var entry = new TestDependencyProvider.Entry();
     configure(entry);
     return entry.Dependencies.ToArray();
 }
Пример #4
0
        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)
            );
        }