public void CreateWithNullFxDeps() { var paths = DependencyContextPaths.Create("foo.deps.json", null); paths.Application.Should().Be("foo.deps.json"); paths.SharedRuntime.Should().BeNull(); paths.NonApplicationPaths.Should().BeEmpty(); }
public void CreateWithDepsFilesContainingFxDeps() { var paths = DependencyContextPaths.Create("foo.deps.json;fx.deps.json", "fx.deps.json"); paths.Application.Should().Be("foo.deps.json"); paths.SharedRuntime.Should().Be("fx.deps.json"); paths.NonApplicationPaths.Should().BeEquivalentTo("fx.deps.json"); }
public void CreateWithNulls() { var paths = DependencyContextPaths.Create(null, null); paths.Application.Should().BeNull(); paths.SharedRuntime.Should().BeNull(); paths.NonApplicationPaths.Should().BeEmpty(); }