Searched refs:SampleEnum (Results 1 – 6 of 6) sorted by relevance
/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/ |
D | RepeatedFieldTest.cs | 461 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumArray() 462 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumArray() 465 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumArray() 466 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumArray() 467 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumArray() 468 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumArray() 469 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumArray() 470 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumArray() 499 RepeatedField<SampleEnum> values = new RepeatedField<SampleEnum>(); in TestNegativeEnumPackedArray() 500 values.AddEntriesFrom(input, FieldCodec.ForEnum(tag, x => (int)x, x => (SampleEnum)x)); in TestNegativeEnumPackedArray() [all …]
|
/external/protobuf/csharp/src/Google.Protobuf.Test/ |
D | SampleEnum.cs | 36 internal enum SampleEnum enum
|
D | CodedOutputStreamTest.cs | 276 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag() 280 output.WriteEnum((int) SampleEnum.NegativeValue); in TestNegativeEnumNoTag()
|
D | CodedInputStreamTest.cs | 388 Assert.AreEqual((int)SampleEnum.NegativeValue, input.ReadEnum()); in TestNegativeEnum()
|
/external/protobuf/util/ |
D | Makefile.am | 100 csharp/src/Google.Protobuf.Test/SampleEnum.cs \
|
/external/protobuf/ |
D | Makefile.am | 100 csharp/src/Google.Protobuf.Test/SampleEnum.cs \
|