Skip to content

Commit b0621fc

Browse files
committed
Added test
1 parent b0fd9b4 commit b0621fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/ReportGenerator.Core.Test/Parser/FileReading/LocalFileReaderTest.cs

+13
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,18 @@ public void NotExistingSourceDirectory_FileNotExists_DefaultPathReturned()
5454
Assert.NotNull(error);
5555
Assert.Null(lines);
5656
}
57+
58+
[Theory]
59+
[InlineData("/_/OpenCover.xml")]
60+
[InlineData("/_1/OpenCover.xml")]
61+
[InlineData("/_2/OpenCover.xml")]
62+
public void DeterminicticPath_ExistingSourceDirectory_FileExists_MappedPathReturned(string filename)
63+
{
64+
var sut = new LocalFileReader(new[] { FileManager.GetCSharpReportDirectory() });
65+
66+
string[] lines = sut.LoadFile(filename, out string error);
67+
Assert.Null(error);
68+
Assert.True(lines.Length > 0);
69+
}
5770
}
5871
}

0 commit comments

Comments
 (0)