client-dotnet/tests/INetMock.Client.Test/PCAP/SubscriptionTests.cs
Peter Kurfer 0e086b3b6c
Cleanup
- Fix compile errors
- MOve consumer key split into Subscription to allow better testing
- move models to extra file
- adopt API changes
2021-03-05 16:55:25 +01:00

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));
}
}
}