Test implementation for IVsOutputWindowPane
Inheritance: IVsOutputWindowPane
Exemplo 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();
        }
Exemplo 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();
        }