* EnumerableTest.cs: Add test case for Average with nullable long.
svn path=/trunk/mcs/; revision=114329
+2008-09-28 Sebastien Pouliot <sebastien@ximian.com>
+
+ * EnumerableTest.cs: Add test case for Average with nullable long.
+
2008-08-08 Jb Evain <jbevain@novell.com>
* EnumerableTest.cs: add test to ensure that Take doesn't consume
Assert.AreEqual (23.25, (new long [] { 24, 7, 28, 34 }).Average ());
}
+ [Test]
+ public void TestAverageOnLongNullable ()
+ {
+ List<long?> list = new List<long?> ();
+ list.Add (2);
+ list.Add (3);
+ Assert.AreEqual (2.5d, list.Average ());
+ }
+
[Test]
public void TestRange ()
{