Пример #1
0
        private DisplayHintField CreateSut(IMineField mineField)
        {
            var        factory          = Container.Resolve <IHintFieldFactory>();
            IHintField hintField        = factory.Create(mineField);
            var        displayHintField = new DisplayHintField(hintField);

            return(displayHintField);
        }
Пример #2
0
        public void ToString_ReturnsString_ForMineField()
        {
            // Arrange
            IMineField       mineField = CreateMineField(m_MineFieldWithTwoMines);
            DisplayHintField sut       = CreateSut(mineField);

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

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