/// ------------------------------------------------------------------- /// <summary></summary> /// ------------------------------------------------------------------- void TS_VerifyValue(object val, bool isEqual, CheckType checkType) { string pValue = pattern_Value; // Trim trailing CR/LF if we're on a richedit TextTestsHelper.TrimTrailingCRLF(m_le, ref pValue); bool equal = GenericMath.AreEquals(pValue, val.ToString()); if (!equal.Equals(isEqual)) { ThrowMe(checkType, "ValuePattern.Value = '" + pValue + "'(" + pValue.GetType() + ") and expected '" + val + "'(" + val.GetType() + ")"); } Comment("Is " + (isEqual == true ? "equal" : "not equal") + " to ValuePattern.Value (" + pValue + ")"); m_TestStep++; }