Skip to content

Commit b65cf8b

Browse files
committed
Fix issues
1 parent 4139a33 commit b65cf8b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tests/Helpers/Testably.Abstractions.Tests.SourceGenerator/Generator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void Execute(GeneratorExecutionContext context)
3434
return;
3535
}
3636

37-
new GlobalGenerator().GenerateClass(context);
37+
GlobalGenerator.GenerateClass(context);
3838
foreach (ClassGeneratorBase classGenerator in _classGenerators)
3939
{
4040
foreach (ClassModel classModel in _syntaxReceiver

Tests/Helpers/Testably.Abstractions.Tests.SourceGenerator/GlobalGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace Testably.Abstractions.Tests.SourceGenerator;
66

7-
public class GlobalGenerator
7+
public static class GlobalGenerator
88
{
9-
public void GenerateClass(GeneratorExecutionContext context)
9+
public static void GenerateClass(GeneratorExecutionContext context)
1010
{
1111
StringBuilder sourceBuilder = GetSourceBuilder();
1212
GenerateSource(sourceBuilder);

Tests/Testably.Abstractions.Testing.Tests/Statistics/StatisticsTests.Helpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private static string GetName(Type type, bool firstCharUpperCase)
302302

303303
if (type.IsGenericType)
304304
{
305-
int idx = type.Name.IndexOf('`');
305+
int idx = type.Name.IndexOf('`', StringComparison.Ordinal);
306306
if (idx > 0)
307307
{
308308
#pragma warning disable MA0089 // Use an overload with char instead of string

0 commit comments

Comments
 (0)