@ -43,7 +43,7 @@ namespace Google.Protobuf
#pragma warning disable 0414 // Used by tests via reflection - do not remove!
#pragma warning disable 0414 // Used by tests via reflection - do not remove!
private static readonly List < ICodecTestData > Codecs = new List < ICodecTestData >
private static readonly List < ICodecTestData > Codecs = new List < ICodecTestData >
{
{
new FieldCodecTestData < bool > ( FieldCodec . ForBool ( 1 0 0 ) , true , "Bool" ) ,
new FieldCodecTestData < bool > ( FieldCodec . ForBool ( 1 0 0 ) , true , "Fixed Bool" ) ,
new FieldCodecTestData < string > ( FieldCodec . ForString ( 1 0 0 ) , "sample" , "String" ) ,
new FieldCodecTestData < string > ( FieldCodec . ForString ( 1 0 0 ) , "sample" , "String" ) ,
new FieldCodecTestData < ByteString > ( FieldCodec . ForBytes ( 1 0 0 ) , ByteString . CopyFrom ( 1 , 2 , 3 ) , "Bytes" ) ,
new FieldCodecTestData < ByteString > ( FieldCodec . ForBytes ( 1 0 0 ) , ByteString . CopyFrom ( 1 , 2 , 3 ) , "Bytes" ) ,
new FieldCodecTestData < int > ( FieldCodec . ForInt32 ( 1 0 0 ) , - 1 0 0 0 , "Int32" ) ,
new FieldCodecTestData < int > ( FieldCodec . ForInt32 ( 1 0 0 ) , - 1 0 0 0 , "Int32" ) ,
@ -56,8 +56,8 @@ namespace Google.Protobuf
new FieldCodecTestData < long > ( FieldCodec . ForSFixed64 ( 1 0 0 ) , - 1 0 0 0 , "SFixed64" ) ,
new FieldCodecTestData < long > ( FieldCodec . ForSFixed64 ( 1 0 0 ) , - 1 0 0 0 , "SFixed64" ) ,
new FieldCodecTestData < ulong > ( FieldCodec . ForUInt64 ( 1 0 0 ) , 1 2 3 4 , "UInt64" ) ,
new FieldCodecTestData < ulong > ( FieldCodec . ForUInt64 ( 1 0 0 ) , 1 2 3 4 , "UInt64" ) ,
new FieldCodecTestData < ulong > ( FieldCodec . ForFixed64 ( 1 0 0 ) , 1 2 3 4 , "Fixed64" ) ,
new FieldCodecTestData < ulong > ( FieldCodec . ForFixed64 ( 1 0 0 ) , 1 2 3 4 , "Fixed64" ) ,
new FieldCodecTestData < float > ( FieldCodec . ForFloat ( 1 0 0 ) , 1 2 3 4.5f , "Float" ) ,
new FieldCodecTestData < float > ( FieldCodec . ForFloat ( 1 0 0 ) , 1 2 3 4.5f , "FixedF loat" ) ,
new FieldCodecTestData < double > ( FieldCodec . ForDouble ( 1 0 0 ) , 1 2 3 4 5 6 7 8 9 0.5d , "Double" ) ,
new FieldCodecTestData < double > ( FieldCodec . ForDouble ( 1 0 0 ) , 1 2 3 4 5 6 7 8 9 0.5d , "Fixed Double" ) ,
new FieldCodecTestData < ForeignEnum > (
new FieldCodecTestData < ForeignEnum > (
FieldCodec . ForEnum ( 1 0 0 , t = > ( int ) t , t = > ( ForeignEnum ) t ) , ForeignEnum . ForeignBaz , "Enum" ) ,
FieldCodec . ForEnum ( 1 0 0 , t = > ( int ) t , t = > ( ForeignEnum ) t ) , ForeignEnum . ForeignBaz , "Enum" ) ,
new FieldCodecTestData < ForeignMessage > (
new FieldCodecTestData < ForeignMessage > (