Unplanned
Last Updated: 12 Jan 2022 08:39 by ADMIN
Mikhail
Created on: 12 Jan 2022 08:38
Type: Bug Report
1
Can not mock Interface contained Method with 'in' parameter

Mock.Create<IPool>() fails with 

 

Telerik.JustMock.Core.MockException : Abstract type 'IPool' is not accessible for inheritance.
   In Telerik.JustMock.Core.MocksRepository.Create(Type type, MockCreationSettings settings)
   In Telerik.JustMock.Mock.<>c__39`1.<Create>b__39_0()
   In Telerik.JustMock.Core.ProfilerInterceptor.GuardInternal[T](Func`1 guardedAction) 

when trying to create a mock object from

public interface IPool

    {
        object GetItem(in Struct a, out Class b);
    }

 

 

0 comments