using Nonemm.Contests.Rules; using Nonemm.Core; namespace Nonemm.Contests.Tests; public class MexicoRttyTests { private static ContestLog LogFor() => new(new MexicoRtty(), TestLog.Germany, TestLog.CountryFile); private static Qso Contact(string call, string number = "001", string state = "") => TestLog.Contact(call, mode: Modes.Rtty, exchange: number, section: state); [Theory] [InlineData("DL9XYZ", 2)] [InlineData("IK2XYZ", 3)] public void PointsGoByCountry(string call, int expected) => Assert.Equal(expected, LogFor().Judge(Contact(call)).Points); [Fact] public void CountriesCountForEveryoneAndStatesOnlyForMexico() { ContestLog log = LogFor(); Assert.Equal([1], log.Judge(Contact("IK2XYZ")).NewMultipliers.Select(m => m.Index).ToList()); } }