public void PhoneSystem_PortGroupTests() { WebCallResult res = _portGroup.Update(); Assert.IsFalse(res.Success, "Update of port group with no pending changes did not fail:" + res); _portGroup.DisplayName = "Updated_" + Guid.NewGuid(); res = _portGroup.Update(); Assert.IsTrue(res.Success, "Failed to update port group:" + res); }
public void Update_NoPendingChanges_Failure() { PortGroup oPortGroup = new PortGroup(); var res = oPortGroup.Update(); Assert.IsFalse(res.Success, "Updating data with no pending changes should fail"); }
public void Update_EmptyObject_Failure() { PortGroup oPortGroup = new PortGroup(); oPortGroup.DisplayName = "New Display Name"; var res = oPortGroup.Update(); Assert.IsFalse(res.Success, "Updating data with empty object should fail"); }