Bug 28759 - unit testing some classes not possible due to You MUST call Xamarin.Forms.Init(); prior to using it.
Summary: unit testing some classes not possible due to You MUST call Xamarin.Forms.Ini...
Status: RESOLVED NOT_ON_ROADMAP
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.4.1
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-03 20:22 UTC by George Cook
Modified: 2016-04-08 19:32 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_ON_ROADMAP

Description George Cook 2015-04-03 20:22:43 UTC
would be great to be able to stub/mock this so we can unit test the parts of our controls which do not rely on the forms framework being initialized.


thanks.

and yes, I do follow mvvm; but even then, for custom controls it'd be nice to be able to quickly run unit tests without firing up a simulator.
thx
Comment 1 Jason Smith [MSFT] 2016-04-08 19:32:42 UTC
Thank you for your report. At this time there are no plans to implement any changes around this issue.

Warm regards,
Xamarin Forms Team