2021-03-05 15:55:25 +00:00
|
|
|
using INetMock.Client.PCAP;
|
|
|
|
using Xunit;
|
|
|
|
|
2022-01-26 14:19:04 +00:00
|
|
|
namespace INetMock.Client.Test.PCAP;
|
|
|
|
|
|
|
|
public class SubscriptionTests
|
2021-03-05 15:55:25 +00:00
|
|
|
{
|
2022-01-26 14:19:04 +00:00
|
|
|
[Theory]
|
|
|
|
[InlineData("lo:test.pcap", "test.pcap", "lo")]
|
|
|
|
public void Constructor_ConsumerKey_SplitIntoComponents(string key, string expectedName, string expectedDevice)
|
2021-03-05 15:55:25 +00:00
|
|
|
{
|
2022-01-26 14:19:04 +00:00
|
|
|
var sub = new Subscription(key);
|
|
|
|
|
|
|
|
Assert.Equal(sub, new Subscription(key, expectedName, expectedDevice));
|
2021-03-05 15:55:25 +00:00
|
|
|
}
|
|
|
|
}
|