public ReadOnlyCollection<string> CheckSingleBundleIsValid(string bundleName)
{
var errors = new List<string>();
var allBundleDebugLines = _reader.GetBundleDebugFiles(bundleName, "", s => errors.Add(s));
var allCdns = _reader.GetBundleCdnInfo(bundleName);
if (errors.Any())
return errors.AsReadOnly();
if (!allCdns.Any())
return CheckNonCdnBundle(bundleName, allBundleDebugLines).AsReadOnly();
//It has Cdns
if (allBundleDebugLines.Count() != allCdns.Count())
return new List<string>
{ $"The Bundle called {bundleName} contained both cdn and non cdn entries, which is not supported." }
.AsReadOnly();
return CheckCdnBundle(bundleName, allCdns).AsReadOnly();
}