public void ReplaceCCWorks() { Assert.AreEqual("abc", MHString.ReplaceControlChars("abc", '.'), "t1"); string Test = string.Empty; for (int z = 0; z < 32; z++) { Test += Convert.ToChar(z); } Assert.AreEqual("................................", MHString.ReplaceControlChars(Test, '.'), "t1"); Assert.AreEqual("................................A", MHString.ReplaceControlChars(Test + "A", '.'), "t2"); }