Lines Matching refs:AreEqual
68 Assert.AreEqual(3, converted.Count); in FileDescriptor_BuildFromByteStrings()
74 Assert.AreEqual("unittest_proto3.proto", file.Name); in TestFileDescriptor()
75 Assert.AreEqual("protobuf_unittest3", file.Package); in TestFileDescriptor()
77 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in TestFileDescriptor()
78 Assert.AreEqual("unittest_proto3.proto", file.Proto.Name); in TestFileDescriptor()
81 Assert.AreEqual(0, file.PublicDependencies.Count); in TestFileDescriptor()
82 Assert.AreEqual(1, importedFile.PublicDependencies.Count); in TestFileDescriptor()
83 Assert.AreEqual(importedPublicFile, importedFile.PublicDependencies[0]); in TestFileDescriptor()
85 Assert.AreEqual(1, file.Dependencies.Count); in TestFileDescriptor()
86 Assert.AreEqual(importedFile, file.Dependencies[0]); in TestFileDescriptor()
92 Assert.AreEqual(i, file.MessageTypes[i].Index); in TestFileDescriptor()
95 Assert.AreEqual(file.EnumTypes[0], file.FindTypeByName<EnumDescriptor>("ForeignEnum")); in TestFileDescriptor()
98 Assert.AreEqual(1, importedFile.EnumTypes.Count); in TestFileDescriptor()
99 Assert.AreEqual("ImportEnum", importedFile.EnumTypes[0].Name); in TestFileDescriptor()
102 Assert.AreEqual(i, file.EnumTypes[i].Index); in TestFileDescriptor()
105 Assert.AreEqual(10, file.SerializedData[0]); in TestFileDescriptor()
114 Assert.AreEqual("google/protobuf/unittest_well_known_types.proto", file.Name); in FileDescriptor_NonRootPath()
115 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor_NonRootPath()
164 Assert.AreEqual(messageType, file.MessageTypes[0]); in MessageDescriptorFromGeneratedCodeFileDescriptor()
165 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in MessageDescriptorFromGeneratedCodeFileDescriptor()
174 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
175 Assert.AreEqual("protobuf_unittest3.TestAllTypes", messageType.FullName); in MessageDescriptor()
176 Assert.AreEqual(UnittestProto3Reflection.Descriptor, messageType.File); in MessageDescriptor()
180 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
182 Assert.AreEqual("NestedMessage", nestedType.Name); in MessageDescriptor()
183 Assert.AreEqual("protobuf_unittest3.TestAllTypes.NestedMessage", nestedType.FullName); in MessageDescriptor()
184 Assert.AreEqual(UnittestProto3Reflection.Descriptor, nestedType.File); in MessageDescriptor()
185 Assert.AreEqual(messageType, nestedType.ContainingType); in MessageDescriptor()
188 Assert.AreEqual("single_int32", field.Name); in MessageDescriptor()
189 Assert.AreEqual(field, messageType.FindDescriptor<FieldDescriptor>("single_int32")); in MessageDescriptor()
191 Assert.AreEqual(field, messageType.FindFieldByNumber(1)); in MessageDescriptor()
196 Assert.AreEqual(i, fieldsInDeclarationOrder[i].Index); in MessageDescriptor()
199 Assert.AreEqual(nestedType, messageType.NestedTypes[0]); in MessageDescriptor()
200 … Assert.AreEqual(nestedType, messageType.FindDescriptor<MessageDescriptor>("NestedMessage")); in MessageDescriptor()
204 Assert.AreEqual(i, messageType.NestedTypes[i].Index); in MessageDescriptor()
207 …Assert.AreEqual(messageType.EnumTypes[0], messageType.FindDescriptor<EnumDescriptor>("NestedEnum")… in MessageDescriptor()
211 Assert.AreEqual(i, messageType.EnumTypes[i].Index); in MessageDescriptor()
251 Assert.AreEqual("single_int32", primitiveField.Name); in TestFieldDescriptor()
252 Assert.AreEqual("protobuf_unittest3.TestAllTypes.single_int32", in TestFieldDescriptor()
254 Assert.AreEqual(1, primitiveField.FieldNumber); in TestFieldDescriptor()
255 Assert.AreEqual(testAllTypesDescriptor, primitiveField.ContainingType); in TestFieldDescriptor()
256 Assert.AreEqual(unitTestProto3Descriptor, primitiveField.File); in TestFieldDescriptor()
257 Assert.AreEqual(FieldType.Int32, primitiveField.FieldType); in TestFieldDescriptor()
260 Assert.AreEqual("single_nested_enum", enumField.Name); in TestFieldDescriptor()
261 Assert.AreEqual(FieldType.Enum, enumField.FieldType); in TestFieldDescriptor()
262 Assert.AreEqual(testAllTypesDescriptor.EnumTypes[0], enumField.EnumType); in TestFieldDescriptor()
264 Assert.AreEqual("single_foreign_message", foreignMessageField.Name); in TestFieldDescriptor()
265 Assert.AreEqual(FieldType.Message, foreignMessageField.FieldType); in TestFieldDescriptor()
266 Assert.AreEqual(foreignMessageDescriptor, foreignMessageField.MessageType); in TestFieldDescriptor()
268 Assert.AreEqual("single_import_message", importMessageField.Name); in TestFieldDescriptor()
269 Assert.AreEqual(FieldType.Message, importMessageField.FieldType); in TestFieldDescriptor()
270 Assert.AreEqual(importMessageDescriptor, importMessageField.MessageType); in TestFieldDescriptor()
292 Assert.AreEqual("ForeignEnum", enumType.Name); in EnumDescriptor()
293 Assert.AreEqual("protobuf_unittest3.ForeignEnum", enumType.FullName); in EnumDescriptor()
294 Assert.AreEqual(UnittestProto3Reflection.Descriptor, enumType.File); in EnumDescriptor()
298 Assert.AreEqual("NestedEnum", nestedType.Name); in EnumDescriptor()
299 Assert.AreEqual("protobuf_unittest3.TestAllTypes.NestedEnum", in EnumDescriptor()
301 Assert.AreEqual(UnittestProto3Reflection.Descriptor, nestedType.File); in EnumDescriptor()
302 Assert.AreEqual(TestAllTypes.Descriptor, nestedType.ContainingType); in EnumDescriptor()
305 Assert.AreEqual(value, enumType.Values[1]); in EnumDescriptor()
306 Assert.AreEqual("FOREIGN_FOO", value.Name); in EnumDescriptor()
307 Assert.AreEqual(4, value.Number); in EnumDescriptor()
308 Assert.AreEqual((int) ForeignEnum.ForeignFoo, value.Number); in EnumDescriptor()
309 Assert.AreEqual(value, enumType.FindValueByNumber(4)); in EnumDescriptor()
313 Assert.AreEqual(i, enumType.Values[i].Index); in EnumDescriptor()
321 Assert.AreEqual("oneof_field", descriptor.Name); in OneofDescriptor()
322 Assert.AreEqual("protobuf_unittest3.TestAllTypes.oneof_field", descriptor.FullName); in OneofDescriptor()
357 …Assert.AreEqual(new[] { 11, 1, 101, 200 }, fields.InDeclarationOrder().Select(x => x.FieldNumber)); in FieldListOrderings()
358 …Assert.AreEqual(new[] { 1, 11, 101, 200 }, fields.InFieldNumberOrder().Select(x => x.FieldNumber)); in FieldListOrderings()
366 Assert.AreEqual("google/protobuf/descriptor.proto", descriptor.Name); in DescriptorProtoFileDescriptor()