public void FromJson_WithFiles_ReturnsFilesAndLeavesErrorMessageEmpty()
        {
            var json = "{\"files\":[{\"kind\":0,\"path\":\"TempPath\"}],\"errorMessage\":null}";

            var result = FilesRequestResponse.FromJson(json);

            Assert.IsNull(result.ErrorMessage);
            Assert.AreEqual(result.Files.Single().Path, "TempPath");
        }
        public void FromJson_WithErrorMessage_ReturnsMessage()
        {
            var json = "{\"files\":null,\"errorMessage\":\"This is a error message\"}";

            var result = FilesRequestResponse.FromJson(json);

            Assert.AreEqual("This is a error message", result.ErrorMessage);
            Assert.IsNull(result.Files);
        }