public void ShouldntBeCompiled()
            {
                Internals.XamlLoader.XamlFileProvider = (t) => {
                    if (t == typeof(DefaultCtorRouting2))
                    {
                        return(@"<?xml version=""1.0"" encoding=""UTF-8""?>
<ContentPage xmlns=""http://xamarin.com/schemas/2014/forms""
	xmlns:x=""http://schemas.microsoft.com/winfx/2009/xaml""
	x:Class=""Xamarin.Forms.Xaml.UnitTests.DefaultCtorRouting2""
	IsCompiled=""IsCompiled?"">
</ContentPage>");
                    }
                    return(null);
                };
                var p = new DefaultCtorRouting2();

                Assert.False(p.IsCompiled);
            }
Ejemplo n.º 2
0
            public void ShouldBeCompiled()
            {
                var p = new DefaultCtorRouting2();

                Assert.True(p.IsCompiled);
            }