Beispiel #1
0
 public void GettingClearBitmapTwiceShouldReturnDifferentBitmaps()
 {
     var writeableBitmapQueue = new WriteableBitmapQueue(640, 480);
     var firstBitmap = writeableBitmapQueue.GetClearBitmap();
     var secondBitmap = writeableBitmapQueue.GetClearBitmap();
     Assert.That(firstBitmap,Is.Not.EqualTo(secondBitmap));
 }
Beispiel #2
0
 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));
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 public void GettingClearBitmapShouldReturnValidWriteableBitmap()
 {
     var writeableBitmapQueue = new WriteableBitmapQueue(640, 480);
     var writeableBitmap = writeableBitmapQueue.GetClearBitmap();
     Assert.That(writeableBitmap,Is.Not.Null);
 }