8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 416ed81 commit d97c7f8Copy full SHA for d97c7f8
src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs
@@ -1,4 +1,5 @@
1
using System;
2
+using System.ComponentModel;
3
using System.Globalization;
4
using System.Reflection;
5
using System.Security;
@@ -147,6 +148,11 @@ protected virtual Task BeforeTestMethodInvokedAsync()
147
148
protected virtual object CallTestMethod(object testClassInstance)
149
=> TestMethod.Invoke(testClassInstance, TestMethodArguments);
150
151
+ /// <summary/>
152
+ [EditorBrowsable(EditorBrowsableState.Never)]
153
+ public static Task GetTaskFromResult(object obj) =>
154
+ AsyncUtility.TryConvertToTask(obj);
155
+
156
/// <summary>
157
/// Creates the test class (if necessary), and invokes the test method.
158
/// </summary>
0 commit comments