This is a migrated thread and some comments may be shown as answers.

JustMock support on Mono

1 Answer 97 Views
JustMock Free Edition
This is a migrated thread and some comments may be shown as answers.
Ioan Crisan
Top achievements
Rank 1
Ioan Crisan asked on 07 Dec 2016, 09:07 AM

I had a first try with JustMock on a Linux build machine (Jenkins) and xunit (Mono 4.6 is installed there). Unfortuntely, I get the following exception (one of them):

01.Tnsa.Foundation.Test.Composition.Internal.CompositionContextServiceProviderAdapterTest.GetService_ExportFactories_enumerable_generic_2_success [FAIL]
02.  System.Runtime.Remoting.RemotingException : Cannot get the real proxy from an object that is not a transparent proxy.
03.  Stack Trace:
04.      at System.Runtime.Remoting.RemotingServices.GetRealProxy (System.Object proxy) [0x0000b] in <94fd79a3b7144c54b4cb162b50fc7761>:0
05.      at Telerik.JustMock.Core.TransparentProxy.MockingProxy.GetRealProxy (System.Object instance) [0x00005] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
06.      at Telerik.JustMock.Core.TransparentProxy.MockingProxy.GetMockMixin (System.Object instance) [0x00000] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
07.      at Telerik.JustMock.Core.MocksRepository.GetMockMixinFromAnyMock (System.Object mock) [0x00000] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
08.      at Telerik.JustMock.Core.MocksRepository.GetMockMixin (System.Object obj, System.Type objType) [0x00000] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
09.      at Telerik.JustMock.Core.MocksRepository.ConvertExpressionToCallPattern (System.Linq.Expressions.Expression expr, Telerik.JustMock.Core.CallPattern callPattern) [0x00564] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
10.      at Telerik.JustMock.Core.MocksRepository.Arrange[TMethodMock] (System.Linq.Expressions.Expression expr, System.Func`1[TResult] methodMockFactory) [0x00049] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
11.      at Telerik.JustMock.Helpers.FluentHelper.DoArrange[TContainer] (System.Object obj, System.Type objType, System.Linq.Expressions.LambdaExpression expression, System.Func`1[TResult] containerFactory) [0x00036] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
12.      at Telerik.JustMock.Helpers.FluentHelper+<>c__DisplayClass2`2[T,TResult].<Arrange>b__0 () [0x0002e] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
13.      at Telerik.JustMock.Core.ProfilerInterceptor.GuardInternal[T] (System.Func`1[TResult] guardedAction) [0x0000c] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
14.      at Telerik.JustMock.Helpers.FluentHelper.Arrange[T,TResult] (T obj, System.Linq.Expressions.Expression`1[TDelegate] expression) [0x00020] in <45764d21e4e34d73b89fbb0a6b2e6054>:0
15.      at Tnsa.Foundation.Test.Composition.Internal.CompositionContextServiceProviderAdapterTest.GetService_ExportFactories_enumerable_generic_2_success () [0x0006f] in <e1aa8dcdd51045fda2db8ea7350c0c44>:0
16.      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
17.      at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <94fd79a3b7144c54b4cb162b50fc7761>:0

 

Is this scenario supported on Linux/Mono at all? Can I do something to make this work?

Thanks, Ioan

1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 12 Dec 2016, 08:13 AM
Hi,

Thank you for your interest in JustMock.

We don't have official support for Mono and we don't perform tests on it, so we can't really help you with that. I am really sorry about that. 

Let us know if you manage to make that work.

Regards,
Svetlozar
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
JustMock Free Edition
Asked by
Ioan Crisan
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Share this question
or