Krzysztof Krysiński пре 1 недеља
родитељ
комит
f1943dc56a
1 измењених фајлова са 11 додато и 0 уклоњено
  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();