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();
        }
        internal AppBaseCompilationAssemblyResolver(IFileSystem fileSystem, string basePath, DependencyContextPaths dependencyContextPaths)
        {
            ThrowHelper.ThrowIfNull(fileSystem);
            ThrowHelper.ThrowIfNull(basePath);
            ThrowHelper.ThrowIfNull(dependencyContextPaths);

            _fileSystem             = fileSystem;
            _basePath               = basePath;
            _dependencyContextPaths = dependencyContextPaths;
        }
 internal AppBaseCompilationAssemblyResolver(IFileSystem fileSystem, string basePath, DependencyContextPaths dependencyContextPaths)
 {
     _fileSystem             = fileSystem;
     _basePath               = basePath;
     _dependencyContextPaths = dependencyContextPaths;
 }
 internal AppBaseCompilationAssemblyResolver(IFileSystem fileSystem, string basePath, DependencyContextPaths dependencyContextPaths)
 {
     _fileSystem = fileSystem;
     _basePath = basePath;
     _dependencyContextPaths = dependencyContextPaths;
 }
 internal AppBaseCompilationAssemblyResolver(IFileSystem fileSystem, string basePath, DependencyContextPaths dependencyContextPaths)
 {
     _fileSystem             = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
     _basePath               = basePath ?? throw new ArgumentNullException(nameof(basePath));
     _dependencyContextPaths = dependencyContextPaths ?? throw new ArgumentNullException(nameof(dependencyContextPaths));
 }