Kris-I
unread,Nov 25, 2008, 8:15:25 AM11/25/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to galli...@googlegroups.com
Hello,
I use VS2008SP1 with SQLServer2008 installed on this PC with an Windows XP SP3.
I use TestDriven the latest beta (TestDriven.NET-2.17.2240) but I have the same trouble with the beta 2.16 and the latest stable.
I use "Gallio v3.0.5 build 546 - x86" and MbUnit V3
When I run the test below, the variable _provider is all the time null. When I copy the FixtureSetUp content in the test method no problem.
The FixtureSetUp is never executed.
Yesterday, at home, I had exactly the same problem, same software config but on Windows Vista SP1 64bits
I don't know how, after installation, remove, installation again , ..... that's work now, but I think it's not normal.
I installed in this order :
- Testdriven
- Gallio
At home I installed :
- MbUnit v2
- TestDriven
- Gallio
>>> same problem
namespace DAL.Test
{
[TestFixture]
public class Tests
{
private DAL.NHProvider _provider;
[Test]
public void CanGestCustomerByFirstName_BE()
{
Customer customerTest = new Customer();
customerTest.FirstName = "Orlando";
Assert.AreEqual(2, _provider.GetCustomerByFirstName_BE(customerTest).Count);
}
[FixtureSetUp]
public void InitializeAllTests()
{
_provider = new DAL.NHProvider();
}
}
}