AssertFailedException.ExpectedText Property

Definition

Gets the pre-formatted text representation of the expected value, as displayed in the expected: line of the structured assertion message. Returns null when the assertion has no natural expected value (e.g. Fail(String)).

public string? ExpectedText { get; }
member this.ExpectedText : string
Public ReadOnly Property ExpectedText As String

Property Value

Applies to