Fix TestIssue261 path could not find file

This commit is contained in:
ITWeiHan 2021-06-20 20:56:01 +08:00
parent f2d2faaf7b
commit 22fa99981e

View File

@ -32,7 +32,7 @@ namespace MiniExcelLibs.Tests
[Fact] [Fact]
public void TestIssue261() public void TestIssue261()
{ {
var csvPath = @"D:\git\MiniExcel\samples\csv\TestCsvToXlsx.csv"; var csvPath = PathHelper.GetSamplePath("csv/TestCsvToXlsx.csv");
var xlsxPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + ".xlsx"); var xlsxPath = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + ".xlsx");
CsvToXlsx(csvPath, xlsxPath); CsvToXlsx(csvPath, xlsxPath);
var rows = MiniExcel.Query(xlsxPath).ToList(); var rows = MiniExcel.Query(xlsxPath).ToList();