deals with adhoc test context categories
This commit is contained in:
parent
5a861df968
commit
4995665fe5
|
@ -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('.'));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue