FieldCodecTester<TValue, TCodec>
class
Namespace: Orleans.Serialization.TestKit
Methods for testing field codecs.
public abstract class FieldCodecTester<TValue, TCodec> : SerializationTester where TCodec : class, Orleans.Serialization.Codecs.IFieldCodec<TValue>Methods
CanRoundTripCollectionViaSerializerChecks whether a strongly typed collection of values can be round-tripped.CanRoundTripDefaultValueViaCodecChecks if round-tripped default values are equal.CanRoundTripTupleViaSerializerChecks if values can be round-tripped when used as a field in a tuple.CanRoundTripViaObjectSerializerChecks if values can be round-tripped throughOrleans.Serialization.Serializerwhen usingSystem.Objectas the type parameter.CanRoundTripViaSerializerChecks if values can be round-tripped throughOrleans.Serialization.Serializerwhen usingTValueas the type parameter.CanRoundTripViaSerializer_ArrayChecks whether the codec correctly round-trips values when writing to an array.CanRoundTripViaSerializer_MemoryChecks whether the codec correctly round-trips values when writing to a memory slice.CanRoundTripViaSerializer_MemoryStreamChecks whether the codec correctly round-trips values when writing to a memory stream.CanRoundTripViaSerializer_ReadByteByByteChecks whether the codec correctly round-trips values when reading byte-by-byte, simulating fragmented reads.CanRoundTripViaSerializer_SpanChecks whether the codec correctly round-trips values when writing to a span.CanRoundTripViaSerializer_StreamPooledChecks whether the codec correctly round-trips values when using a pooled stream.CanRoundTripWeaklyTypedCollectionViaSerializerChecks whether a strongly typed collection of values can be round-tripped.CanSkipDefaultValueChecks if default values can be skipped over.CanSkipValueChecks if values can be skipped over.CorrectlyAdvancesReferenceCounterChecks whether the codec correctly advances the reference counter when writing to a pipe and reading from a pipe.CorrectlyAdvancesReferenceCounterStreamChecks whether the codec correctly advances the reference counter when writing to a stream and reading from a stream.CorrectlyHandlesBuffersChecks if buffers are handled correctly.ProducesValidBitStreamChecks whether the codec produces a valid bit stream.RoundTrippedValuesEqualChecks if round-tripped values are equal.WritersProduceSameResultsChecks whether various buffer writers produce bit-wise identical results.
