From 859b05887415ffdb1453065ee37cf225ca869523 Mon Sep 17 00:00:00 2001 From: Stephane Delcroix Date: Wed, 14 Dec 2016 13:50:15 +0100 Subject: Xamlc compiled trigger (#629) * [XamlC] compiled Trigger * remove file header * name bool parameters --- Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs') diff --git a/Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs index 5fe61bee..79886f8f 100644 --- a/Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using Xamarin.Forms; using NUnit.Framework; +using Xamarin.Forms.Core.UnitTests; namespace Xamarin.Forms.Xaml.UnitTests { @@ -20,6 +21,18 @@ namespace Xamarin.Forms.Xaml.UnitTests [TestFixture] public class Tests { + [SetUp] + public void Setup() + { + Device.PlatformServices = new MockPlatformServices(); + } + + [TearDown] + public void TearDown() + { + Device.PlatformServices = null; + } + [TestCase (false)] [TestCase (true)] public void ValueIsConverted (bool useCompiledXaml) -- cgit v1.2.3