Ejemplo n.º 1
0
        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
                );
        }
Ejemplo 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
                );
        }