Beispiel #1
0
        public void TileAtlasDataTests_GetTile_ShouldReturnNull()
        {
            TileAtlasData data   = new TileAtlasData();
            var           stored = data.GetTile(10, 10);

            Assert.IsNull(stored);
        }
Beispiel #2
0
        public void TileAtlasDataTests_GetTile_ShouldReturnTile()
        {
            TileAtlasData data = new TileAtlasData();
            var           tile = new TileData
            {
                SourceX = 30,
                SourceY = 40
            };

            data.SetTile(30, 100, tile);
            var stored = data.GetTile(30, 100);

            Assert.AreSame(stored, tile);
        }