public void When_Player1_Has_4_Vertical_The_Game_Should_End(int player, int[,] expectedMap)
        {
            var sut = new ConnectFour();

            sut.LoadMap(expectedMap);

            Assert.AreEqual(true, sut.HasWon(sut.Player1));
        }
        public void It_Should_Be_Possible_To_Load_A_Map()
        {
            var sut         = new ConnectFour();
            var expectedMap = new int[6, 7]
            {
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 1, 1, 1, 1, 2, 2, 2 }
            };

            sut.LoadMap(expectedMap);

            Assert.AreEqual(expectedMap, sut.Map);
        }
        public void The_Game_Should_Determine_If_The_Map_Is_Full()
        {
            var sut         = new ConnectFour();
            var expectedMap = new int[6, 7]
            {
                { 1, 1, 1, 2, 1, 1, 1 },
                { 1, 1, 1, 2, 1, 2, 1 },
                { 1, 1, 2, 2, 1, 2, 1 },
                { 1, 1, 2, 2, 1, 2, 1 },
                { 1, 1, 2, 2, 2, 2, 2 },
                { 1, 1, 1, 1, 2, 2, 2 }
            };

            sut.LoadMap(expectedMap);

            Assert.AreEqual(true, sut.MapIsFull());
        }
        public void The_Game_Should_Print_The_Map_Correctly()
        {
            var sut         = new ConnectFour();
            var expectedMap = new int[6, 7]
            {
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 0, 0, 0, 0, 0, 0, 0 },
                { 1, 1, 1, 1, 2, 2, 2 }
            };
            var expectedOutput = "0 0 0 0 0 0 0" + Environment.NewLine +
                                 "0 0 0 0 0 0 0" + Environment.NewLine +
                                 "0 0 0 0 0 0 0" + Environment.NewLine +
                                 "0 0 0 0 0 0 0" + Environment.NewLine +
                                 "0 0 0 0 0 0 0" + Environment.NewLine +
                                 "1 1 1 1 2 2 2" + Environment.NewLine;

            sut.LoadMap(expectedMap);

            Assert.AreEqual(expectedOutput, sut.MapToString());
        }