Test implementation for IVsOutputWindowPane
Inheritance: IVsOutputWindowPane
Ejemplo n.º 1
0
        public void VsOutputWindowPaneNotifier_MessageOnly()
        {
            // Arrange
            bool logFullException    = true;
            bool ensureOutputVisible = false;

            StubVsOutputWindowPane outputPane = this.CreateOutputPane(logFullException);

            StubVsUIShell.StubWindowFrame frame = this.CreateAndRegisterFrame();

            IProgressErrorNotifier testSubject = this.CreateTestSubject(outputPane, ensureOutputVisible, logFullException);

            // Act
            testSubject.Notify(this.expectedException);

            // Assert
            frame.WasShown.Should().BeFalse();
            outputPane.IsActivated.Should().BeFalse();
            outputPane.IsWrittenToOutputWindow.Should().BeTrue();
        }
Ejemplo n.º 2
0
        public void VsOutputWindowPaneNotifier_FullException()
        {
            // Setup
            bool logFullException    = true;
            bool ensureOutputVisible = false;

            StubVsOutputWindowPane outputPane = this.CreateOutputPane(logFullException);

            StubVsUIShell.StubWindowFrame frame = this.CreateAndRegisterFrame();

            IProgressErrorNotifier testSubject = this.CreateTestSubject(outputPane, ensureOutputVisible, logFullException);

            // Execute
            testSubject.Notify(this.expectedException);

            // Verify
            frame.AssertNotShown();
            outputPane.AssertNotActivated();
            outputPane.AssertWrittenToOutputWindow();
        }