Go vote up this one... http://silverlight.codeplex.com/workitem/7143
My test method gets called twice by statlight. The following code is a very simple repro:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace StatlightDoubleRunRepro
{
[TestClass]
public class Tests
{
static int calls = 0;
[TestMethod]
public void TestMethod1()
{
calls++;
Console.Out.WriteLine("Calls = {0}", calls);
}
}
}
Any idea how I can prevent this?
Comments: ** Comment from web user: EVM **
My test method gets called twice by statlight. The following code is a very simple repro:
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace StatlightDoubleRunRepro
{
[TestClass]
public class Tests
{
static int calls = 0;
[TestMethod]
public void TestMethod1()
{
calls++;
Console.Out.WriteLine("Calls = {0}", calls);
}
}
}
Any idea how I can prevent this?
Comments: ** Comment from web user: EVM **
GDay guys,
look my post here, maybe this will work for you
http://itcrank.blogspot.com.au/2012/02/dodgy-silverlight-unittest-system.html