diff --git a/csharp/Platform.Numbers.Tests/CalcResultTests.cs b/csharp/Platform.Numbers.Tests/CalcResultTests.cs index e964308..a2fa0bb 100644 --- a/csharp/Platform.Numbers.Tests/CalcResultTests.cs +++ b/csharp/Platform.Numbers.Tests/CalcResultTests.cs @@ -9,13 +9,13 @@ public static class CalcResultTests public static void SimpleIntegration_Test() { //arrange - int expected = (5 + 6) * (3 + 9 / 3); + int expected = (5 + 6) * (3 + (9 / 3)); expected++; expected++; expected--; //act - var result = ((CalcResult)5 + 6) * (3 + 9 / (CalcResult)3); + var result = ((CalcResult)5 + 6) * (3 + (9 / (CalcResult)3)); result.Increment(); result++; result--; diff --git a/csharp/Platform.Numbers/CalcResult.cs b/csharp/Platform.Numbers/CalcResult.cs index 2e3498f..30364ac 100644 --- a/csharp/Platform.Numbers/CalcResult.cs +++ b/csharp/Platform.Numbers/CalcResult.cs @@ -234,11 +234,11 @@ public T Value } } - public bool IsValid; + public bool IsValid { get; set; } public string Message { get; private set; } - private T _value; + private T _value ; #region Operator overloading