using System; using System.Linq; using NUnit.Framework; using System.Collections.Generic; using Xamarin.Forms.Core.UnitTests; namespace Xamarin.Forms.Xaml.UnitTests { public class BasePage : ContentPage { } [TestFixture] public class TestCases { [SetUp] public void Setup () { Device.PlatformServices = new MockPlatformServices (); } [TearDown] public void Teardown () { Device.PlatformServices = null; } public static readonly BindableProperty InnerViewProperty = #pragma warning disable 618 BindableProperty.CreateAttached (bindable => GetInnerView (bindable), default(View)); #pragma warning restore 618 public static View GetInnerView (BindableObject bindable) { return (View)bindable.GetValue (InnerViewProperty); } public static void SetInnerView (BindableObject bindable, View value) { bindable.SetValue (InnerViewProperty, value); } [Test] public void TestCase001 () { var xaml = @" "; var contentPage = new ContentPage ().LoadFromXaml (xaml); var label0 = contentPage.FindByName