Quantcast
Channel: StatLight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 37

Commented Issue: Statlight runs 1st test method multiple times [11906]

$
0
0
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 **

GDay guys,

look my post here, maybe this will work for you

http://itcrank.blogspot.com.au/2012/02/dodgy-silverlight-unittest-system.html


Viewing all articles
Browse latest Browse all 37

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>