summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs
new file mode 100644
index 00000000..4728068f
--- /dev/null
+++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs
@@ -0,0 +1,37 @@
+using System.Collections.Generic;
+
+using Xamarin.Forms;
+using NUnit.Framework;
+
+namespace Xamarin.Forms.Xaml.UnitTests
+{
+ public class Bz36422Control : ContentView
+ {
+ public IList<ContentView> Views { get; set; }
+ }
+
+ public partial class Bz36422 : ContentPage
+ {
+ public Bz36422 ()
+ {
+ InitializeComponent ();
+ }
+
+ public Bz36422 (bool useCompiledXaml)
+ {
+ //this stub will be replaced at compile time
+ }
+
+ [TestFixture]
+ class Tests
+ {
+ [TestCase(true)]
+ [TestCase(false)]
+ public void xArrayCanBeAssignedToIListT (bool useCompiledXaml)
+ {
+ var layout = new Bz36422 (useCompiledXaml);
+ Assert.AreEqual (3, layout.control.Views.Count);
+ }
+ }
+ }
+} \ No newline at end of file