From fb0f281759359fc536fcac7f9e0fec1858f31854 Mon Sep 17 00:00:00 2001 From: Vladimir Savkin Date: Wed, 29 Jul 2020 01:43:29 +0600 Subject: [PATCH] feat: Add CalcResultTests --- .../Platform.Numbers.Tests/CalcResultTests.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 csharp/Platform.Numbers.Tests/CalcResultTests.cs diff --git a/csharp/Platform.Numbers.Tests/CalcResultTests.cs b/csharp/Platform.Numbers.Tests/CalcResultTests.cs new file mode 100644 index 0000000..f120c40 --- /dev/null +++ b/csharp/Platform.Numbers.Tests/CalcResultTests.cs @@ -0,0 +1,18 @@ +using Xunit; + +namespace Platform.Numbers.Tests +{ + public static class CalcResultTests + { + [Fact] + public static void UsingOperatorsTests() + { + //act + var result = ((CalcResult)5 + 6) * (3 + 9 / 3); + + //assert + int expected = (5 + 6) * (3 + 9 / 3); + Assert.Equal(expected, result.Value); + } + } +}