示例#1
0
        private void RunTest()
        {
            var finder = new WindowsLocalDockerFinder(_services);
            var docker = finder.GetLocalDocker();

            docker.Should().NotBeNull();
            docker.BinPath.Should().NotBeEmpty();
            docker.DockerCommandPath.Should().NotBeEmpty();
        }
        public void FindDockerInstallationUsingProgramFilesTest()
        {
            var services = new ServiceManager()
                           .AddService(GetFileSystemMock())
                           .AddService <IProcessServices, ProcessServices>()
                           .AddService(new RegistryMock());

            var finder = new WindowsLocalDockerFinder(services);
            var docker = finder.GetLocalDocker();

            docker.Should().NotBeNull();
            docker.BinPath.Should().NotBeEmpty();
            docker.DockerCommandPath.Should().NotBeEmpty();
        }