Method Create
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
Create(byte[], string)
Creates an instance of TestAttachment that wraps a byte array value.
public static TestAttachment Create(byte[] value, string mediaType)
Parameters
Returns
Remarks
The mediaType
value must be in the MIME "type/subtype" form, and does not support
parameter values. The subtype is allowed to have a single "+" to denote specialization of the
subtype (i.e., "application/xhtml+xml"). For more information on media types, see
https://datatracker.ietf.org/doc/html/rfc2045#section-5.1.
Create(string)
Creates an instance of TestAttachment that wraps a string value.
public static TestAttachment Create(string value)
Parameters
value
string