Compartilhar via


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)

Syntax

'Declaration
Public Shared Function ReplaceNullChars ( _
    input As String _
) As String
public static string ReplaceNullChars(
    string input
)
public:
static String^ ReplaceNullChars(
    String^ input
)
static member ReplaceNullChars : 
        input:string -> string
public static function ReplaceNullChars(
    input : String
) : String

Parameters

  • input
    Type: String

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

Return Value

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

.NET Framework Security

See Also

Reference

Assert Class

Microsoft.VisualStudio.TestTools.UnitTesting Namespace