deals with adhoc test context categories

This commit is contained in:
benbierens 2023-08-10 11:53:49 +02:00
parent 5a861df968
commit 4995665fe5
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ namespace Logging
public static string GetCategoryName()
{
var test = TestContext.CurrentContext.Test;
if (test.ClassName!.Contains("AdhocContext")) return "-";
return test.ClassName!.Substring(0, test.ClassName.LastIndexOf('.'));
}