Hi!
Since I've updated my Visual Studio Premium 2012 to Update 2 (Version: 11.0.60315.01 Update2) following error message is shown when executing Unit-Tests:
Test method XY threw exception: Telerik.JustMock.MockException: Profiler must be enabled to mock/assert target XY method.
With Update 1 everything works fine. Thus, if I uninstall Update 2 the tests are running again. I've tried JustMock 2012.1.608.2 and JustMock Q1 2013 SP1.
Microsoft .NET Framework Version 4.5.50709
Unit-Test code
Exception when Unit-Test code is executed
This is a very important issue for me, because I want to migrate from Moles to JustMock.
Can anyone help?
Thank you!
Since I've updated my Visual Studio Premium 2012 to Update 2 (Version: 11.0.60315.01 Update2) following error message is shown when executing Unit-Tests:
Test method XY threw exception: Telerik.JustMock.MockException: Profiler must be enabled to mock/assert target XY method.
With Update 1 everything works fine. Thus, if I uninstall Update 2 the tests are running again. I've tried JustMock 2012.1.608.2 and JustMock Q1 2013 SP1.
Microsoft .NET Framework Version 4.5.50709
Unit-Test code
Line 10: Mock.SetupStatic(
typeof
(XY));
Line 11: Mock.Arrange(() => XY.XY()).Returns(
"xy"
);
Exception when Unit-Test code is executed
at Telerik.JustMock.Handlers.InterceptorHandler.Create(Object target, MethodInfo methodInfo, Boolean privateMethod)
at Telerik.JustMock.MockContext`1.SetupMock(MockExpression`1 expression)
at Telerik.JustMock.MockContext`1.SetupMock(Expression`1 expression)
at Telerik.JustMock.Mock.<>c__DisplayClass1`1.<Arrange>b__0(MockContext`1 x)
at Telerik.JustMock.MockContext.Setup(Instruction instruction, Func`2 function)
at Telerik.JustMock.Mock.Arrange(Expression`1 expression)
at XY()
in
XY.cs: line 11
This is a very important issue for me, because I want to migrate from Moles to JustMock.
Can anyone help?
Thank you!