protected void AssertContains( string expectedSubstring, string text) { if (!text.Contains(expectedSubstring)) Assert.Fail( "Expected Substring: {0}\nNot found in: {1}", expectedSubstring, text); }