diff options
author | Stephane Delcroix <stephane@delcroix.org> | 2017-04-07 09:48:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 09:48:17 +0200 |
commit | 5ea000a76d03a5328fe18761fbdf8b05e26a170b (patch) | |
tree | 128b2a0f74276be3081c3cada0716ad9bf64fa46 /Xamarin.Forms.Core.UnitTests | |
parent | 5f2796e160f99bad31c1b06a2d1f328b5ed02ba3 (diff) | |
download | xamarin-forms-5ea000a76d03a5328fe18761fbdf8b05e26a170b.tar.gz xamarin-forms-5ea000a76d03a5328fe18761fbdf8b05e26a170b.tar.bz2 xamarin-forms-5ea000a76d03a5328fe18761fbdf8b05e26a170b.zip |
[Xaml] Set the TargetProperty on ServiceProvider (#847)
Diffstat (limited to 'Xamarin.Forms.Core.UnitTests')
-rw-r--r-- | Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs b/Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs index 69c3e32a..23b7c2db 100644 --- a/Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs +++ b/Xamarin.Forms.Core.UnitTests/BaseTestFixture.cs @@ -11,6 +11,8 @@ namespace Xamarin.Forms.Core.UnitTests [SetUp] public virtual void Setup () { + Device.PlatformServices = new MockPlatformServices(); + #if !WINDOWS_PHONE var culture = Environment.GetEnvironmentVariable ("UNIT_TEST_CULTURE"); @@ -24,7 +26,7 @@ namespace Xamarin.Forms.Core.UnitTests [TearDown] public virtual void TearDown () { - + Device.PlatformServices = null; } } } |