Skip to content

Commit 15681d7

Browse files
committed
Stop PerformanceTest
1 parent 6dea49d commit 15681d7

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

tests/MiniExcelTests/MiniExcelTemplateTests.cs

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -57,33 +57,33 @@ public void TemplateBasiTest()
5757
}
5858

5959
//[Fact]
60-
public void PerformanceTest()
61-
{
62-
// MiniExcel
63-
{
64-
var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid().ToString()}.xlsx");
65-
var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill.xlsx";
66-
var value = new
67-
{
68-
employees = Enumerable.Range(1, 1000000).Select(s => new { name = "Jack", department = "HR" })
69-
};
70-
MiniExcel.SaveAsByTemplate(path, templatePath, value);
71-
}
72-
73-
// ClosexXml.Report
74-
{
75-
var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid().ToString()}.xlsx");
76-
var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill_ClosedXML_Report.xlsx";
77-
var template = new ClosedXML.Report.XLTemplate(templatePath);
78-
var value = new
79-
{
80-
employees = Enumerable.Range(1, 1000000).Select(s => new { name = "Jack", department = "HR" })
81-
};
82-
template.AddVariable(value);
83-
template.Generate();
84-
template.SaveAs(path);
85-
}
86-
}
60+
//public void PerformanceTest()
61+
//{
62+
// // MiniExcel
63+
// {
64+
// var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid().ToString()}.xlsx");
65+
// var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill.xlsx";
66+
// var value = new
67+
// {
68+
// employees = Enumerable.Range(1, 1000000).Select(s => new { name = "Jack", department = "HR" })
69+
// };
70+
// MiniExcel.SaveAsByTemplate(path, templatePath, value);
71+
// }
72+
73+
// // ClosexXml.Report
74+
// {
75+
// var path = Path.Combine(Path.GetTempPath(), $"{Guid.NewGuid().ToString()}.xlsx");
76+
// var templatePath = @"..\..\..\..\..\samples\xlsx\TestTemplateBasicIEmumerableFill_ClosedXML_Report.xlsx";
77+
// var template = new ClosedXML.Report.XLTemplate(templatePath);
78+
// var value = new
79+
// {
80+
// employees = Enumerable.Range(1, 1000000).Select(s => new { name = "Jack", department = "HR" })
81+
// };
82+
// template.AddVariable(value);
83+
// template.Generate();
84+
// template.SaveAs(path);
85+
// }
86+
//}
8787

8888
[Fact]
8989
public void TestIEnumerable()

0 commit comments

Comments
 (0)