Skip to main content

TestCode.Parse Method

Containing Type: TestCode

Assembly: Roslynator.Testing.Common.dll

Overloads

MethodSummary
Parse(String, String, String)Finds and replace span that is marked with [\|\|] token.
Parse(String)Finds and removes spans that are marked with [\| and \|] tokens.

Parse(String, String, String)

Finds and replace span that is marked with [||] token.

public static Roslynator.Testing.TestCode Parse(string value, string replacement1, string? replacement2 = null)

Parameters

value String

replacement1 String

replacement2 String

Returns

TestCode

Parse(String)

Finds and removes spans that are marked with [| and |] tokens.

public static Roslynator.Testing.TestCode Parse(string value)

Parameters

value String

Returns

TestCode