Skip to content

Commit

Permalink
Xunit warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
xinchen10 committed Jun 29, 2018
1 parent bb45646 commit 4e2b0b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/TestCases/AmqpCodecTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -780,14 +780,14 @@ public void AmqpSerializerListEncodingTest()
// Inter-op: it should be an AMQP described list as other clients see it
stream.Seek(0, SeekOrigin.Begin);
DescribedType dl1 = (DescribedType)AmqpEncoding.DecodeObject(new ByteBuffer(stream.ToArray(), 0, (int)stream.Length));
Assert.Equal(dl1.Descriptor, 1ul);
Assert.Equal(1ul, dl1.Descriptor);
List<object> lv = dl1.Value as List<object>;
Assert.NotNull(lv);
Assert.Equal(p.Name, lv[0]);
Assert.Equal(p.Age, lv[1]);
Assert.Equal(p.DateOfBirth.Value, lv[2]);
Assert.True(lv[3] is DescribedType, "Address is decribed type");
Assert.Equal(((DescribedType)lv[3]).Descriptor, 3ul);
Assert.Equal(3ul, ((DescribedType)lv[3]).Descriptor);
Assert.Equal(((List<object>)((DescribedType)lv[3]).Value)[0], ((Student)p).Address.FullAddress);
Assert.True(lv[4] is AmqpMap, "Properties should be map");
Assert.Equal(((AmqpMap)lv[4])[new MapKey("height")], p.Properties["height"]);
Expand Down
2 changes: 1 addition & 1 deletion test/TestCases/UtilityTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public void SequenceNumberTest()

Assert.True(sn0 < sn5);
Assert.Equal(sn5 + 1, sn6);
Assert.Equal(sn6 - sn5, 1);
Assert.Equal(1, sn6 - sn5);
Assert.Equal(new SequenceNumber(1u) + int.MaxValue, sn6);
Assert.Equal(sn7 - sn8, -7);
Assert.Equal(sn8 + 1, sn0);
Expand Down

0 comments on commit 4e2b0b5

Please sign in to comment.