using System; using System.Collections.Generic; using NUnit.Framework; using Xamarin.Forms; namespace Xamarin.Forms.Xaml.UnitTests { public partial class XamlLoaderGetXamlForTypeTests : ContentPage { public XamlLoaderGetXamlForTypeTests() { InitializeComponent(); } public XamlLoaderGetXamlForTypeTests(bool useCompiledXaml) { //this stub will be replaced at compile time } [TestFixture] public class Tests { [SetUp] public void SetUp() { #pragma warning disable 0618 Xamarin.Forms.Xaml.Internals.XamlLoader.XamlFileProvider = null; #pragma warning restore 0618 } [TestCase(false)] [TestCase(true)] public void XamlContentIsReplaced(bool useCompiledXaml) { var layout = new XamlLoaderGetXamlForTypeTests(useCompiledXaml); Assert.That(layout.Content, Is.TypeOf