diff --git a/Logging/NameUtils.cs b/Logging/NameUtils.cs index 26031b9..2961735 100644 --- a/Logging/NameUtils.cs +++ b/Logging/NameUtils.cs @@ -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('.')); }