public void IsMovementPercentAccurate()
        {
            using var img1 = new Bitmap(8, 8);
            using var img2 = new Bitmap(8, 8);

            img2.SetPixel(0, 0, Color.White);
            img2.SetPixel(1, 1, Color.White);
            img2.SetPixel(2, 2, Color.White);
            img2.SetPixel(3, 3, Color.White);

            var detector = new MovementDetector();

            double movement = detector.GetMovementPercent(img1, img2);

            double expectedMovement = 4d / (8d * 8d);

            Assert.AreEqual(expectedMovement, movement);
        }
        public void IsDetectorFilteringPixels()
        {
            using var img1 = new Bitmap(8, 8);
            using var img2 = new Bitmap(8, 8);

            img2.SetPixel(0, 0, Color.White);
            img2.SetPixel(1, 1, Color.FromArgb(32, 32, 32));
            img2.SetPixel(2, 2, Color.White);
            img2.SetPixel(3, 3, Color.White);

            var detector = new MovementDetector(64);

            double movement = detector.GetMovementPercent(img1, img2);

            double expectedMovement = 3d / (8d * 8d);

            Assert.AreEqual(expectedMovement, movement);
        }