Skip to content

Commit

Permalink
feat: Add CalcResultTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vovanda committed Jul 28, 2020
1 parent b89766e commit fb0f281
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions csharp/Platform.Numbers.Tests/CalcResultTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Xunit;

namespace Platform.Numbers.Tests
{
public static class CalcResultTests
{
[Fact]
public static void UsingOperatorsTests()
{
//act
var result = ((CalcResult<int>)5 + 6) * (3 + 9 / 3);

//assert
int expected = (5 + 6) * (3 + 9 / 3);
Assert.Equal(expected, result.Value);
}
}
}

0 comments on commit fb0f281

Please sign in to comment.