Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReplaceNullChars Method

Assert.ReplaceNullChars Method

In a string, replaces null characters ('\0') with "\\0".

Namespace:  Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public static string ReplaceNullChars(
	string input


Type: System.String

The string in which to search for and replace null characters.

Return Value

Type: System.String
The converted string with null characters replaced by "\\0".

© 2015 Microsoft