diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-21 10:24:02 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-21 10:24:02 +0300 |
commit | 1d64c8839d00d9b64dec26ed1166035a858f2b7e (patch) | |
tree | 20094a7a94b68007fd4a59e86a2567772b30325c /RhSolutions.Tests | |
parent | 71a0745c70faff8cc9412e9ba4e0fc91c12b522a (diff) |
Do not copy Test workbooks
Diffstat (limited to 'RhSolutions.Tests')
-rw-r--r-- | RhSolutions.Tests/CanReadProducts.cs | 2 | ||||
-rw-r--r-- | RhSolutions.Tests/RhSolutions.Tests.csproj | 15 | ||||
-rw-r--r-- | RhSolutions.Tests/WorkbookValidationTests.cs | 4 |
3 files changed, 3 insertions, 18 deletions
diff --git a/RhSolutions.Tests/CanReadProducts.cs b/RhSolutions.Tests/CanReadProducts.cs index 14a89e6..5973017 100644 --- a/RhSolutions.Tests/CanReadProducts.cs +++ b/RhSolutions.Tests/CanReadProducts.cs @@ -45,7 +45,7 @@ public class CanReadProducts : IDisposable Assert.Equal(3, products.Count()); } - [ExcelFact(Workbook = @"TestWorkbooks\TestSpecification.xlsx")] + [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\TestSpecification.xlsx")] public void CanReadWorkbook() { Worksheet worksheet = Util.Workbook.Worksheets[1]; diff --git a/RhSolutions.Tests/RhSolutions.Tests.csproj b/RhSolutions.Tests/RhSolutions.Tests.csproj index 7694a62..8c6b442 100644 --- a/RhSolutions.Tests/RhSolutions.Tests.csproj +++ b/RhSolutions.Tests/RhSolutions.Tests.csproj @@ -17,19 +17,4 @@ <ProjectReference Include="..\RhSolutions.AddIn\RhSolutions.AddIn.csproj" /> </ItemGroup> - <ItemGroup> - <None Update="TestWorkbooks\EmptyTestTable.xlsx"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </None> - <None Update="TestWorkbooks\EmptyWorkbook.xlsx"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </None> - <None Update="TestWorkbooks\ExcelTableTest.xlsx"> - <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> - </None> - <None Update="TestWorkbooks\TestSpecification.xlsx"> - <CopyToOutputDirectory>Always</CopyToOutputDirectory> - </None> - </ItemGroup> - </Project> diff --git a/RhSolutions.Tests/WorkbookValidationTests.cs b/RhSolutions.Tests/WorkbookValidationTests.cs index ca00a18..f5b338a 100644 --- a/RhSolutions.Tests/WorkbookValidationTests.cs +++ b/RhSolutions.Tests/WorkbookValidationTests.cs @@ -15,14 +15,14 @@ public class WorkbookValidationTests : IDisposable Util.Application.Workbooks.Add(); } - [ExcelFact(Workbook = @"TestWorkbooks\EmptyTestTable.xlsx")] + [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\EmptyTestTable.xlsx")] public void WorksheetIsCorrect() { Worksheet worksheet = Util.Workbook.Sheets[1]; Assert.True(worksheet.IsValidSource()); } - [ExcelFact(Workbook = @"TestWorkbooks\EmptyWorkbook.xlsx")] + [ExcelFact(Workbook = @"..\..\..\TestWorkbooks\EmptyWorkbook.xlsx")] public void EmptyWorkbookIsNotCorrect() { Worksheet worksheet = Util.Workbook.Sheets[1]; |