public void BooleanToInvertedBooleanConverter() { var converter = new BooleanToInvertedBooleanConverter(); Assert.AreEqual(false, converter.Convert(true, typeof(ConvertersTests), null, CultureInfo.CurrentCulture)); Assert.AreEqual(true, converter.Convert(false, typeof(ConvertersTests), null, CultureInfo.CurrentCulture)); }
// // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var converter = new BooleanToInvertedBooleanConverter(); //seems assembly cannot be found if type not instantiated before app loads :| Xamarin.Forms.DependencyService.Register <IAnalyseImageCommand, iOSAnalyseImageCommand>(); CrossMedia.Current.Initialize(); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); DependencyService.Register <ISaveFileStreamCommand, iOSSaveFileStreamCommand>(); DependencyService.Register <IResizeImageCommand, iOSImageResizeCommand>(); return(base.FinishedLaunching(app, options)); }