30 lines
748 B
C#
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);
|
|
}
|
|
}
|