Hi,
We have a really simple example where the first test will fail if the second test runs as well. We use TestDriven.NET to run all the tests in one file, and the first test below will fail. If we run that particular test on its own, it passes.
This is a big problem to say the least!
[TestFixture]
[ClearMocks]
public class TestItNow
{
[Test]
[VerifyMocks]
public void Test1()
{
ToolStripMenuItem item = new ToolStripMenuItem();
item.Tag = "test";
Assert.IsNotNull(item.Tag);
}
[Test]
[VerifyMocks]
public void Test2()
{
using (RecordExpectations recorder = RecorderManager.StartRecording())
{
ToolStripMenuItem menuItem = new ToolStripMenuItem();
menuItem.Tag = "test";
}
ToolStripMenuItem item = new ToolStripMenuItem();
item.Tag = "test";
}
}
Do you have any insight into this?
Cheers,
Rory
________
herbalaire vaporizer