diff options
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/XamlLoaderGetXamlForTypeTests.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/XamlLoaderGetXamlForTypeTests.xaml.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/XamlLoaderGetXamlForTypeTests.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/XamlLoaderGetXamlForTypeTests.xaml.cs index 10c3f2e2..dcffb3c5 100644 --- a/Xamarin.Forms.Xaml.UnitTests/XamlLoaderGetXamlForTypeTests.xaml.cs +++ b/Xamarin.Forms.Xaml.UnitTests/XamlLoaderGetXamlForTypeTests.xaml.cs @@ -25,7 +25,10 @@ namespace Xamarin.Forms.Xaml.UnitTests [SetUp] public void SetUp() { +#pragma warning disable 0618 Xamarin.Forms.Xaml.Internals.XamlLoader.XamlFileProvider = null; +#pragma warning restore 0618 + } [TestCase(false)] @@ -35,7 +38,9 @@ namespace Xamarin.Forms.Xaml.UnitTests var layout = new XamlLoaderGetXamlForTypeTests(useCompiledXaml); Assert.That(layout.Content, Is.TypeOf<Button>()); +#pragma warning disable 0618 Xamarin.Forms.Xaml.Internals.XamlLoader.XamlFileProvider = (t) => { +#pragma warning restore 0618 if (t == typeof(XamlLoaderGetXamlForTypeTests)) return @" <ContentPage xmlns=""http://xamarin.com/schemas/2014/forms"" |