From 0dc9fed3f98ae3eba7ff4e8052a55666a14da32d Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Thu, 1 Dec 2016 23:39:47 +0100 Subject: [PATCH] fix the tests --- Xamarin.Forms.Xaml.UnitTests/Issues/Unreported007.xaml.cs | 2 -- Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs | 4 ---- 2 files changed, 6 deletions(-) diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported007.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported007.xaml.cs index 279deed..3d488be 100644 --- a/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported007.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported007.xaml.cs @@ -35,8 +35,6 @@ namespace Xamarin.Forms.Xaml.UnitTests [TestCase(true), TestCase(false)] public void ConstraintsAreEvaluatedWithOnPlatform(bool useCompiledXaml) { - if (useCompiledXaml) - MockCompiler.Compile(typeof(Unreported007)); Device.OS = TargetPlatform.iOS; var page = new Unreported007(useCompiledXaml); Assert.That(RelativeLayout.GetXConstraint(page.label), Is.TypeOf()); diff --git a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs index 0f632e3..d8c7d2c 100644 --- a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs @@ -300,10 +300,6 @@ namespace Xamarin.Forms.Xaml.UnitTests [TestCase(true)] public void NonIntEnums(bool useCompiledXaml) { - if (useCompiledXaml) { - MockCompiler.Compile(typeof(SetValue)); - return; - } var page = new SetValue(useCompiledXaml); Assert.AreEqual(IntEnum.Foo, page.enums.IntEnum); Assert.AreEqual(ByteEnum.Bar, page.enums.ByteEnum); -- 2.7.4