private DisplayPlayingField CreateSut([NotNull] IHintField hintField,
                                              [NotNull] IPlayingField playingField)
        {
            var sut = new DisplayPlayingField(hintField,
                                              playingField);

            return(sut);
        }
        public void ToString_ReturnsString_ForNoneSelected()
        {
            // Arrange
            IMineField          mineField    = CreateMineField(m_SmallMineFieldWithTwoMines);
            IHintField          hintField    = CreateHintField(mineField);
            PlayingField        playingField = CreatePlayingField(mineField);
            DisplayPlayingField sut          = CreateSut(hintField,
                                                         playingField);

            // Act
            string actual = sut.ToString();

            // Assert
            Assert.AreEqual("..\r\n..\r\n",
                            actual);
        }
        public void ToString_ReturnsString_ForOneSelected(int row,
                                                          int column,
                                                          string expected)
        {
            // Arrange
            IMineField          mineField    = CreateMineField(m_SmallMineFieldWithTwoMines);
            IHintField          hintField    = CreateHintField(mineField);
            PlayingField        playingField = CreatePlayingField(mineField);
            DisplayPlayingField sut          = CreateSut(hintField,
                                                         playingField);

            playingField.SelectField(row,
                                     column);

            // Act
            string actual = sut.ToString();

            // Assert
            Assert.AreEqual(expected,
                            actual);
        }