public void TestDequeue() { fifo.Enqueue8Pixels(Zip(0b11001001, 0b11110000, false), TileAttributes.EMPTY); fifo.Enqueue8Pixels(Zip(0b10101011, 0b11100111, false), TileAttributes.EMPTY); Assert.Equal(0b11, fifo.DequeuePixel()); Assert.Equal(0b11, fifo.DequeuePixel()); Assert.Equal(0b10, fifo.DequeuePixel()); Assert.Equal(0b10, fifo.DequeuePixel()); Assert.Equal(0b01, fifo.DequeuePixel()); }
public void TestDequeue() { _fifo.Enqueue8Pixels(Zip(0b11001001, 0b11110000, false), TileAttributes.Empty); _fifo.Enqueue8Pixels(Zip(0b10101011, 0b11100111, false), TileAttributes.Empty); Assert.AreEqual(0b11, _fifo.DequeuePixel()); Assert.AreEqual(0b11, _fifo.DequeuePixel()); Assert.AreEqual(0b10, _fifo.DequeuePixel()); Assert.AreEqual(0b10, _fifo.DequeuePixel()); Assert.AreEqual(0b01, _fifo.DequeuePixel()); }