public void UnencodeXML() { String xml = null; Assert.IsNull(AdkStringUtils.UnencodeXml(xml), "String should be null"); xml = "<Hello>"; Assert.AreEqual("<Hello>", AdkStringUtils.UnencodeXml(xml)); }
private void AssertReplaceFirst(string source, string search, string replace, string expectedResult) { string result = AdkStringUtils.ReplaceFirst(source, search, replace); Assert.AreEqual(expectedResult, result, "String Replace Failed"); }