public void Delete_EmptyObject_Failure() { PortGroup oPortGroup = new PortGroup(); var res = oPortGroup.Delete(); Assert.IsFalse(res.Success, "Deleting data with empty object should fail"); }
public static void MyClassCleanup() { WebCallResult res; if (_portGroup != null) { res = _portGroup.Delete(); Assert.IsTrue(res.Success, "Failed to delete temporary port group on cleanup."); } if (_phoneSystem != null) { res = _phoneSystem.Delete(); Assert.IsTrue(res.Success, "Failed to delete temporary phone system on cleanup."); } }