public void ShouldMatchRedImages()
        {
            var imageOne = new Bitmap(1, 1);
            imageOne.SetPixel(0,0,Color.Red);

            var imageTwo = new Bitmap(1, 1);
            imageTwo.SetPixel(0, 0, Color.Red);

            ICompareBy subject = new CompareByAverageColor();
            var result = subject.AreEqual(imageOne, imageTwo);
            result.Equal.Should().BeTrue();
        }
        public void ShouldProvideUsefulMessageWhenImagesDoNotMatch( )
        {
            var imageOne = new Bitmap(1, 1);
            imageOne.SetPixel(0, 0, Color.Red);

            var imageTwo = new Bitmap(1, 1);
            imageTwo.SetPixel(0, 0, Color.Blue);

            ICompareBy subject = new CompareByAverageColor();
            var result = subject.AreEqual(imageOne, imageTwo);
            result.Equal.Should().BeFalse();
            result.Message.Should().Be(
                "Images are not equal because image one has an average color of:Color [A=255, R=255, G=0, B=0] and image two has an average color of:Color [A=255, R=0, G=0, B=255]");
        }
        public void ShouldNotMatchImageWithDifferentAverageColor()
        {
            var imageOne = new Bitmap(3, 1);
            imageOne.SetPixel(0, 0, Color.Red);
            imageOne.SetPixel(1, 0, Color.Red);
            imageOne.SetPixel(2, 0, Color.Blue);

            var imageTwo = new Bitmap(1, 3);
            imageTwo.SetPixel(0, 0, Color.Red);
            imageTwo.SetPixel(0, 1, Color.Green);
            imageTwo.SetPixel(0, 2, Color.Blue);

            ICompareBy subject = new CompareByAverageColor();
            var result = subject.AreEqual(imageOne, imageTwo);
            result.Equal.Should().BeFalse();
        }