[backlinq commit] r283 - trunk/test/BackLINQ.Tests

0 views
Skip to first unread message

codesite...@google.com

unread,
Jan 27, 2009, 3:53:18 PM1/27/09
to backlinq...@googlegroups.com
Author: azizatif
Date: Tue Jan 27 10:28:40 2009
New Revision: 283

Modified:
trunk/test/BackLINQ.Tests/EnumerableFixture.cs

Log:
Added test to bring coverage of Enumerable.Min to 100%.


Modified: trunk/test/BackLINQ.Tests/EnumerableFixture.cs
==============================================================================
--- trunk/test/BackLINQ.Tests/EnumerableFixture.cs (original)
+++ trunk/test/BackLINQ.Tests/EnumerableFixture.cs Tue Jan 27 10:28:40 2009
@@ -1289,10 +1289,16 @@
}

[Test]
+ public void Min_Chars_ReturnsMinimumBySortOrder()
+ {
+ Assert.That("qwertzuioplkjhgfdsayxcvbnm".ToCharArray().Min(),
Is.EqualTo('a'));
+ }
+
+ [Test]
public void
Min_StringsWithLengthSelector_ReturnsMinimumNonNullStringLength()
{
var strings = Read("five", "four", null, "three",
null, "two", "one", "zero");
- Assert.That(strings.Min(s => s != null ? s.Length : (int?)
null), Is.EqualTo(3));
+ Assert.That(strings.Min(s => s != null ? s.Length :
(int?)null), Is.EqualTo(3));
}

[Test]

Reply all
Reply to author
Forward
0 new messages