public void FlippingAnImageTest()
        {
            var solution = new FlippingAnImageSolution();

            Assert.Equal(new int[][] { new int[] { 1, 0, 0 }, new int[] { 0, 1, 0 }, new int[] { 1, 1, 1 } },
                         solution.FlipAndInvertImage(new int[][] { new int[] { 1, 1, 0 }, new int[] { 1, 0, 1 }, new int[] { 0, 0, 0 } }));

            Assert.Equal(new int[][] { new int[] { 1, 1, 0, 0 }, new int[] { 0, 1, 1, 0 }, new int[] { 0, 0, 0, 1 }, new int[] { 1, 0, 1, 0 } },
                         solution.FlipAndInvertImage(new int[][] { new int[] { 1, 1, 0, 0 }, new int[] { 1, 0, 0, 1 }, new int[] { 0, 1, 1, 1 }, new int[] { 1, 0, 1, 0 } }));
        }
        public void Image_Should_Flipped_Properly()
        {
            // Arrange
            var solution = new FlippingAnImageSolution();
            var expected = new[] { new[] { 1, 1, 0, 0 }, new[] { 0, 1, 1, 0 }, new[] { 0, 0, 0, 1 }, new[] { 1, 0, 1, 0 } };

            //act
            var result = solution.FlipAndInvertImage(new[]
                                                     { new[] { 1, 1, 0, 0 }, new[] { 1, 0, 0, 1 }, new[] { 0, 1, 1, 1 }, new[] { 1, 0, 1, 0 } });

            //Assert
            Assert.Equal(expected, result);
        }
 public void SetUp()
 {
     _solution = new FlippingAnImageSolution();
 }