예제 #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));
        }