HumanReadableSnapshotSerializer Class

Serializes objects to human-readable string representations suitable for snapshot testing.

public sealed class HumanReadableSnapshotSerializer : SnapshotSerializer
Inheritance
SnapshotSerializer HumanReadableSnapshotSerializer

Constructors

NameDescription
HumanReadableSnapshotSerializer(HumanReadableSerializerOptions?)
HumanReadableSnapshotSerializer(Action<HumanReadableSerializerOptions>?)

HumanReadableSnapshotSerializer overloads

HumanReadableSnapshotSerializer(HumanReadableSerializerOptions?)

HumanReadableSnapshotSerializer.cs
public HumanReadableSnapshotSerializer(HumanReadableSerializerOptions? options = null)

No documentation is available.

HumanReadableSnapshotSerializer(Action<HumanReadableSerializerOptions>?)

HumanReadableSnapshotSerializer.cs
public HumanReadableSnapshotSerializer(Action<HumanReadableSerializerOptions>? configure)

No documentation is available.

Methods

NameDescription
Serialize(object?)Serializes an object to a string representation.

Serializes an object to a string representation.

public override string Serialize(object? value)

Parameters

value object?
The object to serialize.

Returns

string The serialized string representation of the object.