public void DistributionList_TopLevel() { //call update with no edits - this should fail WebCallResult res = _tempList.Update(); Assert.IsFalse(res.Success, "Call to update with no pending changes should fail"); //Edit the list's name string strNewName = _tempList.DisplayName + "x"; _tempList.DisplayName = strNewName; res = _tempList.Update(); Assert.IsTrue(res.Success, "Call to update distribution list failed:" + res.ToString()); res = _tempList.RefetchDistributionListData(); Assert.IsTrue(res.Success, "Failed refetching list data:" + res); Assert.IsTrue(_tempList.DisplayName.Equals(strNewName), "Updated name did not match after refresh"); _tempList.PartitionObjectId = "bogus"; res = _tempList.Update(); Assert.IsFalse(res.Success, "Setting invalid partition value did not fail:" + res); res = _tempList.SetVoiceNameToStreamFile(""); Assert.IsFalse(res.Success, "Calling SetVoiceNameToStreamFile with empty ID did not fail"); res = _tempList.SetVoiceName("CiscoUnityConnectionRestFunctions.dll", true); Assert.IsFalse(res.Success, "Attempting to apply an DLL as a voice name did not fail:" + res); }