Lines Matching refs:AreEqual
51 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Name); in FileDescriptor()
52 Assert.AreEqual("protobuf_unittest", file.Package); in FileDescriptor()
54 Assert.AreEqual("UnittestProto", file.Proto.Options.JavaOuterClassname); in FileDescriptor()
55 Assert.AreEqual("google/protobuf/unittest_proto3.proto", file.Proto.Name); in FileDescriptor()
58 Assert.AreEqual(0, file.PublicDependencies.Count); in FileDescriptor()
59 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.PublicDependencies.Count); in FileDescriptor()
60 …Assert.AreEqual(UnittestImportPublicProto3Reflection.Descriptor, UnittestImportProto3Reflection.De… in FileDescriptor()
62 Assert.AreEqual(1, file.Dependencies.Count); in FileDescriptor()
63 Assert.AreEqual(UnittestImportProto3Reflection.Descriptor, file.Dependencies[0]); in FileDescriptor()
68 Assert.AreEqual(messageType, file.MessageTypes[0]); in FileDescriptor()
69 Assert.AreEqual(messageType, file.FindTypeByName<MessageDescriptor>("TestAllTypes")); in FileDescriptor()
74 Assert.AreEqual(i, file.MessageTypes[i].Index); in FileDescriptor()
77 Assert.AreEqual(file.EnumTypes[0], file.FindTypeByName<EnumDescriptor>("ForeignEnum")); in FileDescriptor()
80 Assert.AreEqual(1, UnittestImportProto3Reflection.Descriptor.EnumTypes.Count); in FileDescriptor()
81 … Assert.AreEqual("ImportEnum", UnittestImportProto3Reflection.Descriptor.EnumTypes[0].Name); in FileDescriptor()
84 Assert.AreEqual(i, file.EnumTypes[i].Index); in FileDescriptor()
87 Assert.AreEqual(10, file.SerializedData[0]); in FileDescriptor()
96 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
97 Assert.AreEqual("protobuf_unittest.TestAllTypes", messageType.FullName); in MessageDescriptor()
98 Assert.AreEqual(UnittestProto3Reflection.Descriptor, messageType.File); in MessageDescriptor()
102 Assert.AreEqual("TestAllTypes", messageType.Name); in MessageDescriptor()
104 Assert.AreEqual("NestedMessage", nestedType.Name); in MessageDescriptor()
105 Assert.AreEqual("protobuf_unittest.TestAllTypes.NestedMessage", nestedType.FullName); in MessageDescriptor()
106 Assert.AreEqual(UnittestProto3Reflection.Descriptor, nestedType.File); in MessageDescriptor()
107 Assert.AreEqual(messageType, nestedType.ContainingType); in MessageDescriptor()
110 Assert.AreEqual("single_int32", field.Name); in MessageDescriptor()
111 Assert.AreEqual(field, messageType.FindDescriptor<FieldDescriptor>("single_int32")); in MessageDescriptor()
113 Assert.AreEqual(field, messageType.FindFieldByNumber(1)); in MessageDescriptor()
118 Assert.AreEqual(i, fieldsInDeclarationOrder[i].Index); in MessageDescriptor()
121 Assert.AreEqual(nestedType, messageType.NestedTypes[0]); in MessageDescriptor()
122 … Assert.AreEqual(nestedType, messageType.FindDescriptor<MessageDescriptor>("NestedMessage")); in MessageDescriptor()
126 Assert.AreEqual(i, messageType.NestedTypes[i].Index); in MessageDescriptor()
129 …Assert.AreEqual(messageType.EnumTypes[0], messageType.FindDescriptor<EnumDescriptor>("NestedEnum")… in MessageDescriptor()
133 Assert.AreEqual(i, messageType.EnumTypes[i].Index); in MessageDescriptor()
145 Assert.AreEqual("single_int32", primitiveField.Name); in FieldDescriptor()
146 Assert.AreEqual("protobuf_unittest.TestAllTypes.single_int32", in FieldDescriptor()
148 Assert.AreEqual(1, primitiveField.FieldNumber); in FieldDescriptor()
149 Assert.AreEqual(messageType, primitiveField.ContainingType); in FieldDescriptor()
150 Assert.AreEqual(UnittestProto3Reflection.Descriptor, primitiveField.File); in FieldDescriptor()
151 Assert.AreEqual(FieldType.Int32, primitiveField.FieldType); in FieldDescriptor()
154 Assert.AreEqual("single_nested_enum", enumField.Name); in FieldDescriptor()
155 Assert.AreEqual(FieldType.Enum, enumField.FieldType); in FieldDescriptor()
158 Assert.AreEqual("single_foreign_message", messageField.Name); in FieldDescriptor()
159 Assert.AreEqual(FieldType.Message, messageField.FieldType); in FieldDescriptor()
160 Assert.AreEqual(ForeignMessage.Descriptor, messageField.MessageType); in FieldDescriptor()
182 Assert.AreEqual("ForeignEnum", enumType.Name); in EnumDescriptor()
183 Assert.AreEqual("protobuf_unittest.ForeignEnum", enumType.FullName); in EnumDescriptor()
184 Assert.AreEqual(UnittestProto3Reflection.Descriptor, enumType.File); in EnumDescriptor()
188 Assert.AreEqual("NestedEnum", nestedType.Name); in EnumDescriptor()
189 Assert.AreEqual("protobuf_unittest.TestAllTypes.NestedEnum", in EnumDescriptor()
191 Assert.AreEqual(UnittestProto3Reflection.Descriptor, nestedType.File); in EnumDescriptor()
192 Assert.AreEqual(TestAllTypes.Descriptor, nestedType.ContainingType); in EnumDescriptor()
195 Assert.AreEqual(value, enumType.Values[1]); in EnumDescriptor()
196 Assert.AreEqual("FOREIGN_FOO", value.Name); in EnumDescriptor()
197 Assert.AreEqual(4, value.Number); in EnumDescriptor()
198 Assert.AreEqual((int) ForeignEnum.ForeignFoo, value.Number); in EnumDescriptor()
199 Assert.AreEqual(value, enumType.FindValueByNumber(4)); in EnumDescriptor()
203 Assert.AreEqual(i, enumType.Values[i].Index); in EnumDescriptor()
211 Assert.AreEqual("oneof_field", descriptor.Name); in OneofDescriptor()
212 Assert.AreEqual("protobuf_unittest.TestAllTypes.oneof_field", descriptor.FullName); in OneofDescriptor()
247 …Assert.AreEqual(new[] { 11, 1, 101, 200 }, fields.InDeclarationOrder().Select(x => x.FieldNumber)); in FieldListOrderings()
248 …Assert.AreEqual(new[] { 1, 11, 101, 200 }, fields.InFieldNumberOrder().Select(x => x.FieldNumber)); in FieldListOrderings()
256 Assert.AreEqual("google/protobuf/descriptor.proto", descriptor.Name); in DescriptorProtoFileDescriptor()