Skip to content

Commit 3e552be

Browse files
committed
certain tests needed to be adjusted due to solutions in dependencies
1 parent 10d6825 commit 3e552be

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/RulesEngine.UnitTest/RuleExpressionParserTests/RuleExpressionParserTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public void TestExpressionWithJObject()
4848
[Fact]
4949
public void CachingLiteralsDictionary()
5050
{
51-
var board = new { NumberOfMembers = default(decimal?) };
51+
var board = new { NumberOfMembers = default(double?) };
5252

5353
var parameters = new RuleParameter[] {
5454
RuleParameter.Create("Board", board)

test/RulesEngine.UnitTest/UtilsTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ public void GetTypedObject_Anonymous_dynamicObject()
5252
Assert.IsNotType<ExpandoObject>(typedobj);
5353
Assert.NotNull(typedobj.GetType().GetProperty("L"));
5454
Assert.NotNull(typedobj.GetType().GetProperty("W"));
55-
Assert.NotNull(typedobj.GetType().GetProperty("Item", BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.Instance));
56-
Assert.Throws<AmbiguousMatchException>(() => typedobj.GetType().GetProperty("Item"));
55+
Assert.NotNull(typedobj.GetType().GetProperty("Item"));
5756
}
5857

5958
[Fact]

0 commit comments

Comments
 (0)