From 1d64c8839d00d9b64dec26ed1166035a858f2b7e Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Sun, 21 May 2023 10:24:02 +0300 Subject: [PATCH] Do not copy Test workbooks --- RhSolutions.Tests/CanReadProducts.cs | 2 +- RhSolutions.Tests/RhSolutions.Tests.csproj | 15 --------------- 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 @@ - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - Always - - - 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];