public void DetectBanChampionTest() { Patterns patternsClass = null; foreach (var test in Samples.GenBanSamples()) { patternsClass = EnsureRightResolution(patternsClass, test.Sample.Width, test.Sample.Height); Assert.AreEqual(test.Champion?.ToLowerInvariant(), patternsClass.DetectBanChampion(test.Sample, test.Position), $"Position {test.Position}"); } }