public void TestXamlParserAndGenerator(bool useCompiledXaml) { Gh2691 issue2691 = new Gh2691(useCompiledXaml); // http://xamarin.com/schemas/2014/forms/customurl1 -> Xamarin.Forms.Controls.CustomNamespace1 var button = issue2691.FindByName("_testButton1") as Controls.CustomNamespace1.CustomButton; Assert.IsNotNull(button); // http://xamarin.com/schemas/2014/forms/customurl1 -> Xamarin.Forms.Controls.CustomNamespace2 var label1 = issue2691.FindByName("_testLabel1") as Controls.CustomNamespace2.CustomLabel; Assert.IsNotNull(label1); // http://xamarin.com/schemas/2014/forms/customurl2 -> Xamarin.Forms.Controls.CustomNamespace3 var label2 = issue2691.FindByName("_testLabel2") as Controls.CustomNamespace3.CustomLabel; Assert.IsNotNull(label2); // http://xamarin.com/schemas/2014/forms/customurl2 -> Xamarin.Forms.Controls.CustomNamespace3 var stack = issue2691.FindByName("_testStackLayout") as Controls.CustomNamespace3.CustomStackLayout; Assert.IsNotNull(stack); // clr-namespace:Xamarin.Forms.Controls.CustomNamespace1;assembly=Xamarin.Forms.Controls var button2 = issue2691.FindByName("_testButton2") as Controls.CustomNamespace1.CustomButton; Assert.IsNotNull(button2); // using:Xamarin.Forms.Xaml.UnitTests var label3 = issue2691.FindByName("_testLabel3") as Gh2691TestUsingSyntaxLabel; Assert.IsNotNull(label3); }
public void TestXamlParserAndGenerator(bool useCompiledXaml) { Gh2691 issue2691 = new Gh2691(useCompiledXaml); var label = issue2691.FindByName("_testLabel") as TestLabel; Assert.IsNotNull(label); }