diff options
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/Issues')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml | 5 | ||||
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml.cs | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml new file mode 100644 index 00000000..283ec9b9 --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml @@ -0,0 +1,5 @@ +<?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="Foo.Xamarin.Bar.Bz43301"> + <ContentPage.Content> + </ContentPage.Content> +</ContentPage> diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml.cs new file mode 100644 index 00000000..e57f42d1 --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz43301.xaml.cs @@ -0,0 +1,31 @@ +using Xamarin.Forms; +using NUnit.Framework; + +namespace Foo.Xamarin.Bar +{ + public partial class Bz43301 : ContentPage + { + public Bz43301() + { + InitializeComponent(); + } + + public Bz43301(bool useCompiledXaml) + { + //this stub will be replaced at compile time + } + + [TestFixture] + class Tests + { + [TestCase(true)] + [TestCase(false)] + //No need for any actual [Test]. If this compiles, the bug is fixed. + public void DoesCompile(bool useCompiledXaml) + { + var layout = new Bz43301(useCompiledXaml); + Assert.Pass(); + } + } + } +}
\ No newline at end of file |