private static void AssertErrorResponse(ChatMock chat, string errorMsg) { Assert.IsTrue(chat.SentMessages.Select(m => m.Body).Contains(errorMsg), string.Format("Expected response not fould: '{0}'", errorMsg)); }