Skip to content

Commit

Permalink
use range operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertk committed Feb 9, 2024
1 parent 46d85fe commit 3ca1e6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/coverlet.msbuild.tasks.tests/Reporters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public void Msbuild_ReportWriter(string? coverletMultiTargetFrameworksCurrentTFM
new CoverageResult() { Modules = new Modules(), Parameters = new CoverageParameters() }, null);

string path = reportWriter.WriteReport();
//remove drive for windows
//remove drive for windows paths
if (path.Contains(':'))
{
path = path.Substring(2);
path = path[2..];
}
// Path.Combine depends on OS so we can change only win side to avoid duplication
Assert.Equal(path.Replace('/', Path.DirectorySeparatorChar), expectedFileName.Replace('/', Path.DirectorySeparatorChar));
Expand Down

0 comments on commit 3ca1e6e

Please sign in to comment.