The current version of Telerik JustMock Lite does not appear to be supported on the Windows 10 UWP (RTM) platform.
(1) Can you confirm if there is active work underway for JustMock Lite to support this platform?
(2) Can you provide an indication of the estimated release date? I’ll need to make a call to determine if we need to switch to a different mocking framework depending on these timelines.
Background info
Note that UWP (Universal Windows Platform) was referred to as UAP (Universal App Platform) before RTM was released. UWP is the correct term to use for the platform going forwards. Initial project development was on a Windows 10 Universal App (UAP) project in Visual Studio 2015 RC 14.0.22823.1 (Windows 8.1 OS). We can confirm that the mocking behaviour was working with these pre-release tools. After upgrading Windows and Visual Studio from Technical Preview (UAP) to RTM (UWP), we now experience warnings during build output and any tests with mocking behaviour no longer run (throws exception).
Product versions
Microsoft Windows 10 Professional - 10.0.10240.16384 RTM x64 (2015/07/15)
Microsoft Visual Studio 2015 - 14.0.23107.10 RTM (2015/07/10)
Telerik JustMock Lite - 2015.2.715.1 (2015/07/15)
Sample code snippet
1.
[TestMethod]
2.
public
void
ExampleTest()
3.
{
4.
// This line throws an exception.
5.
var mockLogger = Mock.Create<ILogger>(Behavior.Loose);
6.
}
Sample build warning output
C:\Program Files (x86)\Telerik\JustMock Lite\Libraries\Telerik.JustMock.dll : warning MSB3817: The assembly "C:\Program Files (x86)\Telerik\JustMock Lite\Libraries\Telerik.JustMock.dll" does not have a NeutralResourcesLanguageAttribute on it. To be used in an app package, portable libraries must define a NeutralResourcesLanguageAttribute on their main assembly (ie, the one containing code, not a satellite assembly).
Sample debug console output
Exception thrown: 'System.IO.FileLoadException' in MyProj.Win10.Tests.exe
An exception of type 'System.IO.FileLoadException' occurred in MyProj.Win10.Tests.exe but was not handled in user code
Additional information: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
HResult: -2146234304
Source: Telerik.JustMock
Stacktrace: at Telerik.JustMock.Mock.Create[T](Behavior behavior), at MyProj.Win10.ExampleTest()
Your feedback would be much appreciated.
Thanks,
Davide
12 Answers, 1 is accepted


Hello
We are start building app for UAP Win10. Would like to use JustMock, have used it before and it is good. When is JustMock working with Win10?
Thank you.We're currently researching the possibility to provide a NETCore build for JustMock. The main probable deal-breaker is Castle's DynamicProxy and whether UWP will support Reflection.Emit
Regardless of whether dynamic code generation works, JustMock Lite can be made to work. We just need some additional time to examine the details.
Regards,
Stefan
Telerik

Hey Stefan,
is there any update/progress on this topic?
Kind regards,
Stefan
We have some preliminary data available.
It seems that it will be easy to get JustMock Portable (a.k.a. JustMock for Devices) to run on UWP, but that may be of little comfort, because it is only available as part of the paid offering. We have not yet started work on this prospect and I cannot say for sure whether it will be done for Q3 or not.
JustMock Lite will be substantially harder to port to UWP. Not impossible, but time-consuming. At any rate it is very likely that it won't be done for Q3.
Regards,
Stefan
Telerik

I like to purchase JustMocks but I need it to work in Windows Universal Apps.
Is it available for UAP ? if not, whats the ETA ?
thanks
UAP is not supported by JustMock and it is not on our roadmap yet. We are still collecting requests for it. You can vote for the feature request in our portal to increase its priority.
Regards,
Iana Tsolova
Telerik

Hi Iana,
The link to the vote page does not work. Is there another page to add our vote ?
Thanks in advance,
Christopher
The provided link works okay for me. However, here is the exact url of the feature request:
http://feedback.telerik.com/Project/105/Feedback/Details/166073-support-windows-10-uwp-uap-unit-test-projects
Please, let me know if it doesn't work as well.
Regards,
Kaloyan
Telerik

Hello Kaloyan,
In fact, yes, the link is working, but only when I'm logged out.
When I'm sign-in (to add my vote), I got to an error page.
Regards,
Christopher

I am afraid no. UWP support is high on our list, but I can not promise you anything yet.
Regards,
Svetlozar
Telerik