using System; using System.Collections.Generic; using Xamarin.Forms; using NUnit.Framework; namespace Xamarin.Forms.Xaml.UnitTests { public class Issue2742BasePage : ContentPage { } public partial class Issue2742 : Issue2742BasePage { public Issue2742 () { InitializeComponent (); } public Issue2742 (bool useCompiledXaml) { //this stub will be replaced at compile time } [TestFixture] public class Tests { [TestCase (false)] [TestCase (true)] public void ToolBarItemsOnContentPageInheritors (bool useCompiledXaml) { var layout = new Issue2742 (useCompiledXaml); Assert.That (layout.Content, Is.TypeOf