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