summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/Issues/Bz36422.xaml.cs
blob: 4728068f21a642c32513146138567849a0a7f44a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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);
			}
		}
	}
}