Commit 0a706f68 authored by Brickner_cp's avatar Brickner_cp

Improve TCP options comparison to Wireshark

parent 84de0c6e
...@@ -1190,7 +1190,9 @@ namespace PcapDotNet.Core.Test ...@@ -1190,7 +1190,9 @@ namespace PcapDotNet.Core.Test
if (currentOptionIndex >= options.Count) if (currentOptionIndex >= options.Count)
{ {
Assert.IsFalse(options.IsValid); Assert.IsFalse(options.IsValid);
Assert.Fail(); Assert.IsTrue(field.Show().Contains("bytes says option goes past end of options"));
Assert.AreEqual(options.Count, currentOptionIndex);
return;
} }
TcpOption option = options[currentOptionIndex]; TcpOption option = options[currentOptionIndex];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment