Commit 1c260ee1 authored by Brickner_cp's avatar Brickner_cp

IPv6

parent b66549bf
...@@ -178,13 +178,31 @@ namespace PcapDotNet.Packets.Test ...@@ -178,13 +178,31 @@ namespace PcapDotNet.Packets.Test
[TestMethod] [TestMethod]
[ExpectedException(typeof(ArgumentNullException), AllowDerivedTypes = false)] [ExpectedException(typeof(ArgumentNullException), AllowDerivedTypes = false)]
public void ByteArrayUnsignedBigIntegerNullBufferTest() public void ByteArrayReadUnsignedBigIntegerNullBufferTest()
{ {
byte[] buffer = null; byte[] buffer = null;
Assert.IsNotNull(buffer.ReadUnsignedBigInteger(0, 0, Endianity.Big)); Assert.IsNotNull(buffer.ReadUnsignedBigInteger(0, 0, Endianity.Big));
Assert.Fail(); Assert.Fail();
} }
[TestMethod]
[ExpectedException(typeof(ArgumentNullException), AllowDerivedTypes = false)]
public void ByteArrayWriteUnsignedBigIntegerNullBufferTest()
{
byte[] buffer = null;
buffer.WriteUnsigned(0, 0, 1, Endianity.Big);
Assert.Fail();
}
[TestMethod]
[ExpectedException(typeof(ArgumentOutOfRangeException), AllowDerivedTypes = false)]
public void ByteArrayWriteUnsignedNegativeBigIntegerBufferTest()
{
byte[] buffer = new byte[200];
buffer.WriteUnsigned(0, -1, 100, Endianity.Big);
Assert.Fail();
}
[TestMethod] [TestMethod]
public void ByteArrayULongTest() public void ByteArrayULongTest()
{ {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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