diff options
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/Issues/Issue1213.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Issues/Issue1213.xaml.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Issue1213.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Issue1213.xaml.cs new file mode 100644 index 00000000..d89203b7 --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Issue1213.xaml.cs @@ -0,0 +1,34 @@ +using System; +using System.Collections.Generic; + +using Xamarin.Forms; + +using NUnit.Framework; + +namespace Xamarin.Forms.Xaml.UnitTests +{ + public partial class Issue1213 : TabbedPage + { + public Issue1213 () + { + InitializeComponent (); + } + + public Issue1213 (bool useCompiledXaml) + { + //this stub will be replaced at compile time + } + + [TestFixture] + public class Tests + { + [TestCase(false)] + [TestCase(true)] + public void MultiPageAsContentPropertyAttribute (bool useCompiledXaml) + { + var page = new Issue1213 (useCompiledXaml); + Assert.AreEqual (2, page.Children.Count); + } + } + } +}
\ No newline at end of file |