blob: e57f42d1c370302a821b9622f20ccce2cb5d2c06 (
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;
using NUnit.Framework;
namespace Foo.Xamarin.Bar
{
public partial class Bz43301 : ContentPage
{
public Bz43301()
{
InitializeComponent();
}
public Bz43301(bool useCompiledXaml)
{
//this stub will be replaced at compile time
}
[TestFixture]
class Tests
{
[TestCase(true)]
[TestCase(false)]
//No need for any actual [Test]. If this compiles, the bug is fixed.
public void DoesCompile(bool useCompiledXaml)
{
var layout = new Bz43301(useCompiledXaml);
Assert.Pass();
}
}
}
}
|