Lines Matching refs:AreEqual

63             Assert.AreEqual(1, list.Count);  in Add_SingleItem()
64 Assert.AreEqual("foo", list[0]); in Add_SingleItem()
72 Assert.AreEqual(2, list.Count); in Add_Sequence()
73 Assert.AreEqual("foo", list[0]); in Add_Sequence()
74 Assert.AreEqual("bar", list[1]); in Add_Sequence()
82 Assert.AreEqual(2, list.Count); in AddRange_SlowPath()
83 Assert.AreEqual("foo", list[0]); in AddRange_SlowPath()
84 Assert.AreEqual("bar", list[1]); in AddRange_SlowPath()
110 Assert.AreEqual(2, list.Count); in AddRange_Optimized_NonNullableValueType()
111 Assert.AreEqual(20, list[0]); in AddRange_Optimized_NonNullableValueType()
112 Assert.AreEqual(30, list[1]); in AddRange_Optimized_NonNullableValueType()
120 Assert.AreEqual(2, list.Count); in AddRange_Optimized_ReferenceType()
121 Assert.AreEqual("foo", list[0]); in AddRange_Optimized_ReferenceType()
122 Assert.AreEqual("bar", list[1]); in AddRange_Optimized_ReferenceType()
130 Assert.AreEqual(2, list.Count); in AddRange_Optimized_NullableValueType()
131 Assert.AreEqual((int?) 20, list[0]); in AddRange_Optimized_NullableValueType()
132 Assert.AreEqual((int?) 30, list[1]); in AddRange_Optimized_NullableValueType()
160 CollectionAssert.AreEqual(new[] { 1, 2, 3, 4, 5, 6 }, list); in AddRange_AlreadyNotEmpty()
168 Assert.AreEqual(3, list.Count); in AddRange_RepeatedField()
169 Assert.AreEqual("original", list[0]); in AddRange_RepeatedField()
170 Assert.AreEqual("foo", list[1]); in AddRange_RepeatedField()
171 Assert.AreEqual("bar", list[2]); in AddRange_RepeatedField()
179 CollectionAssert.AreEqual(new[] { "first", "third" }, list); in RemoveAt_Valid()
183 Assert.AreEqual(0, list.Count); in RemoveAt_Valid()
199 CollectionAssert.AreEqual(new[] { "first", "middle", "second" }, list); in Insert_Valid()
201 CollectionAssert.AreEqual(new[] { "first", "middle", "second", "end" }, list); in Insert_Valid()
203 CollectionAssert.AreEqual(new[] { "start", "first", "middle", "second", "end" }, list); in Insert_Valid()
243 CollectionAssert.AreEqual(new[] { "first", "second" }, list.Select(x => x).ToList()); in GetEnumerator_GenericInterface()
250 CollectionAssert.AreEqual(new[] { "first", "second" }, list.Cast<object>().ToList()); in GetEnumerator_NonGenericInterface()
259 CollectionAssert.AreEqual(new[] { null, "first", "second", null }, stringArray); in CopyTo()
266 Assert.AreEqual("first", list[0]); in Indexer_Get()
267 Assert.AreEqual("second", list[1]); in Indexer_Get()
277 Assert.AreEqual("changed", list[0]); in Indexer_Set()
298 Assert.AreEqual("first", enumerator.Current); in Enumerator()
300 Assert.AreEqual("second", enumerator.Current); in Enumerator()
330 CollectionAssert.AreEqual(new[] { 10, 999, -1000 }, field); in AddEntriesFrom_PackedInt32()
356 CollectionAssert.AreEqual(new[] { 10, 999, -1000 }, field); in AddEntriesFrom_NonPackedInt32()
379 CollectionAssert.AreEqual(new[] { "Foo", "", "Bar" }, field); in AddEntriesFrom_String()
403 CollectionAssert.AreEqual(new[] { message1, message2}, field); in AddEntriesFrom_Message()
421 Assert.AreEqual(10, input.ReadInt32()); in WriteTo_PackedInt32()
422 Assert.AreEqual(1000, input.ReadInt32()); in WriteTo_PackedInt32()
423 Assert.AreEqual(1000000, input.ReadInt32()); in WriteTo_PackedInt32()
425 … Assert.AreEqual(1 + CodedOutputStream.ComputeLengthSize(length) + length, stream.Length); in WriteTo_PackedInt32()
441 Assert.AreEqual(10, input.ReadInt32()); in WriteTo_NonPackedInt32()
443 Assert.AreEqual(1000, input.ReadInt32()); in WriteTo_NonPackedInt32()
445 Assert.AreEqual(1000000, input.ReadInt32()); in WriteTo_NonPackedInt32()
462 Assert.AreEqual("Foo", input.ReadString()); in WriteTo_String()
464 Assert.AreEqual("", input.ReadString()); in WriteTo_String()
466 Assert.AreEqual("Bar", input.ReadString()); in WriteTo_String()
485 Assert.AreEqual(message1, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
487 Assert.AreEqual(message2, input.ReadMessage(ForeignMessage.Parser)); in WriteTo_Message()
497 Assert.AreEqual(7, list.CalculateSize(FieldCodec.ForInt32(tag))); in CalculateSize_VariableSizeNonPacked()
506 Assert.AreEqual(15, list.CalculateSize(FieldCodec.ForSFixed32(tag))); in CalculateSize_FixedSizeNonPacked()
516 Assert.AreEqual(6, list.CalculateSize(FieldCodec.ForInt32(tag))); in CalculateSize_VariableSizePacked()
525 Assert.AreEqual(14, list.CalculateSize(FieldCodec.ForSFixed32(tag))); in CalculateSize_FixedSizePacked()
542 Assert.AreEqual(0, output.SpaceLeft); in TestNegativeEnumArray()
550 Assert.AreEqual(6, values.Count); in TestNegativeEnumArray()
551 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumArray()
552 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumArray()
553 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumArray()
554 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumArray()
555 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumArray()
556 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumArray()
580 Assert.AreEqual(0, output.SpaceLeft); in TestNegativeEnumPackedArray()
588 Assert.AreEqual(6, values.Count); in TestNegativeEnumPackedArray()
589 Assert.AreEqual(SampleEnum.None, values[0]); in TestNegativeEnumPackedArray()
590 Assert.AreEqual(((SampleEnum)(-1)), values[1]); in TestNegativeEnumPackedArray()
591 Assert.AreEqual(SampleEnum.NegativeValue, values[2]); in TestNegativeEnumPackedArray()
592 Assert.AreEqual(((SampleEnum)(-3)), values[3]); in TestNegativeEnumPackedArray()
593 Assert.AreEqual(((SampleEnum)(-4)), values[4]); in TestNegativeEnumPackedArray()
594 Assert.AreEqual(((SampleEnum)(-5)), values[5]); in TestNegativeEnumPackedArray()
603 Assert.AreEqual("first", list[0]); in IList_Indexer()
605 Assert.AreEqual("changed", field[1]); in IList_Indexer()
622 CollectionAssert.AreEqual(new[] { "first", "second", "third" }, list); in IList_Add()
632 CollectionAssert.AreEqual(new[] { "second" }, list); in IList_Remove()
647 Assert.AreEqual(1, list.IndexOf("second")); in IList_IndexOf()
648 Assert.AreEqual(-1, list.IndexOf("third")); in IList_IndexOf()
649 Assert.AreEqual(-1, list.IndexOf(new object())); in IList_IndexOf()
665 CollectionAssert.AreEqual(new[] { null, "first", "second", null }, stringArray); in IList_CopyTo()
669 CollectionAssert.AreEqual(new[] { null, "first", "second", null }, objectArray); in IList_CopyTo()
687 CollectionAssert.AreEqual(new[] { "first", "middle", "second" }, list); in IList_Insert()
695 Assert.AreEqual("[ 5, 10, 20 ]", text); in ToString_Integers()
703 Assert.AreEqual("[ \"x\", \"y\", \"z\" ]", text); in ToString_Strings()
711 Assert.AreEqual("[ { \"singleDouble\": 1.5 }, { \"singleInt32\": 10 } ]", text); in ToString_Messages()
719 Assert.AreEqual("[ ]", text); in ToString_Empty()
734 Assert.AreEqual("[ \"2015-10-01T12:34:56Z\" ]", text); in ToString_Timestamp()
743 Assert.AreEqual(text, "[ { \"foo\": 20 } ]", message.ToString()); in ToString_Struct()