public void TestCreate()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, device))
         {
             Assert.IsFalse(textureProcessor.Texture.NormalizedView.NativePointer == IntPtr.Zero);
             Assert.IsFalse(textureProcessor.Texture.NormalizedView.NativePointer == IntPtr.Zero);
             Assert.IsFalse(textureProcessor.NeedUpdate);
         }
     }
 }
 public void TestUpload()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, device))
         {
             provider.PushFrame();
             Assert.IsTrue(textureProcessor.NeedUpdate);
             textureProcessor.Update(device.ImmediateContext);
             Assert.IsFalse(textureProcessor.NeedUpdate);
         }
     }
 }
 public void TestNullProvider()
 {
     using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(null, device))
     {
     }
 }
 public void TestReceive()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, device))
         {
             provider.PushFrame();
             Assert.IsTrue(textureProcessor.NeedUpdate);
         }
     }
 }
 public void TestNullDevice()
 {
     using (DummyBodyIndexProvider provider = new DummyBodyIndexProvider())
     {
         using (DynamicBodyIndexTextureProcessor textureProcessor = new DynamicBodyIndexTextureProcessor(provider, null))
         {
         }
     }
 }