summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-12-14 13:50:15 +0100
committerGitHub <noreply@github.com>2016-12-14 13:50:15 +0100
commit859b05887415ffdb1453065ee37cf225ca869523 (patch)
tree81eedba6697457fe124b72004aaf36ae463b18d0 /Xamarin.Forms.Xaml.UnitTests
parentd4792dc98dfca29849bedc21519d9cf9ae6f2cb6 (diff)
downloadxamarin-forms-859b05887415ffdb1453065ee37cf225ca869523.tar.gz
xamarin-forms-859b05887415ffdb1453065ee37cf225ca869523.tar.bz2
xamarin-forms-859b05887415ffdb1453065ee37cf225ca869523.zip
Xamlc compiled trigger (#629)
* [XamlC] compiled Trigger * remove file header * name bool parameters
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/TriggerTests.xaml.cs13
1 files changed, 13 insertions, 0 deletions
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)