Lines Matching refs:AreEqual
63 Assert.AreEqual(false, message.SingleBool); in DefaultValues()
64 Assert.AreEqual(ByteString.Empty, message.SingleBytes); in DefaultValues()
65 Assert.AreEqual(0.0, message.SingleDouble); in DefaultValues()
66 Assert.AreEqual(0, message.SingleFixed32); in DefaultValues()
67 Assert.AreEqual(0L, message.SingleFixed64); in DefaultValues()
68 Assert.AreEqual(0.0f, message.SingleFloat); in DefaultValues()
69 Assert.AreEqual(ForeignEnum.ForeignUnspecified, message.SingleForeignEnum); in DefaultValues()
71 Assert.AreEqual(ImportEnum.Unspecified, message.SingleImportEnum); in DefaultValues()
73 Assert.AreEqual(0, message.SingleInt32); in DefaultValues()
74 Assert.AreEqual(0L, message.SingleInt64); in DefaultValues()
75 Assert.AreEqual(TestAllTypes.Types.NestedEnum.Unspecified, message.SingleNestedEnum); in DefaultValues()
78 Assert.AreEqual(0, message.SingleSfixed32); in DefaultValues()
79 Assert.AreEqual(0L, message.SingleSfixed64); in DefaultValues()
80 Assert.AreEqual(0, message.SingleSint32); in DefaultValues()
81 Assert.AreEqual(0L, message.SingleSint64); in DefaultValues()
82 Assert.AreEqual("", message.SingleString); in DefaultValues()
83 Assert.AreEqual(0U, message.SingleUint32); in DefaultValues()
84 Assert.AreEqual(0UL, message.SingleUint64); in DefaultValues()
87 Assert.AreEqual(0, message.RepeatedBool.Count); in DefaultValues()
88 Assert.AreEqual(0, message.RepeatedBytes.Count); in DefaultValues()
89 Assert.AreEqual(0, message.RepeatedDouble.Count); in DefaultValues()
90 Assert.AreEqual(0, message.RepeatedFixed32.Count); in DefaultValues()
91 Assert.AreEqual(0, message.RepeatedFixed64.Count); in DefaultValues()
92 Assert.AreEqual(0, message.RepeatedFloat.Count); in DefaultValues()
93 Assert.AreEqual(0, message.RepeatedForeignEnum.Count); in DefaultValues()
94 Assert.AreEqual(0, message.RepeatedForeignMessage.Count); in DefaultValues()
95 Assert.AreEqual(0, message.RepeatedImportEnum.Count); in DefaultValues()
96 Assert.AreEqual(0, message.RepeatedImportMessage.Count); in DefaultValues()
97 Assert.AreEqual(0, message.RepeatedNestedEnum.Count); in DefaultValues()
98 Assert.AreEqual(0, message.RepeatedNestedMessage.Count); in DefaultValues()
99 Assert.AreEqual(0, message.RepeatedPublicImportMessage.Count); in DefaultValues()
100 Assert.AreEqual(0, message.RepeatedSfixed32.Count); in DefaultValues()
101 Assert.AreEqual(0, message.RepeatedSfixed64.Count); in DefaultValues()
102 Assert.AreEqual(0, message.RepeatedSint32.Count); in DefaultValues()
103 Assert.AreEqual(0, message.RepeatedSint64.Count); in DefaultValues()
104 Assert.AreEqual(0, message.RepeatedString.Count); in DefaultValues()
105 Assert.AreEqual(0, message.RepeatedUint32.Count); in DefaultValues()
106 Assert.AreEqual(0, message.RepeatedUint64.Count); in DefaultValues()
109 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in DefaultValues()
110 Assert.AreEqual(0, message.OneofUint32); in DefaultValues()
111 Assert.AreEqual("", message.OneofString); in DefaultValues()
112 Assert.AreEqual(ByteString.Empty, message.OneofBytes); in DefaultValues()
132 Assert.AreEqual(0, bytes.Length); in RoundTrip_Empty()
134 Assert.AreEqual(message, parsed); in RoundTrip_Empty()
168 Assert.AreEqual(message, parsed); in RoundTrip_SingleValues()
202 Assert.AreEqual(message, parsed); in RoundTrip_RepeatedValues()
234 Assert.AreEqual(message, parsed); in RoundTrip_Maps()
246 … Assert.AreEqual(2, bytes.Length); // Tag for field entry (1 byte), length of entry (0; 1 byte) in MapWithEmptyEntry()
249 Assert.AreEqual(1, parsed.MapInt32Bytes.Count); in MapWithEmptyEntry()
250 Assert.AreEqual(ByteString.Empty, parsed.MapInt32Bytes[0]); in MapWithEmptyEntry()
268 Assert.AreEqual(nestedMessage, parsed.MapInt32ForeignMessage[0]); in MapWithOnlyValue()
285 Assert.AreEqual(0.0, parsed.MapInt32Double[key]); in MapWithOnlyKey_PrimitiveValue()
302 Assert.AreEqual(new ForeignMessage(), parsed.MapInt32ForeignMessage[key]); in MapWithOnlyKey_MessageValue()
330 Assert.AreEqual(value, parsed.MapInt32Int32[key]); in MapIgnoresExtraFieldsWithinEntryMessages()
354 Assert.AreEqual(value, parsed.MapInt32Int32[key]); in MapFieldOrderIsIrrelevant()
405 Assert.AreEqual(expected, parsed); in MapNonContiguousEntries()
436 Assert.AreEqual(value2, parsed.MapInt32Int32[key]); in DuplicateKeys_LastEntryWins()
463 Assert.AreEqual(original, clone); in CloneSingleNonMessageValues()
494 Assert.AreEqual(original, clone); in CloneRepeatedNonMessageValues()
511 Assert.AreEqual(original, clone); in CloneSingleMessageField()
529 Assert.AreEqual(original, clone); in CloneRepeatedMessageField()
545 Assert.AreEqual(original, clone); in CloneOneofField()
558 Assert.AreEqual("", message.OneofString); in OneofProperties()
559 Assert.AreEqual(0, message.OneofUint32); in OneofProperties()
560 Assert.AreEqual(ByteString.Empty, message.OneofBytes); in OneofProperties()
562 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in OneofProperties()
565 Assert.AreEqual("sample", message.OneofString); in OneofProperties()
566 Assert.AreEqual(0, message.OneofUint32); in OneofProperties()
567 Assert.AreEqual(ByteString.Empty, message.OneofBytes); in OneofProperties()
569 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message.OneofFieldCase); in OneofProperties()
573 Assert.AreEqual("", message.OneofString); in OneofProperties()
574 Assert.AreEqual(0, message.OneofUint32); in OneofProperties()
575 Assert.AreEqual(bytes, message.OneofBytes); in OneofProperties()
577 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofBytes, message.OneofFieldCase); in OneofProperties()
580 Assert.AreEqual("", message.OneofString); in OneofProperties()
581 Assert.AreEqual(20, message.OneofUint32); in OneofProperties()
582 Assert.AreEqual(ByteString.Empty, message.OneofBytes); in OneofProperties()
584 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message.OneofFieldCase); in OneofProperties()
588 Assert.AreEqual("", message.OneofString); in OneofProperties()
589 Assert.AreEqual(0, message.OneofUint32); in OneofProperties()
590 Assert.AreEqual(ByteString.Empty, message.OneofBytes); in OneofProperties()
591 Assert.AreEqual(nestedMessage, message.OneofNestedMessage); in OneofProperties()
592 … Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofNestedMessage, message.OneofFieldCase); in OneofProperties()
595 Assert.AreEqual("", message.OneofString); in OneofProperties()
596 Assert.AreEqual(0, message.OneofUint32); in OneofProperties()
597 Assert.AreEqual(ByteString.Empty, message.OneofBytes); in OneofProperties()
599 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.None, message.OneofFieldCase); in OneofProperties()
607 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofString, message1.OneofFieldCase); in Oneof_DefaultValuesNotEqual()
608 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in Oneof_DefaultValuesNotEqual()
619 Assert.AreEqual(3, bytes.Length); // 2 bytes for the tag + 1 for the value - no string! in OneofSerialization_NonDefaultValue()
622 Assert.AreEqual(message, message2); in OneofSerialization_NonDefaultValue()
623 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in OneofSerialization_NonDefaultValue()
633 … Assert.AreEqual(3, bytes.Length); // 2 bytes for the tag + 1 for the value - it's still serialized in OneofSerialization_DefaultValue()
636 Assert.AreEqual(message, message2); in OneofSerialization_DefaultValue()
637 Assert.AreEqual(TestAllTypes.OneofFieldOneofCase.OneofUint32, message2.OneofFieldCase); in OneofSerialization_DefaultValue()
704 Assert.AreEqual("{ \"c\": 31, \"@cInHex\": \"1f\" }", message.ToString()); in CustomDiagnosticMessage_DirectToStringCall()
705 Assert.AreEqual("{ \"c\": 31 }", JsonFormatter.Default.Format(message)); in CustomDiagnosticMessage_DirectToStringCall()
712 …Assert.AreEqual("{ \"singleForeignMessage\": { \"c\": 16, \"@cInHex\": \"10\" } }", message.ToStri… in CustomDiagnosticMessage_Nested()
713 …Assert.AreEqual("{ \"singleForeignMessage\": { \"c\": 16 } }", JsonFormatter.Default.Format(messag… in CustomDiagnosticMessage_Nested()
722 Assert.AreEqual("{ \"c\": 31 }", writer.ToString()); in CustomDiagnosticMessage_DirectToTextWriterCall()