diff --git a/Il2CppTests/generate-tests.ps1 b/Il2CppTests/generate-tests.ps1 index eb4093d..1baa83f 100644 --- a/Il2CppTests/generate-tests.ps1 +++ b/Il2CppTests/generate-tests.ps1 @@ -20,7 +20,7 @@ namespace Il2CppInspector gci -Directory $bin | % { echo @" [Test] - public void $($_.Name.Replace("-","_").Replace(" ","_").Replace(".","_"))() { + public void $($_.Name -Replace '\W','_')() { runTest(@"$($_.FullName)"); }