Skip to main content

TestCode Struct

Namespace: Roslynator.Testing

Assembly: Roslynator.Testing.Common.dll

Represents a source code to be tested.

public readonly struct TestCode

Inheritance

Object ValueType TestCode

Properties

PropertySummary
AdditionalSpansGets a collection of spans that represent additional selected text.
ExpectedValueGets a source code after a code fix or a refactoring was applied.
SpansGets a collection of spans that represent selected text.
ValueGets a source code that should be tested.

Methods

MethodSummary
Equals(Object)(Inherited from ValueType)
GetHashCode()(Inherited from ValueType)
GetType()(Inherited from Object)
MemberwiseClone()(Inherited from Object)
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.
ToString()(Inherited from ValueType)