Hi,
When trying to run tests with TestDriven.Net i get the following exception:
An error occured executing PopulateHolidays method. ---> Telerik.JustMock.MockException: Exception has been thrown by the target of an invocation.
at ..( expecation, Object[] userArgs)
at ..( invocation)
at ..( invocation)
at ..( invocation)
at ..Intercept(MockInvocation invocation)
at Telerik.JustMock.Weaver.Interceptors.WeaverInterceptor.(IInvocation invocation)
at PersistenceManager_Interceptor_63dc8f881d054338ad4e199360304e8a.Intercept(PersistenceManager , Boolean& )
at PersistenceManager.GetCalendarData()
Though when running it with MSTest runner the breakpoint stops correctly on my function.
The code of the test is something like this:
Where GetCalendarData is the static method being mocked.
Any idea why this is happening?
When trying to run tests with TestDriven.Net i get the following exception:
An error occured executing PopulateHolidays method. ---> Telerik.JustMock.MockException: Exception has been thrown by the target of an invocation.
at ..( expecation, Object[] userArgs)
at ..( invocation)
at ..( invocation)
at ..( invocation)
at ..Intercept(MockInvocation invocation)
at Telerik.JustMock.Weaver.Interceptors.WeaverInterceptor.(IInvocation invocation)
at PersistenceManager_Interceptor_63dc8f881d054338ad4e199360304e8a.Intercept(PersistenceManager , Boolean& )
at PersistenceManager.GetCalendarData()
Though when running it with MSTest runner the breakpoint stops correctly on my function.
The code of the test is something like this:
Mock.Arrange(() => PersistenceManager.GetCalendarData()).Returns(() => myDataSet());
Where GetCalendarData is the static method being mocked.
Any idea why this is happening?