Skip to content

Commit 540fa40

Browse files
committed
Fix undefined behavior in OrderByBoolExpressionComplex test
1 parent 8975354 commit 540fa40

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Orm/Xtensive.Orm.Tests/Linq/OrderByTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ public void OrderByBoolExpressionComplex()
333333
.OrderBy(c => c.Status == (InvoiceStatus) 1 || c.Status == (InvoiceStatus) 2)
334334
.Select(c => c.Status)
335335
.ToArray();
336-
Assert.AreEqual(result.Last(), (InvoiceStatus) 1);
336+
Assert.Contains(result.Last(), new[] { (InvoiceStatus) 1, (InvoiceStatus) 2 });
337337
}
338338
}
339-
}
339+
}

0 commit comments

Comments
 (0)