Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pcap-Net
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Pcap-Net
Commits
1c260ee1
Commit
1c260ee1
authored
Sep 27, 2014
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IPv6
parent
b66549bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1256 additions
and
1220 deletions
+1256
-1220
ByteArrayExtensionsTests.cs
...t/src/PcapDotNet.Packets.Test/ByteArrayExtensionsTests.cs
+19
-1
IpV6Tests.cs
PcapDotNet/src/PcapDotNet.Packets.Test/IpV6Tests.cs
+1237
-1219
No files found.
PcapDotNet/src/PcapDotNet.Packets.Test/ByteArrayExtensionsTests.cs
View file @
1c260ee1
...
@@ -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
ByteArray
Read
UnsignedBigIntegerNullBufferTest
()
{
{
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
()
{
{
...
...
PcapDotNet/src/PcapDotNet.Packets.Test/IpV6Tests.cs
View file @
1c260ee1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment