namespace Nonemm.Recorder.Tests; public class ChannelSourceTests { [Theory] [InlineData("Microphone", false, 0, 1, "Microphone")] [InlineData("Line In", false, 0, 2, "Line In L")] [InlineData("Line In", false, 1, 2, "Line In R")] [InlineData("Interface", false, 2, 8, "Interface 3")] [InlineData("Speakers", true, 1, 2, "Speakers (output) R")] public void The_label_names_the_device_and_the_channel(string device, bool isOutput, int channel, int count, string label) { Assert.Equal(label, new ChannelSource(device, isOutput, channel, count).Label); } [Fact] public void An_input_and_an_output_with_the_same_name_are_different_channels() { ChannelSource input = new("USB", false, 0, 2); ChannelSource output = new("USB", true, 0, 2); Assert.False(input.IsSameChannel(output)); } }