Method ForFailure
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.assert.dll
ForFailure(string?)
Creates a new instance of the FailException class to be thrown when the user calls Fail(string?).
public static FailException ForFailure(string? message)
Parameters
messagestringThe user's failure message.