dash is disallowed

This commit is contained in:
benbierens 2023-08-10 11:59:57 +02:00
parent 9c1b469f0d
commit 683cc882be
No known key found for this signature in database
GPG Key ID: FE44815D96D0A1AA
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ namespace Logging
public static string GetRawFixtureName()
{
var test = TestContext.CurrentContext.Test;
if (test.ClassName!.Contains("AdhocContext")) return "-";
if (test.ClassName!.Contains("AdhocContext")) return "none";
var className = test.ClassName!.Substring(test.ClassName.LastIndexOf('.') + 1);
return className.Replace('.', '-');
}
@ -30,7 +30,7 @@ namespace Logging
public static string GetCategoryName()
{
var test = TestContext.CurrentContext.Test;
if (test.ClassName!.Contains("AdhocContext")) return "-";
if (test.ClassName!.Contains("AdhocContext")) return "none";
return test.ClassName!.Substring(0, test.ClassName.LastIndexOf('.'));
}