public static EscapeControlChars ( string s ) : string | ||
s | string | The string to be converted |
Результат | string |
public static void EscapeNullCharInString() { Assert.That(MsgUtils.EscapeControlChars("\0"), Is.EqualTo("\\0")); }
public static void EscapeControlCharsTest(string input, string expected) { Assert.That(MsgUtils.EscapeControlChars(input), Is.EqualTo(expected)); }