using Nonemm.Contests.Rules; using Nonemm.Core; namespace Nonemm.Contests.Tests; public class UkrainianDxTests { private static ContestLog LogFor() => new(new UkrainianDx(), TestLog.Germany, TestLog.CountryFile); [Theory] [InlineData("UR5XYZ", 10)] [InlineData("DL9XYZ", 1)] [InlineData("IK2XYZ", 2)] [InlineData("JA1XYZ", 3)] public void UkraineIsWorthTen(string call, int expected) => Assert.Equal(expected, LogFor().Judge(TestLog.Contact(call, section: "DO")).Points); [Fact] public void OnlyUkraineBringsAnOblast() => Assert.Equal( [1], LogFor().Judge(TestLog.Contact("IK2XYZ", section: "DO")).NewMultipliers .Select(m => m.Index) .ToList()); }