private DisplayHintField CreateSut(IMineField mineField) { var factory = Container.Resolve <IHintFieldFactory>(); IHintField hintField = factory.Create(mineField); var displayHintField = new DisplayHintField(hintField); return(displayHintField); }
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); }