24 lines
736 B
C#
24 lines
736 B
C#
using Ludarium.Application;
|
|
using Ludarium.Infrastructure;
|
|
|
|
namespace Ludarium.IntegrationTests;
|
|
|
|
public sealed class RetailCoverProfileCoverageTests
|
|
{
|
|
[Fact]
|
|
public void EveryCanonicalBuiltInPlatformHasExactlyOneArtworkQualityProfile()
|
|
{
|
|
var canonical = PostgresStore.BuiltInPlatforms
|
|
.Select(platform => platform.Id)
|
|
.Order(StringComparer.Ordinal)
|
|
.ToArray();
|
|
var profiles = ArtworkQuality.RetailProfileRatios.Keys
|
|
.Order(StringComparer.Ordinal)
|
|
.ToArray();
|
|
|
|
Assert.Equal(68, canonical.Length);
|
|
Assert.Equal(canonical.Length, canonical.Distinct(StringComparer.Ordinal).Count());
|
|
Assert.Equal(canonical, profiles);
|
|
}
|
|
}
|