Tests: Convert tests to use async/await
This commit is contained in:
@@ -9,11 +9,12 @@ echo @"
|
||||
// THIS FILE IS AUTO-GENERATED BY GENERATE-TESTS.PS1
|
||||
// DO NOT EDIT
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Il2CppInspector
|
||||
{
|
||||
[Parallelizable(ParallelScope.Children)]
|
||||
[Parallelizable(ParallelScope.All)]
|
||||
public partial class TestRunner
|
||||
{
|
||||
"@ > $testGen
|
||||
@@ -26,8 +27,8 @@ gci -Directory $bin | % {
|
||||
}
|
||||
echo @"
|
||||
[Test]
|
||||
public void $($_.Name -Replace '\W','_')() {
|
||||
runTest(@"$($_.FullName)", new LoadOptions { $loadOptions });
|
||||
public async Task $($_.Name -Replace '\W','_')() {
|
||||
await runTest(@"$($_.FullName)", new LoadOptions { $loadOptions });
|
||||
}
|
||||
|
||||
"@ >> $testGen
|
||||
|
||||
Reference in New Issue
Block a user