Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed Feb 17, 2021
1 parent b0fd9b4 commit b0621fc
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,18 @@ public void NotExistingSourceDirectory_FileNotExists_DefaultPathReturned()
Assert.NotNull(error);
Assert.Null(lines);
}

[Theory]
[InlineData("/_/OpenCover.xml")]
[InlineData("/_1/OpenCover.xml")]
[InlineData("/_2/OpenCover.xml")]
public void DeterminicticPath_ExistingSourceDirectory_FileExists_MappedPathReturned(string filename)
{
var sut = new LocalFileReader(new[] { FileManager.GetCSharpReportDirectory() });

string[] lines = sut.LoadFile(filename, out string error);
Assert.Null(error);
Assert.True(lines.Length > 0);
}
}
}

0 comments on commit b0621fc

Please sign in to comment.