Beispiel #1
0
        public void UnencodeXML()
        {
            String xml = null;

            Assert.IsNull(AdkStringUtils.UnencodeXml(xml), "String should be null");

            xml = "<Hello>";
            Assert.AreEqual("<Hello>", AdkStringUtils.UnencodeXml(xml));
        }
Beispiel #2
0
        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");
        }