private Exception Setup(bool logWholeMessage) { string format = this.TestContext.TestName + "{0}"; string title = this.TestContext.TestName; this.testSubject = new VsMessageBoxNotifier(this.serviceProvider, title, format, logWholeMessage); Exception ex = this.GenerateException(); this.uiSHell.ShowMessageBoxAction = (actualTitle, actualMessage) => { actualTitle.Should().Be(title, "Unexpected message box title"); MessageVerificationHelper.VerifyNotificationMessage(actualMessage, format, ex, logWholeMessage); }; return(ex); }
public void TestCleanup() { this.uiSHell = null; this.serviceProvider = null; this.testSubject = null; }