diff options
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/Issues/Unreported001.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Issues/Unreported001.xaml.cs | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported001.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported001.xaml.cs new file mode 100644 index 00000000..d04ad467 --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported001.xaml.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; + +using Xamarin.Forms; +using NUnit.Framework; + +namespace Xamarin.Forms.Xaml.UnitTests +{ + public class U001Page : ContentPage + { + public U001Page () + { + ; + } + + } + + public partial class Unreported001 : TabbedPage + { + public Unreported001 () + { + InitializeComponent (); + } + + public Unreported001 (bool useCompiledXaml) + { + //this stub will be replaced at compile time + } + + [TestFixture] + public class Tests + { + [TestCase (false)] + [TestCase (true)] + public void DoesNotThrow (bool useCompiledXaml) + { + var p = new Unreported001 (useCompiledXaml); + Assert.That (p.navpage.CurrentPage, Is.TypeOf<U001Page> ()); + } + } + } +}
\ No newline at end of file |