From f10d52bdd20eca9a7052c5e9e5c48d0dc60cc84b Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Thu, 12 Dec 2019 09:05:13 +0100 Subject: [PATCH] PS: Replace all non-word characters in test function names --- Il2CppTests/generate-tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)"); }