diff --git a/RhSolutions.Tests/CanDoGuess.cs b/RhSolutions.Tests/CanDoGuess.cs index 8e2d71c..ff13106 100644 --- a/RhSolutions.Tests/CanDoGuess.cs +++ b/RhSolutions.Tests/CanDoGuess.cs @@ -8,13 +8,15 @@ namespace RhSolutions.Tests; public class CanDoGuess : IDisposable { private RhSolutionsAddIn _addIn; + private IReader _guessReader; private IReader _reader; public CanDoGuess() { _addIn = new(); _addIn.AutoOpen(); - _reader = new GuessReader(Util.Application); + _guessReader = new GuessReader(Util.Application); + _reader = new ExcelReader(Util.Application, RhSolutionsAddIn.Configuration); } [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\TestSpecificationGuess.xlsx")] @@ -22,7 +24,7 @@ public class CanDoGuess : IDisposable { Worksheet sourceSheet = Util.Workbook.Worksheets[1]; RhSolutionsAddIn.Configuration.SetPriceListPath(Path.GetFullPath(@"..\..\..\TestWorkbooks\TargetSpecificationGuess.xlsx")); - var products = _reader.ReadProducts(new[] { sourceSheet }); + var products = _guessReader.ReadProducts(new[] { sourceSheet }); var _writer = new ExcelWriter(Util.Application, RhSolutionsAddIn.Configuration); _writer.WriteProducts(products); Worksheet targetSheet = Util.Application.ActiveWindow.ActiveSheet; @@ -39,7 +41,7 @@ public class CanDoGuess : IDisposable { Worksheet sourceSheet = Util.Workbook.Worksheets[1]; RhSolutionsAddIn.Configuration.SetPriceListPath(Path.GetFullPath(@"..\..\..\TestWorkbooks\TargetSpecificationGuessOneRow.xlsx")); - var products = _reader.ReadProducts(new[] { sourceSheet }); + var products = _guessReader.ReadProducts(new[] { sourceSheet }); var _writer = new ExcelWriter(Util.Application, RhSolutionsAddIn.Configuration); _writer.WriteProducts(products); Worksheet targetSheet = Util.Application.ActiveWindow.ActiveSheet; diff --git a/RhSolutions.Tests/TestWorkbooks/TestSpecificationGuess.xlsx b/RhSolutions.Tests/TestWorkbooks/TestSpecificationGuess.xlsx index fbd545c..6376b5f 100644 Binary files a/RhSolutions.Tests/TestWorkbooks/TestSpecificationGuess.xlsx and b/RhSolutions.Tests/TestWorkbooks/TestSpecificationGuess.xlsx differ