Ejemplo n.º 1
0
        public void DeleteRequestFailTest()
        {
            Status status  = Status.UnknownCommand;
            var    request = new DeleteRequest
            {
                Key       = @"Hello",
                RequestId = 0,
                CallBack  = (s) => status = s,
            };

            Assert.DoesNotThrow(() => request.Fail());
            Assert.AreEqual(Status.InternalError, status, "The status sent by a fail should be InternalError");
        }