Skip to content

Commit

Permalink
Fix Test Compare
Browse files Browse the repository at this point in the history
  • Loading branch information
justindbaur committed Nov 20, 2023
1 parent 935bce8 commit 278e631
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/SourceGeneratorTests/TestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ private void CompareAgainstBaseline(GeneratedSourceResult result, string testMet
{
var normalizedName = result.HintName[..^3].Replace('.', '_') + ".cs";
#if !GENERATE_SOURCE
var fileInfo = new FileInfo(result.HintName);
var resultFileName = result.HintName.Replace('.', '_');
var baseLineName = $"{GetType().Name}.{testMethodName}.{resultFileName}.txt";
var baseLineName = $"{GetType().Name}.{testMethodName}.{normalizedName}";
var resourceName = typeof(TestBase).Assembly.GetManifestResourceNames()
.Single(r => r.EndsWith(baseLineName));

Expand Down

0 comments on commit 278e631

Please sign in to comment.