public void TestPutDocumentProperty() { TasksApi target = new TasksApi(APIKEY, APPSID, BASEPATH); StorageApi storageApi = new StorageApi(APIKEY, APPSID, BASEPATH); string name = "sample-project-2.mpp"; string propertyName = "Title"; string storage = null; string folder = null; string filename = null; DocumentProperty body = new DocumentProperty(); body.Name = "Title"; body.Value = "NewTask"; storageApi.PutCreate(name, null, null, System.IO.File.ReadAllBytes("\\temp\\tasks\\resources\\" + name)); DocumentPropertyResponse actual; actual = target.PutDocumentProperty(name, propertyName, storage, folder, filename, body); Assert.AreEqual("200", actual.Code); Assert.IsInstanceOfType(new DocumentPropertyResponse(), actual.GetType()); }