Skip to content

Commit f47ceb1

Browse files
committed
added FieldInfo and PropertyInfo to the type checks to fix failing tests
1 parent 1f19452 commit f47ceb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/NHibernate.Test/Criteria/Lambda/LambdaFixtureBase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ private void AssertObjectsAreEqual(object expected, object actual, string name)
128128

129129
if ((expectedType.IsValueType)
130130
|| (expected is System.Type)
131-
|| (expected is string))
131+
|| (expected is string)
132+
|| (expected is FieldInfo)
133+
|| (expected is PropertyInfo))
132134
{
133135
Assert.AreEqual(expected, actual, fieldPath);
134136
_fieldPath.Pop();

0 commit comments

Comments
 (0)