private void ValidateChannelGroups(ChannelGroup[] channelGroups) { Assert.IsNotNull(channelGroups); Assert.IsNotEmpty(channelGroups); CollectionAssert.AllItemsAreUnique(channelGroups.Select(group => group.GroupName)); CollectionAssert.AllItemsAreUnique(channelGroups.Select(group => group.GroupId)); foreach (var group in channelGroups) { Assert.IsNotNull(group); Assert.IsNotEmpty(group.GroupName); Assert.IsNotEmpty(group.Channels); foreach (var channel in group.Channels) { Validator.ValidateChannel(channel); } } var channels = channelGroups.SelectMany(group => group.Channels).ToList(); Assert.IsTrue(channels.Any(channel => !string.IsNullOrEmpty(channel.Description))); Assert.IsTrue(channels.Any(channel => channel.SongCount > 0)); }