Tests: Convert tests to use async/await

This commit is contained in:
Katy Coe
2020-12-21 05:53:58 +01:00
parent 4ae17fe365
commit 2f01403dfb
2 changed files with 13 additions and 11 deletions

View File

@@ -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