Skip to content

Commit d580de0

Browse files
committed
Deleted obsolete method
1 parent 2eb41e5 commit d580de0

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/AnalyzerAndCodeFixTests/TTRESG008_AbstractEnumNeedsCreateInvalidItemImplementation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace TestNamespace
3737
public abstract partial class TestEnum
3838
{
3939
public static readonly TestEnum Item1 = default;
40-
40+
4141
private static TestEnum CreateInvalidItem(string key)
4242
{
4343
throw new global::System.NotImplementedException();
@@ -64,7 +64,7 @@ namespace TestNamespace
6464
public abstract partial class {|#0:TestEnum|}
6565
{
6666
public static readonly TestEnum Item1 = default;
67-
67+
6868
private static TestEnum CreateInvalidItem(string key)
6969
{
7070
throw new System.NotImplementedException();

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/SourceGeneratorTests/SourceGeneratorTestsBase.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,4 @@ public static Dictionary<string, string> GetGeneratedOutputs<T>(string source, p
123123
.Skip(1)
124124
.ToDictionary(t => t.FilePath, t => t.ToString());
125125
}
126-
127-
protected static void AssertOutput(string output, string expectedOutput)
128-
{
129-
output = output?.Replace("\r\n", "\n");
130-
expectedOutput = expectedOutput?.Replace("\r\n", "\n");
131-
132-
output.Should().Be(expectedOutput);
133-
}
134126
}

test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/Verifiers/CodeFixVerifier.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,13 @@ public static async Task VerifyCodeFixAsync(
4848
IEnumerable<Assembly> additionalReferences,
4949
params DiagnosticResult[] expected)
5050
{
51-
if (Environment.NewLine == "\n")
51+
source = source.Replace("\r\n", "\n");
52+
fixedSource = fixedSource.Replace("\r\n", "\n");
53+
54+
if (Environment.NewLine == "\r\n")
5255
{
53-
source = source.Replace("\r\n", Environment.NewLine);
54-
fixedSource = fixedSource.Replace("\r\n", Environment.NewLine);
56+
source = source.Replace("\n", "\r\n");
57+
fixedSource = fixedSource.Replace("\n", "\r\n");
5558
}
5659

5760
var test = new CodeFixTest(source, fixedSource, additionalReferences, expected);

0 commit comments

Comments
 (0)