From 67646544b958d2678b32b4e8df021632345d54bc Mon Sep 17 00:00:00 2001 From: Maksim Stepanov <17935127+delatrie@users.noreply.github.com> Date: Thu, 28 Mar 2024 02:02:02 +0700 Subject: [PATCH] Make internal API hidden from public --- Allure.XUnit/AllureMessageSink.cs | 4 ++-- Allure.XUnit/AllureXunitFacade.cs | 4 ++-- Allure.XUnit/AllureXunitHelper.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Allure.XUnit/AllureMessageSink.cs b/Allure.XUnit/AllureMessageSink.cs index faf246eb..cf901f9a 100644 --- a/Allure.XUnit/AllureMessageSink.cs +++ b/Allure.XUnit/AllureMessageSink.cs @@ -12,7 +12,7 @@ namespace Allure.Xunit { - public class AllureMessageSink : + class AllureMessageSink : DefaultRunnerReporterWithTypesMessageHandler { static AllureTestPlan TestPlan @@ -224,6 +224,6 @@ void LogUnreportedTheoryArgs(string testName) static bool IsStaticTestMethod(ITestMethodMessage message) => message.TestMethod.Method.IsStatic; - public static AllureMessageSink? CurrentSink { get; private set; } + internal static AllureMessageSink? CurrentSink { get; private set; } } } \ No newline at end of file diff --git a/Allure.XUnit/AllureXunitFacade.cs b/Allure.XUnit/AllureXunitFacade.cs index 9c44c6eb..3a4a6518 100644 --- a/Allure.XUnit/AllureXunitFacade.cs +++ b/Allure.XUnit/AllureXunitFacade.cs @@ -9,9 +9,9 @@ namespace Allure.Xunit { - public static class AllureXunitFacade + static class AllureXunitFacade { - public static IMessageSink CreateAllureXunitMessageHandler( + internal static IMessageSink CreateAllureXunitMessageHandler( IRunnerLogger logger ) { diff --git a/Allure.XUnit/AllureXunitHelper.cs b/Allure.XUnit/AllureXunitHelper.cs index 44821527..68d432ba 100644 --- a/Allure.XUnit/AllureXunitHelper.cs +++ b/Allure.XUnit/AllureXunitHelper.cs @@ -12,7 +12,7 @@ namespace Allure.Xunit { - public static class AllureXunitHelper + static class AllureXunitHelper { internal const string NS_OBSOLETE_MSG = "The Allure.XUnit namespace is deprecated. Please, use Allure.Xunit instead";