private void SetVariableStringDelegateFunction(object Caller, StringVariableEventArgs SVEArgs) { this.TestEnvironment[SVEArgs.StringName] = SVEArgs.StringValue; HRESULTS RetVal = (HRESULTS)OptionalNodeProcessing("SetVariableString/DelegateReturnValue", HRESULTS.HR_S_OK); SVEArgs.ResultToReturn = RetVal; }
private void GetVariableStringDelegateFunction(object Caller, StringVariableEventArgs SVEArgs) { HRESULTS RetVal = HRESULTS.HR_S_OK; if (this.TestEnvironment.VariableExists(SVEArgs.StringName)) { SVEArgs.StringValue = (string)this.TestEnvironment[SVEArgs.StringName]; } else { RetVal = HRESULTS.HR_FAILURE; } RetVal = (HRESULTS)OptionalNodeProcessing("GetVariableString/DelegateReturnValue", RetVal); SVEArgs.ResultToReturn = RetVal; }