コード例 #1
0
        public void TestGetVisualRepresentation()
        {
            Arcade a = new Arcade(new long[1]);

            a.UpdateTile(new Point(0, 0), (int)Arcade.Tile.Empty);
            a.UpdateTile(new Point(1, 0), (int)Arcade.Tile.Wall);
            a.UpdateTile(new Point(2, 0), (int)Arcade.Tile.Block);
            a.UpdateTile(new Point(3, 0), (int)Arcade.Tile.HorizontalPaddle);
            a.UpdateTile(new Point(4, 0), (int)Arcade.Tile.Ball);

            Assert.That(a.GetVisualRepresentation(), Is.EqualTo(".+#~O\n"));
        }