[MonoDevelop] Test failure when using Linq and .Net 4.0
Matt Calder
mvcalder at gmail.com
Thu Dec 2 13:33:47 EST 2010
List,
I created a solution, with a single file:
// BEGIN FILE
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
namespace LinqDB
{
[TestFixture]
public class LinqDBTests
{
[Test]
public void LinqDBTest()
{
Enumerable.Range(1, 1).Select(x => x);
Assert.That(true);
}
}
}
// END FILE
If I build under 4.0, when I try to run the test, it fails to load
(TestFixtureSetup failed). If I build under 3.5 it works. If I comment
out the line beginning with "Enumerable" it works in both 3.5 and 4.0.
I tried referencing a newer NUnit (the MD built in one is quite old),
but that did not make any difference. Am I hitting known limitations
on what code can be tested when building for 4.0? Any comments
appreciated,
Matt
More information about the Monodevelop-list
mailing list