aboutsummaryrefslogtreecommitdiff
path: root/RhSolutions.Tests/CanReadProducts.cs
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-07-26 17:17:09 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-07-26 17:17:09 +0300
commite14d714811df1cc5d48543940042fd7481a86970 (patch)
tree23d2aa23691047f92dd5e347bb4cebe7baf9861a /RhSolutions.Tests/CanReadProducts.cs
parent47c3b19a1786637dad93be44836dc982e833013e (diff)
Move Price List Validation to separate static class
Diffstat (limited to 'RhSolutions.Tests/CanReadProducts.cs')
-rw-r--r--RhSolutions.Tests/CanReadProducts.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/RhSolutions.Tests/CanReadProducts.cs b/RhSolutions.Tests/CanReadProducts.cs
index e796da0..745c243 100644
--- a/RhSolutions.Tests/CanReadProducts.cs
+++ b/RhSolutions.Tests/CanReadProducts.cs
@@ -22,6 +22,7 @@ public class CanReadProducts : IDisposable
public void CanReadRange()
{
Worksheet worksheet = _testWorkbook.Sheets[1];
+ worksheet.Validate();
worksheet.Range["A1"].Value = "11600011001";
worksheet.Range["A2"].Value = "11600011001";
worksheet.Range["A3"].Value = "160002-001";
@@ -49,6 +50,7 @@ public class CanReadProducts : IDisposable
public void CanReadWorkbook()
{
Worksheet worksheet = Util.Workbook.Worksheets[1];
+ worksheet.Validate();
var result = _reader.ReadProducts(new[] { worksheet });
Assert.NotNull(result);
Assert.NotEmpty(result);