示例#1
0
        private static ProjectOutputWindowProjectLogger CreateLogger(IVsOutputWindowPane pane, bool enabled)
        {
            var options = IProjectSystemOptionsFactory.ImplementIsProjectOutputPaneEnabled(() => enabled);
            var outputWindowProvider = IProjectOutputWindowPaneProviderFactory.ImplementGetOutputWindowPaneAsync(pane);
            var logger = CreateInstance(options: options, outputWindowProvider: outputWindowProvider);

            return(CreateInstance(options: options, outputWindowProvider: outputWindowProvider));
        }
示例#2
0
        public void IsEnabled_ReturnsReturnOfIsProjectOutputPaneEnabled(bool isProjectOutputPaneEnabled)
        {
            var options = IProjectSystemOptionsFactory.ImplementIsProjectOutputPaneEnabled(() => isProjectOutputPaneEnabled);

            var logger = CreateInstance(options: options);

            Assert.Equal(isProjectOutputPaneEnabled, logger.IsEnabled);
        }