diff --git a/src/Analyzers/MSTest.SourceGeneration/Generators/TestNodesGenerator.cs b/src/Analyzers/MSTest.SourceGeneration/Generators/TestNodesGenerator.cs
index c841f5d90d..d987bb84c9 100644
--- a/src/Analyzers/MSTest.SourceGeneration/Generators/TestNodesGenerator.cs
+++ b/src/Analyzers/MSTest.SourceGeneration/Generators/TestNodesGenerator.cs
@@ -12,7 +12,7 @@
namespace Microsoft.Testing.Framework.SourceGeneration;
[Generator]
-internal sealed class TestNodesGenerator : IIncrementalGenerator
+public sealed class TestNodesGenerator : IIncrementalGenerator
{
public void Initialize(IncrementalGeneratorInitializationContext context)
{
@@ -198,7 +198,7 @@ private static void AddTestClassNode(SourceProductionContext context, TestTypeIn
}
// Borrowed from https://github.com/dotnet/templating/blob/dad34814012bf29aa35eaf8e8013af4b10b997da/src/Microsoft.TemplateEngine.Orchestrator.RunnableProjects/ValueForms/DefaultSafeNamespaceValueFormFactory.cs#L10
- internal /* for testing purpose */ static string ToSafeNamespace(string value)
+ public static string ToSafeNamespace(string value)
{
const char invalidCharacterReplacement = '_';
diff --git a/src/Analyzers/MSTest.SourceGeneration/Helpers/Constants.cs b/src/Analyzers/MSTest.SourceGeneration/Helpers/Constants.cs
index 7a968202d0..84926ed021 100644
--- a/src/Analyzers/MSTest.SourceGeneration/Helpers/Constants.cs
+++ b/src/Analyzers/MSTest.SourceGeneration/Helpers/Constants.cs
@@ -3,7 +3,7 @@
namespace Microsoft.Testing.Framework.SourceGeneration;
-internal static class Constants
+public static class Constants
{
public const string NewLine = "\r\n";
}
diff --git a/src/Analyzers/MSTest.SourceGeneration/Helpers/IndentedStringBuilder.cs b/src/Analyzers/MSTest.SourceGeneration/Helpers/IndentedStringBuilder.cs
index 39fdb20ba0..a7c0da9f06 100644
--- a/src/Analyzers/MSTest.SourceGeneration/Helpers/IndentedStringBuilder.cs
+++ b/src/Analyzers/MSTest.SourceGeneration/Helpers/IndentedStringBuilder.cs
@@ -3,7 +3,7 @@
namespace Microsoft.Testing.Framework.SourceGeneration.Helpers;
-internal sealed class IndentedStringBuilder
+public sealed class IndentedStringBuilder
{
private readonly StringBuilder _builder = new();
private bool _needsIndent = true;
diff --git a/src/Analyzers/MSTest.SourceGeneration/MSTest.SourceGeneration.csproj b/src/Analyzers/MSTest.SourceGeneration/MSTest.SourceGeneration.csproj
index af7c69027c..4d28368826 100644
--- a/src/Analyzers/MSTest.SourceGeneration/MSTest.SourceGeneration.csproj
+++ b/src/Analyzers/MSTest.SourceGeneration/MSTest.SourceGeneration.csproj
@@ -7,7 +7,8 @@
true
false
- NU5128
+ false
+ NU5128;SA0001;EnableGenerateDocumentationFile
true
Microsoft.Testing.Framework.SourceGeneration
@@ -35,10 +36,6 @@ This package provides the C# source generators for MSTest test framework.]]>
-
-
-
-
diff --git a/src/Analyzers/MSTest.SourceGeneration/ObjectModels/DataRowTestMethodArgumentsInfo.cs b/src/Analyzers/MSTest.SourceGeneration/ObjectModels/DataRowTestMethodArgumentsInfo.cs
index 5380802d1d..59590da6ea 100644
--- a/src/Analyzers/MSTest.SourceGeneration/ObjectModels/DataRowTestMethodArgumentsInfo.cs
+++ b/src/Analyzers/MSTest.SourceGeneration/ObjectModels/DataRowTestMethodArgumentsInfo.cs
@@ -9,7 +9,7 @@
namespace Microsoft.Testing.Framework.SourceGeneration.ObjectModels;
-internal sealed class DataRowTestMethodArgumentsInfo : ITestMethodArgumentsInfo
+public sealed class DataRowTestMethodArgumentsInfo : ITestMethodArgumentsInfo
{
private readonly ImmutableArray> _argumentsRows;
private readonly TestMethodParametersInfo _parametersInfo;
@@ -72,7 +72,7 @@ private static string GetArgumentsUid(string[] parameterNames, IList arg
return argumentsUidBuilder.ToString();
}
- internal /* for testing purposes */ static void EscapeArgument(string argument, StringBuilder argumentsUidBuilder)
+ public static void EscapeArgument(string argument, StringBuilder argumentsUidBuilder)
{
int escapeCharCount = 0;
for (int i = 0; i < argument.Length; i++)
diff --git a/src/Analyzers/MSTest.SourceGeneration/ObjectModels/TestMethodParametersInfo.cs b/src/Analyzers/MSTest.SourceGeneration/ObjectModels/TestMethodParametersInfo.cs
index e92b79e650..7834e6c02f 100644
--- a/src/Analyzers/MSTest.SourceGeneration/ObjectModels/TestMethodParametersInfo.cs
+++ b/src/Analyzers/MSTest.SourceGeneration/ObjectModels/TestMethodParametersInfo.cs
@@ -7,7 +7,7 @@
namespace Microsoft.Testing.Framework.SourceGeneration.ObjectModels;
-internal sealed class TestMethodParametersInfo
+public sealed class TestMethodParametersInfo
{
public TestMethodParametersInfo(ImmutableArray parameters)
{