I have a unit test that, when run via the Resharper test runner (which uses NUnit), passes. However, if I run the same test via the nunit-console (as executed by PartCover), I get the following error:
Test Error : Core.Busi.Unit_Tests.MILSearchJustMockTests.TestGetRetiredItemByID_JustMock
Telerik.JustMock.MockException : There were some problems intercepting the mock call. Optionally, please make sure that you have turned on JustMock's profiler while mocking concrete members.
at Telerik.JustMock.Expectations.Expectation.?(Invocation invocation) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Expectations\Expectation.cs:line 37
at Telerik.JustMock.Expectations.Expectation.Process[TResult](Invocation invocation) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Expectations\Expectation.cs:line 18
at Telerik.JustMock.Mock..?.?(? x) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Mock.cs:line 75
at ?.?.?[?,?]( instruction, Func`2 function) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\MockContext.cs:line 238
at Telerik.JustMock.Mock.Arrange[TResult](Expression`1 expression) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Mock.cs:line 72
at Core.Busi.Unit_Tests.MILSearchJustMockTests.SetupMocks() in C:\sd\Trunk\core\Asm\Busi\Busi\Unit Tests\MILSearch.JustMock.cs:line 51
I made sure the JustMock is enabled. I even recompiled the PartCover.dll with the instructions mentioned here, but I still get the same issue. Is there something I need to register to run the console version of nunit/PartCover?
Please let me know if you need more information. Thanks!
at Core.Busi.Unit_Tests.MILSearchJustMockTests.TestGetRetiredItemByID_JustMock() in C:\sd\Trunk\core\Asm\Busi\Busi\Unit Tests\MILSearch.JustMock.cs:line 67
Test Error : Core.Busi.Unit_Tests.MILSearchJustMockTests.TestGetRetiredItemByID_JustMock
Telerik.JustMock.MockException : There were some problems intercepting the mock call. Optionally, please make sure that you have turned on JustMock's profiler while mocking concrete members.
at Telerik.JustMock.Expectations.Expectation.?(Invocation invocation) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Expectations\Expectation.cs:line 37
at Telerik.JustMock.Expectations.Expectation.Process[TResult](Invocation invocation) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Expectations\Expectation.cs:line 18
at Telerik.JustMock.Mock..?.?(? x) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Mock.cs:line 75
at ?.?.?[?,?]( instruction, Func`2 function) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\MockContext.cs:line 238
at Telerik.JustMock.Mock.Arrange[TResult](Expression`1 expression) in c:\B\Basilisk\Basilisk CI Build\Sources\CodeBase\Telerik.JustMock\Mock.cs:line 72
at Core.Busi.Unit_Tests.MILSearchJustMockTests.SetupMocks() in C:\sd\Trunk\core\Asm\Busi\Busi\Unit Tests\MILSearch.JustMock.cs:line 51
I made sure the JustMock is enabled. I even recompiled the PartCover.dll with the instructions mentioned here, but I still get the same issue. Is there something I need to register to run the console version of nunit/PartCover?
Please let me know if you need more information. Thanks!
at Core.Busi.Unit_Tests.MILSearchJustMockTests.TestGetRetiredItemByID_JustMock() in C:\sd\Trunk\core\Asm\Busi\Busi\Unit Tests\MILSearch.JustMock.cs:line 67