From fddc2826aaaf27fb7e94f059a088182b7c08f848 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Wed, 22 May 2024 21:40:02 +0800 Subject: [PATCH] Add strict check about the test and class naming. --- .../Edit/Checks/TestCheckTest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game.Rulesets.Karaoke.Architectures/Edit/Checks/TestCheckTest.cs b/osu.Game.Rulesets.Karaoke.Architectures/Edit/Checks/TestCheckTest.cs index 5721fd9d7..635feac6a 100644 --- a/osu.Game.Rulesets.Karaoke.Architectures/Edit/Checks/TestCheckTest.cs +++ b/osu.Game.Rulesets.Karaoke.Architectures/Edit/Checks/TestCheckTest.cs @@ -96,8 +96,8 @@ static bool isTestNamingValid(IMember testMethod) if (calledMethods != null) { - // todo: should get the generic type from the AssertNotOk method. - return testMethod.NameStartsWith("IssueTemplate"); + // todo: should get the generic type from the AssertNotOk method. the end of the method should be the issue template. + return testMethod.NameStartsWith("TestCheck"); } return true;