This topic has not yet been rated - Rate this topic

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
)

Parameters

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".
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ