using System.Linq; using NUnit.Framework; using Xamarin.Forms; using Xamarin.Forms.Xaml.UnitTests; using Xamarin.Forms.Core.UnitTests; namespace Xamarin.Forms.Xaml.UnitTests { public partial class StyleTests : ContentPage { public StyleTests () { InitializeComponent (); } public StyleTests (bool useCompiledXaml) { //this stub will be replaced at compile time } [TestFixture] public class Tests { [SetUp] public void SetUp () { Device.PlatformServices = new MockPlatformServices (); Application.Current = new MockApplication (); } [TestCase (false)] [TestCase (true)] public void TestStyle (bool useCompiledXaml) { var layout = new StyleTests (useCompiledXaml); Assert.That (layout.style0, Is.InstanceOf