Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed May 24, 2024
1 parent 07ddad7 commit 0be2716
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/OmniSharp.Cake.Tests/BlockStructureFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ void M()[|
.ToArray();

var expected = testFile.Content.GetSpans()
.Select(span => testFile.Content.GetRangeFromSpan(span).ToRange()).ToArray();
.Select(span => testFile.Content.GetRangeFromSpan(span).ToRange())
.Reverse()
.ToArray();

Assert.Equal(expected, lineSpans);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public AbstractMSBuildTestFixture(ITestOutputHelper output)
// prerelease version so that our .NET 7 tests will pass.
var configuration = new Dictionary<string, string>
{
["sdk:Version"] = "8.0.201",
["sdk:IncludePrereleases"] = bool.TrueString
}.ToConfiguration();

Expand Down
4 changes: 3 additions & 1 deletion tests/OmniSharp.Roslyn.CSharp.Tests/BlockStructureFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ void M()[|
.ToArray();

var expected = testFile.Content.GetSpans()
.Select(span => testFile.Content.GetRangeFromSpan(span).ToRange()).ToArray();
.Select(span => testFile.Content.GetRangeFromSpan(span).ToRange())
.Reverse()
.ToArray();

Assert.Equal(expected, lineSpans);
}
Expand Down

0 comments on commit 0be2716

Please sign in to comment.