Peter Kurfer
0e086b3b6c
- Fix compile errors - MOve consumer key split into Subscription to allow better testing - move models to extra file - adopt API changes
17 lines
484 B
C#
17 lines
484 B
C#
using INetMock.Client.PCAP;
|
|
using Xunit;
|
|
|
|
namespace INetMock.Client.Test.PCAP
|
|
{
|
|
public class SubscriptionTests
|
|
{
|
|
[Theory]
|
|
[InlineData("lo:test.pcap", "test.pcap", "lo")]
|
|
public void Constructor_ConsumerKey_SplitIntoComponents(string key, string expectedName, string expectedDevice)
|
|
{
|
|
var sub = new Subscription(key);
|
|
|
|
Assert.Equal(sub, new Subscription(key, expectedName, expectedDevice));
|
|
}
|
|
}
|
|
}
|