Home
last modified time | relevance | path

Searched refs:SampleEnum (Results 1 – 6 of 6) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs461 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/
DSampleEnum.cs36 internal enum SampleEnum enum
DCodedOutputStreamTest.cs276 Assert.AreEqual(10, CodedOutputStream.ComputeEnumSize((int) SampleEnum.NegativeValue)); in TestNegativeEnumNoTag()
280 output.WriteEnum((int) SampleEnum.NegativeValue); in TestNegativeEnumNoTag()
DCodedInputStreamTest.cs388 Assert.AreEqual((int)SampleEnum.NegativeValue, input.ReadEnum()); in TestNegativeEnum()
/external/protobuf/util/
DMakefile.am100 csharp/src/Google.Protobuf.Test/SampleEnum.cs \
/external/protobuf/
DMakefile.am100 csharp/src/Google.Protobuf.Test/SampleEnum.cs \