protected void any_IFakeServer_should_able_to_get_history_of_ricivers_messages() { IFakeServer fakeserver = BuildTestingServer(); fakeserver.ShouldRecived(); HttpSender.SendPost(ListenedFakeServerURL, REQUEST_SAMPLE_BODY); string[] actualReciveMessages = fakeserver.GetReciveHistory(); Assert.AreEqual(1, actualReciveMessages.Length, "Wrong count of element for array was returned by method GetReciveHistory"); Assert.AreEqual(REQUEST_SAMPLE_BODY, actualReciveMessages[0], "Wrong content of element for array was returned by method GetReciveHistory"); try { fakeserver.StopServer(); } catch (Exception) { //Сервер должен сказать что не все запросы пришли. Но в данном тесте это не проверяется. } }