public void TestIsValidChannelName(string channelName, bool isValid) { var channel = new SnapChannel { Name = channelName, Current = true }; var snapApp = new SnapApp { Id = channelName, Channels = new List <SnapChannel> { channel } }; Assert.Equal(isValid, snapApp.IsValidChannelName()); }