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

JustMock support for Windows 10 UWP (RTM)

12 Answers 117 Views
JustMock Free Edition
This is a migrated thread and some comments may be shown as answers.
Davide
Top achievements
Rank 1
Davide asked on 07 Aug 2015, 12:27 PM

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

Sort by
0
Craig
Top achievements
Rank 1
answered on 07 Aug 2015, 01:04 PM
+1
0
Freddy
Top achievements
Rank 1
answered on 11 Aug 2015, 05:03 AM

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.
0
Stefan
Telerik team
answered on 12 Aug 2015, 12:55 PM
Hello all,

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
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
0
Stefan
Top achievements
Rank 1
answered on 03 Sep 2015, 08:09 PM

Hey Stefan,

is there any update/progress on this topic?

Kind regards,
Stefan

0
Stefan
Telerik team
answered on 04 Sep 2015, 07:54 AM
Hello 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
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
0
Carlos
Top achievements
Rank 1
answered on 31 Oct 2015, 02:55 PM

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

 

0
Iana Tsolova
Telerik team
answered on 04 Nov 2015, 09:08 AM
Hello,

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
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
0
Christopher
Top achievements
Rank 1
answered on 20 Nov 2015, 10:17 AM

Hi Iana, 

The link to the vote page does not work. Is there another page to add our vote ?

Thanks in advance, 
Christopher

0
Kaloyan
Telerik team
answered on 23 Nov 2015, 03:20 PM
Hello 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
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
0
Christopher
Top achievements
Rank 1
answered on 23 Nov 2015, 03:25 PM

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

0
Amit
Top achievements
Rank 1
answered on 12 May 2016, 10:52 AM
Is there any update for this topic ?
0
Svetlozar
Telerik team
answered on 17 May 2016, 09:34 AM
Hello,

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

Regards,
Svetlozar
Telerik
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
Davide
Top achievements
Rank 1
Answers by
Craig
Top achievements
Rank 1
Freddy
Top achievements
Rank 1
Stefan
Telerik team
Stefan
Top achievements
Rank 1
Carlos
Top achievements
Rank 1
Iana Tsolova
Telerik team
Christopher
Top achievements
Rank 1
Kaloyan
Telerik team
Amit
Top achievements
Rank 1
Svetlozar
Telerik team
Share this question
or