summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/McIgnorable.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/McIgnorable.xaml.cs')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/McIgnorable.xaml.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/McIgnorable.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/McIgnorable.xaml.cs
new file mode 100644
index 00000000..f1c4aa6f
--- /dev/null
+++ b/Xamarin.Forms.Xaml.UnitTests/McIgnorable.xaml.cs
@@ -0,0 +1,29 @@
+using NUnit.Framework;
+
+namespace Xamarin.Forms.Xaml.UnitTests
+{
+ public partial class McIgnorable : ContentPage
+ {
+ public McIgnorable ()
+ {
+ InitializeComponent ();
+ }
+
+ public McIgnorable (bool useCompiledXaml)
+ {
+ //this stub will be replaced at compile time
+ }
+
+
+ [TestFixture]
+ public class Tests
+ {
+ [TestCase (false)]
+ [TestCase (true)]
+ public void DoesNotThrow (bool useCompiledXaml)
+ {
+ var layout = new McIgnorable (useCompiledXaml);
+ }
+ }
+ }
+} \ No newline at end of file