maui-linux/Xamarin.Forms.Xaml.UnitTests/Issues/Unreported001.xaml.cs

42 строки
701 B
C#

using System;
using System.Collections.Generic;
using Xamarin.Forms;
using NUnit.Framework;
namespace Xamarin.Forms.Xaml.UnitTests
{
public class U001Page : ContentPage
{
public U001Page ()
{
;
}
}
public partial class Unreported001 : TabbedPage
{
public Unreported001 ()
{
InitializeComponent ();
}
public Unreported001 (bool useCompiledXaml)
{
//this stub will be replaced at compile time
}
[TestFixture]
public class Tests
{
[TestCase (false)]
[TestCase (true)]
public void DoesNotThrow (bool useCompiledXaml)
{
var p = new Unreported001 (useCompiledXaml);
Assert.That (p.navpage.CurrentPage, Is.TypeOf<U001Page> ());
}
}
}
}