You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I used moq version 4.0.10827 to mock an Com object and when i upgrade to 4.2.1510.2205 i get an nonComVisibleBaseClass error when the test execute:
[Guid("0339CD56-9BA3-477D-801B-E5F73D37EABE")][TypeLibType(4160)]publicinterfaceIDaemonCli{// methods & propperties ...[DispId(1)]voidCloseLog();
....
}[CoClass(typeof(DaemonCliClass))][Guid("0339CD56-9BA3-477D-801B-E5F73D37EABE")]publicinterfaceDaemonCli:IDaemonCli{}[ClassInterface(0)][Guid("D94FBC81-06EC-4EAA-B73F-794051487691")][TypeLibType(2)]publicclassDaemonCliClass:IDaemonCli,DaemonCli{// ... definitions of all methods of the com obj[DispId(1)]publicvirtualvoidCloseLog();
....
}
The mock is created as this :
[TestClass][Serializable]publicabstractclassTest:IDisposable{protectedstaticMock<DaemonCli>DaemonClientMock{get;privateset;}staticTest(){Test.DaemonClientMock=newMock<DaemonCli>();// here are all the setup on the DaemonClientMock}
Hi,
I used moq version 4.0.10827 to mock an Com object and when i upgrade to 4.2.1510.2205 i get an nonComVisibleBaseClass error when the test execute:
The mock is created as this :
The mock is injected in the tested code as this :
The Exception is raised when the mock is used by the tested class:
Any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: