FieldCodecTester<TValue,TCodec> Class

Definition

Methods for testing field codecs.

C#
[Xunit.Trait("Category", "BVT")]
public abstract class FieldCodecTester<TValue,TCodec> : IDisposable where TCodec : class, IFieldCodec<TValue>

Type Parameters

TValue
TCodec
Inheritance
FieldCodecTester<TValue,TCodec>
Derived
Attributes
Xunit.TraitAttribute
Implements

Constructors

Properties

MaxSegmentSizes

Gets the maximum segment sizes for buffer testing.

Random

Gets the random number generator.

ServiceProvider

Gets the service provider.

SessionPool

Gets the session pool.

TestValues

Gets test values.

ValueProvider

Gets a value provider delegate.

Methods

CanCopyCollectionViaSerializer()
CanCopyCollectionViaUntypedSerializer()
CanCopyTupleViaSerializer_Untyped()
CanCopyTupleViaSerializer()
CanRoundTripCollectionViaSerializer()

Checks whether a strongly typed collection of values can be round-tripped.

CanRoundTripDefaultValueViaCodec()

Checks if round-tripped default values are equal.

CanRoundTripTupleViaSerializer()

Checks if values can be round-tripped when used as a field in a tuple.

CanRoundTripViaObjectSerializer()

Checks if values can be round-tripped through Serializer<T> when using Object as the type parameter.

CanRoundTripViaSerializer_Array()

Checks whether the codec correctly round-trips values when writing to an array.

CanRoundTripViaSerializer_Memory()

Checks whether the codec correctly round-trips values when writing to a memory slice.

CanRoundTripViaSerializer_MemoryStream()

Checks whether the codec correctly round-trips values when writing to a memory stream.

CanRoundTripViaSerializer_ReadByteByByte()

Checks whether the codec correctly round-trips values when reading byte-by-byte, simulating fragmented reads.

CanRoundTripViaSerializer_Span()

Checks whether the codec correctly round-trips values when writing to a span.

CanRoundTripViaSerializer_StreamPooled()

Checks whether the codec correctly round-trips values when using a pooled stream.

CanRoundTripViaSerializer()

Checks if values can be round-tripped through Serializer<T> when using TValue as the type parameter.

CanRoundTripWeaklyTypedCollectionViaSerializer()

Checks whether a strongly typed collection of values can be round-tripped.

CanSkipDefaultValue()

Checks if default values can be skipped over.

CanSkipValue()

Checks if values can be skipped over.

Configure(ISerializerBuilder)

Configures the serializer.

CorrectlyAdvancesReferenceCounter()

Checks whether the codec correctly advances the reference counter when writing to a pipe and reading from a pipe.

CorrectlyAdvancesReferenceCounterStream()

Checks whether the codec correctly advances the reference counter when writing to a stream and reading from a stream.

CorrectlyHandlesBuffers()

Checks if buffers are handled correctly.

CreateCodec()

Creates a codec.

CreateValue()

Creates a value.

Equals(TValue, TValue)

Compares two values for equality.

GetWriteCopy(TValue)
ProducesValidBitStream()

Checks whether the codec produces a valid bit stream.

RoundTrippedValuesEqual()

Checks if round-tripped values are equal.

RoundTripThroughCodec<T>(T)

Round-trips a value through the codec.

RoundTripThroughUntypedSerializer(Object, String)

Round-trips a value through an untyped serializer.

WritersProduceSameResults()

Checks whether various buffer writers produce bit-wise identical results.

Explicit Interface Implementations

IDisposable.Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Applies to

Product Versions
.NET Orleans 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0