Пример #1
0
        public void TowerPrinterShouldPrintTowerContent()
        {
            string expectedTowerRepresentation = "T:>> [1] [2] [3] =>>";
            var    tower = MakeTestTower();

            Assert.AreEqual(expectedTowerRepresentation, TowerPrinterTestable.BuildTowerContentAsString(tower));
        }
Пример #2
0
        public void TowerPrinterShouldPrintEmptyTowerContent()
        {
            string expectedTowerRepresentation = "T:>> =>>";
            int    dummySize = 3;
            var    tower     = new Tower(dummySize);

            Assert.AreEqual(expectedTowerRepresentation, TowerPrinterTestable.BuildTowerContentAsString(tower));
        }