Issue 8 in backlinq: Min(int?) returns null instead of minimum non null value

0 views
Skip to first unread message

codesite...@google.com

unread,
Sep 8, 2008, 8:01:04 AM9/8/08
to backlin...@googlegroups.com
Issue 8: Min(int?) returns null instead of minimum non null value
http://code.google.com/p/backlinq/issues/detail?id=8

New issue report by dominik....@skybow.com:
What steps will reproduce the problem?
[Test]
public void Min_ListWithNullables_MinimumNonNullValueIsReturned() {
var enumerable = new int?[] {199, 15, null, 30};
Assert.That(enumerable.Min(), Is.EqualTo(15));
}

What is the expected output? What do you see instead?
Expected: 15
Instead: null

What version of the product are you using? On what operating system?
0.6.0.0


Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

codesite...@google.com

unread,
Sep 8, 2008, 8:14:15 AM9/8/08
to backlin...@googlegroups.com
Issue 8: Min(int?) returns null instead of minimum non null value
http://code.google.com/p/backlinq/issues/detail?id=8

Comment #1 by dominik....@skybow.com:
The same applies to some oder overloads of Min<Nullable<XXX>>()

Reply all
Reply to author
Forward
0 new messages