public void CleanStringBeforeTest() { string s = "asdf;lkjre/http://www.yahoo.com"; string tk = "http:"; string expected = "http://www.yahoo.com"; string actual; actual = CoreExtensions.CleanStringBefore(s, tk); Assert.AreEqual(expected, actual); s = "http://www.yahoo.com"; Assert.AreEqual(expected, actual); }