Method EscapeString
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
EscapeString(string)
Escapes a string for printing, attempting to most closely model the value on how you would enter the value in a C# string literal. That means control codes that are normally backslash escaped (like "\n" for newline) are represented like that; all other control codes for ASCII values under 32 are printed as "\xnn".
public static string EscapeString(string s)
Parameters
sstringThe string value to be escaped