public void TestErrorActionPrompt_PromptsWithGivenTitle() { UserPromptWindow userPrompt = GetWindow(() => _objectUnderTest.ErrorActionPrompt(DefaultPrompt, ExpectedTitle)); Assert.AreEqual(ExpectedTitle, userPrompt.Title); }