Ver Fonte

Update PixiEditorTest.cs

Krzysztof Krysiński há 1 semana atrás
pai
commit
f1943dc56a
1 ficheiros alterados com 11 adições e 0 exclusões
  1. 11 0
      tests/PixiEditor.Tests/PixiEditorTest.cs

+ 11 - 0
tests/PixiEditor.Tests/PixiEditorTest.cs

@@ -154,6 +154,17 @@ class TestsRenderingDispatcher : IRenderingDispatcher
         return Task.FromResult(function());
     }
 
+    public Task<TResult> InvokeInBackgroundAsync<TResult>(Func<TResult> function)
+    {
+        return Task.FromResult(function());
+    }
+
+    public Task InvokeInBackgroundAsync(Action function)
+    {
+        function();
+        return Task.CompletedTask;
+    }
+
     public Task InvokeAsync(Action function)
     {
         function();