-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added factory default tests. Fixed factory default bugs in IEEE802_1x…
… and TCP. Fixed minimum parseable size for IEEE802_1x. Bumped version number.
- Loading branch information
Noah Potash
committed
Feb 20, 2016
1 parent
29bd2d8
commit f07503b
Showing
17 changed files
with
281 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/ARPFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class ARPFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = ARPFactory.Instance.Default(); | ||
ARPFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/EthernetIIFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class EthernetIIFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = EthernetIIFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
EthernetIIFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/GenericFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class GenericFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = GenericFactory.Instance.Default(); | ||
GenericFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
test/LibPacketGremlinTests/PacketFactories/ICMPFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class ICMPFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = ICMPFactory.Instance.Default(); | ||
ICMPFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/IEEE802_1xFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class IEEE802_1xFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = IEEE802_1xFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
IEEE802_1xFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/IPv4FactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class IPv4FactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = IPv4Factory.Instance.Default(GenericFactory.Instance.Default()); | ||
IPv4Factory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/LLCFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class LLCFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = LLCFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
LLCFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/MSMon802_11FactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class MSMon802_11FactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = MSMon802_11Factory.Instance.Default(GenericFactory.Instance.Default()); | ||
MSMon802_11Factory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/RadiotapFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class RadiotapFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = RadiotapFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
RadiotapFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/SNAPFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class SNAPFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = SNAPFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
SNAPFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/TCPFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class TCPFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = TCPFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
TCPFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/UDPFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class UDPFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = UDPFactory.Instance.Default(GenericFactory.Instance.Default()); | ||
UDPFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
test/LibPacketGremlinTests/PacketFactories/WakeOnLanFactoryTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using FluentAssertions; | ||
using OutbreakLabs.LibPacketGremlin.Extensions; | ||
using OutbreakLabs.LibPacketGremlin.PacketFactories; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Xunit; | ||
|
||
namespace LibPacketGremlinTests.PacketFactories | ||
{ | ||
public class WakeOnLanFactoryTests | ||
{ | ||
[Fact] | ||
public void GeneratesParseableDefault() | ||
{ | ||
var defaultPacket = WakeOnLanFactory.Instance.Default(); | ||
WakeOnLanFactory.Instance.ParseAs(defaultPacket.ToArray()).Should().NotBeNull(); | ||
} | ||
} | ||
} |