RhSolutions-AddIn/RhSolutions.Tests/RhSolutionsCheckTest.cs
Sergey Chebotar 2cb7cd0377 Test edit
2023-03-24 06:22:40 +03:00

30 lines
748 B
C#

namespace RhSolutions.Tests;
[ExcelTestSettings(OutOfProcess = true)]
public class WorkbookCheck : IDisposable
{
public WorkbookCheck()
{
Util.Application.Workbooks.Add();
}
[ExcelFact(Workbook = @"TestWorkbooks\EmptyTestTable.xlsx")]
public void WorksheetIsCorrect()
{
Worksheet worksheet= Util.Workbook.Sheets[1];
Assert.True(worksheet.IsRehauSource());
}
[ExcelFact(Workbook = @"TestWorkbooks\EmptyWorkbook.xlsx")]
public void EmptyWorkbookIsNotCorrect()
{
Worksheet worksheet = Util.Workbook.Sheets[1];
Assert.False(worksheet.IsRehauSource());
}
public void Dispose()
{
Util.Application.ActiveWorkbook.Close(SaveChanges: false);
}
}