Пример #1
0
 public void TestOkResponse()
 {
     OkResponse response = new OkResponse();
      ResponseTest(response, ResponseType.Ok, 1, "ok", new List<string> { string.Empty });
 }
        public void TestRemoveProcessedResponses()
        {
            IResponse r1 = new MTMessageResponse();
             IResponse r2 = new OkResponse();
             r1.Processed = true;
             r2.Processed = false;

             _cmdbase.Responses = new List<IResponse> { r1, r2 };
             _cmdbase.RemoveProcessedResponses();
             Assert.AreEqual(1, _cmdbase.Responses.Count);
        }