We upgraded to Visual Studio 2013 and along with it, the latest version of JustMock (2013.3.1015.0)
After the upgrade, 3 of our tests started failing.
The code that kills it:
var sp = new ClaimsPrincipal();
Mock.Arrange(() => sp.FindFirst("CONTROLLER/CONTROLLER")).Returns(new Claim("CONTROLLER/CONTROLLER", "0"));
Mock.Arrange(() => System.Threading.Thread.CurrentPrincipal)
.IgnoreInstance()
.Returns(sp);
The exception it throws:
Telerik.JustMock.MockException: Type System.Threading.Thread does not support mocking of static members due to limitations in CLR.
It blows on the bolded line, which worked previously...
We have attached JustMock to 2013 CodeCoverage/Intellitrace profiler options, but there is no Visual Studio 2013 Profiler selectable as there was with VS2012. (I believe the elevated permissions are working as expected, because all of our other .Net mscorelib tests are passing fine)
Any thoughts?
After the upgrade, 3 of our tests started failing.
The code that kills it:
var sp = new ClaimsPrincipal();
Mock.Arrange(() => sp.FindFirst("CONTROLLER/CONTROLLER")).Returns(new Claim("CONTROLLER/CONTROLLER", "0"));
Mock.Arrange(() => System.Threading.Thread.CurrentPrincipal)
.IgnoreInstance()
.Returns(sp);
The exception it throws:
Telerik.JustMock.MockException: Type System.Threading.Thread does not support mocking of static members due to limitations in CLR.
It blows on the bolded line, which worked previously...
We have attached JustMock to 2013 CodeCoverage/Intellitrace profiler options, but there is no Visual Studio 2013 Profiler selectable as there was with VS2012. (I believe the elevated permissions are working as expected, because all of our other .Net mscorelib tests are passing fine)
Any thoughts?