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
f122ddb1
Commit
f122ddb1
authored
Aug 02, 2014
by
Brickner_cp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code Coverage 95.00%
parent
695fd69a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
IpV6Tests.cs
PcapDotNet/src/PcapDotNet.Packets.Test/IpV6Tests.cs
+25
-0
No files found.
PcapDotNet/src/PcapDotNet.Packets.Test/IpV6Tests.cs
View file @
f122ddb1
...
@@ -88,6 +88,8 @@ namespace PcapDotNet.Packets.Test
...
@@ -88,6 +88,8 @@ namespace PcapDotNet.Packets.Test
IpV6ExtensionHeaderMobility
extensionHeaderMobility
=
extensionHeader
as
IpV6ExtensionHeaderMobility
;
IpV6ExtensionHeaderMobility
extensionHeaderMobility
=
extensionHeader
as
IpV6ExtensionHeaderMobility
;
if
(
extensionHeaderMobility
!=
null
)
if
(
extensionHeaderMobility
!=
null
)
{
{
Assert
.
IsFalse
(
extensionHeaderMobility
.
Equals
(
2
));
Assert
.
IsTrue
(
extensionHeaderMobility
.
Equals
((
object
)
extensionHeader
));
foreach
(
IpV6MobilityOption
option
in
extensionHeaderMobility
.
MobilityOptions
)
foreach
(
IpV6MobilityOption
option
in
extensionHeaderMobility
.
MobilityOptions
)
{
{
switch
(
option
.
OptionType
)
switch
(
option
.
OptionType
)
...
@@ -354,5 +356,28 @@ namespace PcapDotNet.Packets.Test
...
@@ -354,5 +356,28 @@ namespace PcapDotNet.Packets.Test
{
{
Assert
.
IsNull
(
IpV6AccessNetworkIdentifierSubOptionGeoLocation
.
CreateFromRealValues
(
0
,
-
180.1
));
Assert
.
IsNull
(
IpV6AccessNetworkIdentifierSubOptionGeoLocation
.
CreateFromRealValues
(
0
,
-
180.1
));
}
}
[
TestMethod
]
[
ExpectedException
(
typeof
(
ArgumentOutOfRangeException
),
AllowDerivedTypes
=
false
)]
public
void
IpV6AccessNetworkIdentifierSubOptionNetworkIdentifierNetworkNameTooLong
()
{
Assert
.
IsNull
(
new
IpV6AccessNetworkIdentifierSubOptionNetworkIdentifier
(
false
,
new
DataSegment
(
new
byte
[
256
]),
DataSegment
.
Empty
));
}
[
TestMethod
]
[
ExpectedException
(
typeof
(
ArgumentOutOfRangeException
),
AllowDerivedTypes
=
false
)]
public
void
IpV6AccessNetworkIdentifierSubOptionNetworkIdentifierAccessPointNameTooLong
()
{
Assert
.
IsNull
(
new
IpV6AccessNetworkIdentifierSubOptionNetworkIdentifier
(
false
,
DataSegment
.
Empty
,
new
DataSegment
(
new
byte
[
256
])));
}
[
TestMethod
]
[
ExpectedException
(
typeof
(
ArgumentOutOfRangeException
),
AllowDerivedTypes
=
false
)]
public
void
IpV6ExtensionHeaderRoutingRplCommonPrefixNotCommon
()
{
Assert
.
IsNull
(
new
IpV6ExtensionHeaderRoutingRpl
(
IpV4Protocol
.
Skip
,
5
,
4
,
4
,
new
IpV6Address
(
"0000:0000:9ABC:DEF0:1234:5678:9ABC:DEF0"
),
new
IpV6Address
(
"0000:0001:9ABC:DEF0:1234:5678:9ABC:DEF0"
)));
}
}
}
}
}
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