New: Add Extra Audio Format Unit Test

This commit is contained in:
Qstick
2017-10-29 00:16:47 -04:00
parent b34c1e5332
commit f219e883ec
4 changed files with 42 additions and 9 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq;
using System.Collections.Generic;
using System.Collections.Specialized;
@@ -37,7 +37,7 @@ namespace NzbDrone.Common.Http
}
if (values.Length > 1)
{
throw new ApplicationException(string.Format("Expected {0} to occur only once.", key));
throw new ApplicationException($"Expected {key} to occur only once, but was {values.Join("|")}.");
}
return values[0];
@@ -175,4 +175,4 @@ namespace NzbDrone.Common.Http
.ToList();
}
}
}
}