public void GrabValue() { //mDataType = mGlobalValue.Type; changed 6/27/08 NOTE: Type must be defined at TestExecution creation since it is used by mathops to determine their type switch (mDataType) { case DataType.Boolean: SetValue(mGlobalValue.ValueAsBoolean()); break; case DataType.DecimalNumber: SetValue(mGlobalValue.ValueAsDecimal()); break; case DataType.IntegerNumber: SetValue(mGlobalValue.ValueAsBoolean()); break; default: throw new ArgumentException("Data Type of global " + mGlobalValue.Name + " not defined"); } }
public bool ValueAsBoolean() { return(mGlobalValue.ValueAsBoolean()); }