Lines Matching full:message
46 var message = SampleMessages.CreateFullTestAllTypes(); in GetValue()
48 …Assert.AreEqual(message.SingleBool, fields[TestAllTypes.SingleBoolFieldNumber].Accessor.GetValue(m… in GetValue()
49 …Assert.AreEqual(message.SingleBytes, fields[TestAllTypes.SingleBytesFieldNumber].Accessor.GetValue… in GetValue()
50 …Assert.AreEqual(message.SingleDouble, fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.GetVal… in GetValue()
51 …Assert.AreEqual(message.SingleFixed32, fields[TestAllTypes.SingleFixed32FieldNumber].Accessor.GetV… in GetValue()
52 …Assert.AreEqual(message.SingleFixed64, fields[TestAllTypes.SingleFixed64FieldNumber].Accessor.GetV… in GetValue()
53 …Assert.AreEqual(message.SingleFloat, fields[TestAllTypes.SingleFloatFieldNumber].Accessor.GetValue… in GetValue()
54 …Assert.AreEqual(message.SingleForeignEnum, fields[TestAllTypes.SingleForeignEnumFieldNumber].Acces… in GetValue()
55 …Assert.AreEqual(message.SingleForeignMessage, fields[TestAllTypes.SingleForeignMessageFieldNumber]… in GetValue()
56 …Assert.AreEqual(message.SingleImportEnum, fields[TestAllTypes.SingleImportEnumFieldNumber].Accesso… in GetValue()
57 …Assert.AreEqual(message.SingleImportMessage, fields[TestAllTypes.SingleImportMessageFieldNumber].A… in GetValue()
58 …Assert.AreEqual(message.SingleInt32, fields[TestAllTypes.SingleInt32FieldNumber].Accessor.GetValue… in GetValue()
59 …Assert.AreEqual(message.SingleInt64, fields[TestAllTypes.SingleInt64FieldNumber].Accessor.GetValue… in GetValue()
60 …Assert.AreEqual(message.SingleNestedEnum, fields[TestAllTypes.SingleNestedEnumFieldNumber].Accesso… in GetValue()
61 …Assert.AreEqual(message.SingleNestedMessage, fields[TestAllTypes.SingleNestedMessageFieldNumber].A… in GetValue()
62 …Assert.AreEqual(message.SinglePublicImportMessage, fields[TestAllTypes.SinglePublicImportMessageFi… in GetValue()
63 …Assert.AreEqual(message.SingleSint32, fields[TestAllTypes.SingleSint32FieldNumber].Accessor.GetVal… in GetValue()
64 …Assert.AreEqual(message.SingleSint64, fields[TestAllTypes.SingleSint64FieldNumber].Accessor.GetVal… in GetValue()
65 …Assert.AreEqual(message.SingleString, fields[TestAllTypes.SingleStringFieldNumber].Accessor.GetVal… in GetValue()
66 …Assert.AreEqual(message.SingleSfixed32, fields[TestAllTypes.SingleSfixed32FieldNumber].Accessor.Ge… in GetValue()
67 …Assert.AreEqual(message.SingleSfixed64, fields[TestAllTypes.SingleSfixed64FieldNumber].Accessor.Ge… in GetValue()
68 …Assert.AreEqual(message.SingleUint32, fields[TestAllTypes.SingleUint32FieldNumber].Accessor.GetVal… in GetValue()
69 …Assert.AreEqual(message.SingleUint64, fields[TestAllTypes.SingleUint64FieldNumber].Accessor.GetVal… in GetValue()
70 …Assert.AreEqual(message.OneofBytes, fields[TestAllTypes.OneofBytesFieldNumber].Accessor.GetValue(m… in GetValue()
71 …Assert.AreEqual(message.OneofString, fields[TestAllTypes.OneofStringFieldNumber].Accessor.GetValue… in GetValue()
72 …Assert.AreEqual(message.OneofNestedMessage, fields[TestAllTypes.OneofNestedMessageFieldNumber].Acc… in GetValue()
73 …Assert.AreEqual(message.OneofUint32, fields[TestAllTypes.OneofUint32FieldNumber].Accessor.GetValue… in GetValue()
76 … var list = (IList) fields[TestAllTypes.RepeatedInt32FieldNumber].Accessor.GetValue(message); in GetValue()
77 Assert.AreEqual(message.RepeatedInt32, list); in GetValue()
78 … Assert.AreEqual(message.RepeatedInt32[0], list[0]); // Just in case there was any doubt... in GetValue()
91 var message = SampleMessages.CreateFullTestAllTypes(); in Clear()
93 fields[TestAllTypes.SingleBoolFieldNumber].Accessor.Clear(message); in Clear()
94 fields[TestAllTypes.SingleInt32FieldNumber].Accessor.Clear(message); in Clear()
95 fields[TestAllTypes.SingleStringFieldNumber].Accessor.Clear(message); in Clear()
96 fields[TestAllTypes.SingleBytesFieldNumber].Accessor.Clear(message); in Clear()
97 fields[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.Clear(message); in Clear()
98 fields[TestAllTypes.SingleForeignMessageFieldNumber].Accessor.Clear(message); in Clear()
99 fields[TestAllTypes.RepeatedDoubleFieldNumber].Accessor.Clear(message); in Clear()
112 Assert.AreEqual(expected, message); in Clear()
125 var message = SampleMessages.CreateFullTestAllTypes(); in SetValue_SingleFields()
127 fields[TestAllTypes.SingleBoolFieldNumber].Accessor.SetValue(message, false); in SetValue_SingleFields()
128 fields[TestAllTypes.SingleInt32FieldNumber].Accessor.SetValue(message, 500); in SetValue_SingleFields()
129 … fields[TestAllTypes.SingleStringFieldNumber].Accessor.SetValue(message, "It's a string"); in SetValue_SingleFields()
130 …fields[TestAllTypes.SingleBytesFieldNumber].Accessor.SetValue(message, ByteString.CopyFrom(99, 98,… in SetValue_SingleFields()
131 …fields[TestAllTypes.SingleForeignEnumFieldNumber].Accessor.SetValue(message, ForeignEnum.ForeignFo… in SetValue_SingleFields()
132 …fields[TestAllTypes.SingleForeignMessageFieldNumber].Accessor.SetValue(message, new ForeignMessage… in SetValue_SingleFields()
133 fields[TestAllTypes.SingleDoubleFieldNumber].Accessor.SetValue(message, 20150701.5); in SetValue_SingleFields()
146 Assert.AreEqual(expected, message); in SetValue_SingleFields()
152 IMessage message = SampleMessages.CreateFullTestAllTypes(); in SetValue_SingleFields_WrongType()
153 var fields = message.Descriptor.Fields; in SetValue_SingleFields_WrongType()
154 …tion>(() => fields[TestAllTypes.SingleBoolFieldNumber].Accessor.SetValue(message, "This isn't a bo… in SetValue_SingleFields_WrongType()
160 IMessage message = new TestMap(); in SetValue_MapFields()
161 var fields = message.Descriptor.Fields; in SetValue_MapFields()
162 …tion>(() => fields[TestMap.MapStringStringFieldNumber].Accessor.SetValue(message, new Dictionary<s… in SetValue_MapFields()
168 IMessage message = SampleMessages.CreateFullTestAllTypes(); in SetValue_RepeatedFields()
169 var fields = message.Descriptor.Fields; in SetValue_RepeatedFields()
170 …>(() => fields[TestAllTypes.RepeatedDoubleFieldNumber].Accessor.SetValue(message, new double[10])); in SetValue_RepeatedFields()
176 IMessage message = SampleMessages.CreateFullTestAllTypes(); in GetValue_IncorrectType()
177 var fields = message.Descriptor.Fields; in GetValue_IncorrectType()
184 var message = new TestAllTypes(); in Oneof()
189 Assert.IsNull(oneof.Accessor.GetCaseFieldDescriptor(message)); in Oneof()
191 message.OneofString = "foo"; in Oneof()
192 …iptor.Fields[TestAllTypes.OneofStringFieldNumber], oneof.Accessor.GetCaseFieldDescriptor(message)); in Oneof()
194 message.OneofUint32 = 10; in Oneof()
195 …iptor.Fields[TestAllTypes.OneofUint32FieldNumber], oneof.Accessor.GetCaseFieldDescriptor(message)); in Oneof()
197 oneof.Accessor.Clear(message); in Oneof()
198 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in Oneof()