31 lines
747 B
C#
31 lines
747 B
C#
namespace RhSolutions.Tests;
|
|
|
|
[ExcelTestSettings(AddIn = @"..\..\..\..\RhSolutions.AddIn\bin\Debug\net6.0-windows\RhSolutions-AddIn")]
|
|
public class RhSolutionsCheckTest : IDisposable
|
|
{
|
|
private Workbook workbook;
|
|
|
|
public RhSolutionsCheckTest()
|
|
{
|
|
workbook = Util.Application.Workbooks.Add();
|
|
}
|
|
|
|
[ExcelFact]
|
|
public void RhSolutionsFunctionWorks()
|
|
{
|
|
var ws = workbook.Sheets[1];
|
|
|
|
ws.Range["A1"].Formula = "=RHSOLUTIONS(\"гильза 16\")";
|
|
Util.Application.CalculateFull();
|
|
|
|
var result = ws.Range["A1"].Value;
|
|
|
|
Assert.Equal("Загрузка...", result);
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Util.Application.ActiveWorkbook.Close(SaveChanges: false);
|
|
}
|
|
}
|