//--------------------------------------------------------------------------- // Verifies the value of SupportedTextSelection //--------------------------------------------------------------------------- internal void TS_VerifySupportedTextSelection(SupportedTextSelection expectedValue, CheckType checkType) { SupportedTextSelection actualValue = TextLibrary.ProviderSupportedTextSelection();; // Compare what TextPattern tells us against what we expect based on the // test application says we should support if ( expectedValue != actualValue ) { Comment("TextPattern says SupportedTextSelection = " + actualValue.ToString()); Comment("Expected value to be = " + expectedValue.ToString()); ThrowMe(checkType, "Inconsistent expectedValue for SupportedTextSelection"); } Comment("SupportedTextSelection = " + actualValue + ", as expected"); m_TestStep++; }