Exemple #1
0
        public void DetectOurPickPositionTest()
        {
            Patterns patternsClass = null;

            foreach (var test in Samples.PickPosition)
            {
                var name = $"{test.sample}.png";
                Console.WriteLine($"Testing {name}");
                var sample = Samples.LoadSample(name);

                patternsClass = EnsureRightResolution(patternsClass, sample.Width, sample.Height);

                Assert.AreEqual(test.position, patternsClass.DetectOurPickPosition(sample), name);
            }
        }