public WindowsEnvironmentPathTests()
        {
            _reporter         = new BufferedReporter();
            _mockPathInternal = new MockPathInternal();
            var mockEnvironmentProvider   = new MockEnvironmentProvider(_mockPathInternal);
            var mockEnvironmentPathEditor = new MockEnvironmentPathEditor(_mockPathInternal);

            _windowsEnvironmentPath = new WindowsEnvironmentPath(
                _toolsPath,
                CliFolderPathCalculator.WindowsNonExpandedToolsShimPath,
                mockEnvironmentProvider,
                mockEnvironmentPathEditor,
                _reporter
                );
        }
Esempio n. 2
0
        public WindowsEnvironmentPathTests()
        {
            _reporter         = new BufferedReporter();
            _mockPathInternal = new MockPathInternal();
            var mockEnvironmentProvider   = new MockEnvironmentProvider(_mockPathInternal);
            var mockEnvironmentPathEditor = new MockEnvironmentPathEditor(_mockPathInternal);

            _windowsEnvironmentPath = new WindowsEnvironmentPath(
                _toolsPath,
                @"%USERPROFILE%\.dotnet\tools",
                mockEnvironmentProvider,
                mockEnvironmentPathEditor,
                _reporter
                );
        }
 public MockEnvironmentPathEditor(MockPathInternal mockPathInternal)
 {
     _mockPathInternal = mockPathInternal;
 }
 public MockEnvironmentProvider(MockPathInternal mockPathInternal)
 {
     _mockPathInternal = mockPathInternal ?? throw new ArgumentNullException(nameof(mockPathInternal));
 }