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>Constructors
FieldCodecTester<TValue, TCodec>(ITestOutputHelper)Initializes a new instance of theOrleans.Serialization.TestKit.FieldCodecTesterclass.FieldCodecTester<TValue, TCodec>(ITestOutputHelper, SerializationTesterFixture)Initializes a new instance of theOrleans.Serialization.TestKit.FieldCodecTesterclass.
Properties
MaxSegmentSizesGets the maximum segment sizes for buffer testing.SessionPoolGets the session pool.TestValuesGets test values.ValueProviderGets a value provider delegate.
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.Configure(ISerializerBuilder)Configures the serializer.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.CreateCodecCreates a codec.CreateServiceProviderCreates the serializer service provider for this test class.CreateValueCreates a value.Equals(TValue?, TValue?)Compares two values for equality.GetWriteCopy(TValue?)ProducesValidBitStreamChecks whether the codec produces a valid bit stream.RoundTripThroughCodec(T)Round-trips a value through the codec.RoundTripThroughUntypedSerializer(object?, string)Round-trips a value through an untyped serializer.RoundTrippedValuesEqualChecks if round-tripped values are equal.WritersProduceSameResultsChecks whether various buffer writers produce bit-wise identical results.
