Exemplo n.º 1
0
        public void Apply(BlockType blockType, ushort expectedBlockId, short expectedFrameX, short expectedFrameY)
        {
            var tile = new Tile();

            tile = blockType.Apply(tile);

            Assert.That(tile.IsActive);
            Assert.That(tile.BlockId, Is.EqualTo(expectedBlockId));
            Assert.That(tile.FrameX, Is.EqualTo(expectedFrameX));
            Assert.That(tile.FrameY, Is.EqualTo(expectedFrameY));
        }