コード例 #1
0
        public void TestIfCellWhiteColorIsCorrectlySetDisplayed()
        {
            BlownCell blownCell = new BlownCell();

            blownCell.X        = 2;
            blownCell.Y        = 3;
            blownCell.Color    = Color.White;
            blownCell.CellView = CellView.Bomb1;

            string cellToString = blownCell.ToString();


            Assert.AreEqual(cellToString, " 1 ", string.Format("!{0}!", cellToString));
        }