public void DebuggerAttacherService_AttacherThrows_AnswerIncludesExceptionMessage()
 {
     MockDebuggerAttacher
     .Setup(a => a.AttachDebugger(It.IsAny <int>()))
     .Returns(MessageBasedDebuggerAttacherTests.GetAttachDebuggerAction(() => { throw new Exception("my message"); }));
     DoTest("my message");
 }
 public void DebuggerAttacherService_AttacherReturnsFalse_AnswerWithoutReason()
 {
     MockDebuggerAttacher
     .Setup(a => a.AttachDebugger(It.IsAny <int>()))
     .Returns(MessageBasedDebuggerAttacherTests.GetAttachDebuggerAction(() => false));
     DoTest("unknown reasons");
 }
 public void DebuggerAttacherService_ReceivesMessage_AnswersImmediately()
 {
     MockDebuggerAttacher
     .Setup(a => a.AttachDebugger(It.IsAny <int>()))
     .Returns(MessageBasedDebuggerAttacherTests.GetAttachDebuggerAction(() => true));
     DoTest(null);
 }