diff options
-rw-r--r-- | RhSolutions.Tests/CanWriteProducts.cs | 19 | ||||
-rw-r--r-- | RhSolutions.Tests/TestWorkbooks/TargetSpecificationNewVariant.xlsx | bin | 9347 -> 9388 bytes | |||
-rw-r--r-- | RhSolutions.Tests/TestWorkbooks/TargetSpecificationReplaced.xlsx | bin | 9351 -> 9404 bytes | |||
-rw-r--r-- | RhSolutions.Tests/TestWorkbooks/TestSpecificationNewVariant.xlsx | bin | 9175 -> 9187 bytes | |||
-rw-r--r-- | RhSolutions.Tests/TestWorkbooks/TestSpecificationReplaced.xlsx | bin | 9174 -> 9227 bytes |
5 files changed, 11 insertions, 8 deletions
diff --git a/RhSolutions.Tests/CanWriteProducts.cs b/RhSolutions.Tests/CanWriteProducts.cs index d53931d..c8820a7 100644 --- a/RhSolutions.Tests/CanWriteProducts.cs +++ b/RhSolutions.Tests/CanWriteProducts.cs @@ -79,10 +79,13 @@ public class CanWriteProducts : IDisposable Assert.Equal("TestSpecificationReplaced", products.First().Item1); Assert.Equal("TargetSpecificationReplaced", targetProducts.First().Item1); - Assert.Single(targetProducts.First().Item2); - var product = targetProducts.First().Item2.First().Key; - Assert.Contains("Молот Тора", product.Name); - Assert.Contains("15555551555", product.Name); + var result = targetProducts.First().Item2.ToArray(); + Assert.Contains("Молот Тора", result[0].Key.Name); + Assert.Contains("15555551555", result[0].Key.Name); + Assert.Equal(1, result[0].Value); + Assert.Contains("Нога Вирта", result[1].Key.Name); + Assert.Contains("17777771777", result[1].Key.Name); + Assert.Equal(1, result[1].Value); } [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\TestSpecificationNewVariant.xlsx")] @@ -98,10 +101,10 @@ public class CanWriteProducts : IDisposable Assert.Equal("TestSpecificationNewVariant", products.First().Item1); Assert.Equal("TargetSpecificationNewVariant", targetProducts.First().Item1); - Assert.Single(targetProducts.First().Item2); - var product = targetProducts.First().Item2.First().Key; - Assert.Contains("Молот Тора", product.Name); - Assert.Contains("15555551555", product.Name); + var result = targetProducts.First().Item2.ToArray(); + Assert.Contains("Молот Тора", result[0].Key.Name); + Assert.Contains("15555551555", result[0].Key.Name); + Assert.Equal(1, result[0].Value); } public void Dispose() diff --git a/RhSolutions.Tests/TestWorkbooks/TargetSpecificationNewVariant.xlsx b/RhSolutions.Tests/TestWorkbooks/TargetSpecificationNewVariant.xlsx Binary files differindex 56d1cdc..b28b349 100644 --- a/RhSolutions.Tests/TestWorkbooks/TargetSpecificationNewVariant.xlsx +++ b/RhSolutions.Tests/TestWorkbooks/TargetSpecificationNewVariant.xlsx diff --git a/RhSolutions.Tests/TestWorkbooks/TargetSpecificationReplaced.xlsx b/RhSolutions.Tests/TestWorkbooks/TargetSpecificationReplaced.xlsx Binary files differindex af7d045..be08ce8 100644 --- a/RhSolutions.Tests/TestWorkbooks/TargetSpecificationReplaced.xlsx +++ b/RhSolutions.Tests/TestWorkbooks/TargetSpecificationReplaced.xlsx diff --git a/RhSolutions.Tests/TestWorkbooks/TestSpecificationNewVariant.xlsx b/RhSolutions.Tests/TestWorkbooks/TestSpecificationNewVariant.xlsx Binary files differindex f6c3d96..d8b4f70 100644 --- a/RhSolutions.Tests/TestWorkbooks/TestSpecificationNewVariant.xlsx +++ b/RhSolutions.Tests/TestWorkbooks/TestSpecificationNewVariant.xlsx diff --git a/RhSolutions.Tests/TestWorkbooks/TestSpecificationReplaced.xlsx b/RhSolutions.Tests/TestWorkbooks/TestSpecificationReplaced.xlsx Binary files differindex 7900714..c40b4a9 100644 --- a/RhSolutions.Tests/TestWorkbooks/TestSpecificationReplaced.xlsx +++ b/RhSolutions.Tests/TestWorkbooks/TestSpecificationReplaced.xlsx |