public void PrivateListVoiceName() { WebCallResult res = _tempPrivateList.SetVoiceName("blah.blah"); Assert.IsFalse(res.Success, "Voice name update with invalid file name did not fail"); res = _tempPrivateList.SetVoiceName("Dummy.wav", true); Assert.IsTrue(res.Success, "Failed updating private list voice name:" + res); //fetch updated VoiceName string by reloading the private list PrivateList oPrivateList = null; try { oPrivateList = new PrivateList(_connectionServer, _tempPrivateList.UserObjectId, _tempPrivateList.ObjectId); } catch (Exception ex) { Assert.Fail("Failed to create updated private list instance:" + ex); } res = oPrivateList.GetVoiceName("DummyDownload.wav"); Assert.IsTrue(res.Success, "Failed fetching private list voice name:" + res); }