summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue2983.cs
blob: 81d7a83e753cd9c9a63bdb33c37ca0018fcb7ba5 (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
using Xamarin.Forms.CustomAttributes;
using Xamarin.Forms.Internals;

#if UITEST
using NUnit.Framework;
#endif

namespace Xamarin.Forms.Controls.TestCasesPages
{
	[Preserve (AllMembers = true)]
	[Issue(IssueTracker.Github, 2983, "ListView.Footer can cause NullReferenceException", PlatformAffected.iOS)]
	public class Issue2983 : TestContentPage
	{
		protected override void Init ()
		{
			Content = new ListView {
				Footer = new StackLayout {
					Children = {new Label {Text = "Footer", AutomationId = "footer"}}
				}
			};
		}

#if UITEST
		[Test]
		public void TestDoesNotCrash ()
		{
			RunningApp.WaitForElement (c => c.Marked ("footer"));
		}
#endif
	}
}