public override UPnPTestStates Run(ICollection otherSubTests, CdsSubTestArgument arg) { this._TestState = UPnPTestStates.Running; CpContentDirectory CDS = this.GetCDS(arg._Device); _Details = new CdsResult_GetSystemUpdateID(); uint updateID = 0; try { if (CDS != null) { DateTime start = System.DateTime.Now; CDS.Sync_GetSystemUpdateID(out updateID); this.LogResponseTime(start, _Details, arg); } } catch (UPnPInvokeException ie) { arg.TestGroup.AddResult(this._Name + " test failed because of an invocation error: " + ie.Message); return(UPnPTestStates.Failed); } arg._TestGroupState.SystemUpdateID = updateID; arg.TestGroup.AddResult(this._Name + " test passed. Returned=\"" + updateID.ToString() + "\"."); this._TestState = UPnPTestStates.Pass; return(this._TestState); }
public override UPnPTestStates Run(ICollection otherSubTests, CdsSubTestArgument arg) { this._TestState = UPnPTestStates.Running; CpContentDirectory CDS = this.GetCDS(arg._Device); _Details = new CdsResult_GetSystemUpdateID(); uint updateID = 0; try { if (CDS != null) { DateTime start = System.DateTime.Now; CDS.Sync_GetSystemUpdateID(out updateID); this.LogResponseTime(start, _Details, arg); } } catch (UPnPInvokeException ie) { arg.TestGroup.AddResult(this._Name + " test failed because of an invocation error: " + ie.Message); return UPnPTestStates.Failed; } arg._TestGroupState.SystemUpdateID = updateID; arg.TestGroup.AddResult(this._Name + " test passed. Returned=\"" + updateID.ToString() + "\"."); this._TestState = UPnPTestStates.Pass; return this._TestState; }