public void GettingClearBitmapTwiceShouldReturnDifferentBitmaps() { var writeableBitmapQueue = new WriteableBitmapQueue(640, 480); var firstBitmap = writeableBitmapQueue.GetClearBitmap(); var secondBitmap = writeableBitmapQueue.GetClearBitmap(); Assert.That(firstBitmap,Is.Not.EqualTo(secondBitmap)); }
public void CompletingShowBitmapShouldPutItInClearQueue() { var writeableBitmapQueue = new WriteableBitmapQueue(640, 480); var renderBitmap = writeableBitmapQueue.GetShowBitmap(); writeableBitmapQueue.ShowCompleteForBitmap(renderBitmap); var showBitmap = writeableBitmapQueue.GetClearBitmap(); Assert.That(showBitmap, Is.EqualTo(renderBitmap)); }
public void CompletingClearBitmapShouldPutItInRenderQueue() { var writeableBitmapQueue = new WriteableBitmapQueue(640, 480); var clearBitmap = writeableBitmapQueue.GetClearBitmap(); writeableBitmapQueue.ClearCompleteForBitmap(clearBitmap); var renderBitmap = writeableBitmapQueue.GetRenderBitmap(); Assert.That(renderBitmap,Is.EqualTo(clearBitmap)); }
public void GettingClearBitmapShouldReturnValidWriteableBitmap() { var writeableBitmapQueue = new WriteableBitmapQueue(640, 480); var writeableBitmap = writeableBitmapQueue.GetClearBitmap(); Assert.That(writeableBitmap,Is.Not.Null); }