Skip to content

Commit

Permalink
Replace Line Endings
Browse files Browse the repository at this point in the history
  • Loading branch information
justindbaur committed Nov 20, 2023
1 parent 278e631 commit 8528f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/SourceGeneratorTests/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private void CompareAgainstBaseline(GeneratedSourceResult result, string testMet

using var stream = typeof(TestBase).Assembly.GetManifestResourceStream(resourceName)!;
using var reader = new StreamReader(stream);
Assert.Equal(reader.ReadToEnd(), result.SourceText.ToString());
Assert.Equal(reader.ReadToEnd().ReplaceLineEndings(), result.SourceText.ToString().ReplaceLineEndings());
#else
var baseDirectory = new DirectoryInfo(typeof(TestBase).Assembly.GetAssemblyLocation())
.Parent?.Parent?.Parent?.Parent;
Expand Down

0 comments on commit 8528f81

Please sign in to comment.