Skip to content

Commit

Permalink
Fix unit test to reflect changes from 4480168
Browse files Browse the repository at this point in the history
  • Loading branch information
NZSmartie committed Aug 27, 2017
1 parent 34a8160 commit b1719d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CoAPNet.Tests/CoapMessageTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ public void TestMessageFromUriIPv4()
_message.FromUri("coap://198.51.100.1:61616//%2F//?%2F%2F&?%26");

var expectedOptions = new List<CoapOption> {
new Options.UriHost("198.51.100.1"),
new Options.UriPort(61616),
new Options.UriPath(""),
new Options.UriPath("/"),
Expand All @@ -308,11 +309,11 @@ public void TestMessageFromUriIPv4()
new Options.UriQuery("?&"),
};

Assert.IsTrue(expectedOptions.SequenceEqual(_message.Options));
Assert.AreEqual(expectedOptions, _message.Options);

// Test again but using static CreateFromUri method
var message = CoapMessage.CreateFromUri("coap://198.51.100.1:61616//%2F//?%2F%2F&?%26");
Assert.IsTrue(expectedOptions.SequenceEqual(message.Options));
Assert.AreEqual(expectedOptions,message.Options);
}

[Test]
Expand Down

0 comments on commit b1719d2

Please sign in to comment.