You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 23, 2021. It is now read-only.
[Fact(Skip="BUG: FirstOrDefault generates NullReferenceException when there are no results.")]
publicoverridevoidFirstOrDefault_NoResults(){
}
Expected behavior: FirstOrDefault should return default(T)
It is unknown whether this issue is specific to the FirstOrDefault overload that takes a predicate, or would also occur when calling .Where(predicate).FirstOrDefault().
See test case:
Invio.QueryProvider.MySql/test/Invio.QueryProvider.MySql.Test/MySqlQueryableTest.cs
Lines 91 to 93 in 03146ab
Expected behavior: FirstOrDefault should return
default(T)It is unknown whether this issue is specific to the
FirstOrDefaultoverload that takes a predicate, or would also occur when calling.Where(predicate).FirstOrDefault().