public void Test_DeleteDirEntry_Error()
        {
            var request = new DeleteDirEntryRequest(FakeToken, FakeRepoId, "/test/subfolder/");
            var message = new HttpResponseMessage(HttpStatusCode.BadRequest);

            Assert.IsFalse(request.WasSuccessful(message));
            Assert.AreEqual(SeafErrorCode.PathDoesNotExist, request.GetSeafError(message).SeafErrorCode);
        }
        public void Test_DeleteDirEntry_Success()
        {
            var request = new DeleteDirEntryRequest(FakeToken, FakeRepoId, "/test/subfolder/");
            var message = new HttpResponseMessage(HttpStatusCode.OK)
            {
                Content = new StringContent("\"success\"")
            };

            Assert.IsTrue(request.WasSuccessful(message));
            Assert.IsTrue(ExecuteSync(() => request.ParseResponseAsync(message)));
        }