Stack Overflow Exception will be called when one is mocking static fields.
Here's the production code:
public abstract class WrapperClass
{
public MyRectSimple rec
{ get; set; }
}
public class MyRectSimple
{
public static MyRectSimple Empty = new MyRectSimple();
public double leftx
{ get; set; }
public double lefty
{ get; set; }
public double distanceX
{ get; set; }
public double distanceY
{ get; set; }
}
And here's the test code
[Test, Isolated]
public void TestRecursive()
{
WrapperClass sc = Isolate.Fake.Instance<WrapperClass>(Members.ReturnRecursiveFakes);
MyRectSimple rec = new MyRectSimple();
}
If you run using the test runner in TestDriven.net, you will get this error:
An existing connection was forcibly closed by the remote host
If you run under the debugger, you will get a stackoverflow exception.
Do solve this as this, along with the previous bug, urgent for me
________
buy no2