diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-03-23 17:13:48 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-03-23 17:13:48 +0300 |
commit | 3c93c978d4745650c19e5b750329121913e2c418 (patch) | |
tree | ed1436cc685f5c6d390d4652406990c2e73cd267 /RhSolutions.Tests/CalculationTests.cs | |
parent | 2cef4d1d9f95ee358b61963dff1ce71e97e9a03c (diff) |
Add Workbook check tests
Diffstat (limited to 'RhSolutions.Tests/CalculationTests.cs')
-rw-r--r-- | RhSolutions.Tests/CalculationTests.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/RhSolutions.Tests/CalculationTests.cs b/RhSolutions.Tests/CalculationTests.cs deleted file mode 100644 index d6c54c2..0000000 --- a/RhSolutions.Tests/CalculationTests.cs +++ /dev/null @@ -1,30 +0,0 @@ -namespace RhSolutions.Tests; - -public class CalculationTests : IDisposable -{ - private Workbook workbook; - - public CalculationTests() - { - workbook = Util.Application.Workbooks.Add(); - } - - public void Dispose() - { - workbook.Close(SaveChanges: false); - } - - [ExcelFact] - public void NumbersAddCorrectly() - { - var ws = workbook.Sheets[1]; - - ws.Range["A1"].Value = 2.0; - ws.Range["A2"].Value = 3.0; - ws.Range["A3"].Formula = "= A1 + A2"; - - var result = ws.Range["A3"].Value; - - Assert.Equal(5.0, result); - } -}
\ No newline at end of file |