blob: 738e1cee1c5dcf0179486bf098c2141b1208636b (
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
32
33
34
35
36
37
38
39
40
|
using System;
using System.Collections.Generic;
using NUnit.Framework;
using Xamarin.Forms;
namespace Xamarin.Forms.Xaml.UnitTests
{
public class Bz47950Behavior : Behavior<View>
{
public static readonly BindableProperty ColorTestProperty =
BindableProperty.CreateAttached("ColorTest", typeof(Color), typeof(View), default(Color));
public static Color GetColorTest(BindableObject bindable) => (Color)bindable.GetValue(ColorTestProperty);
public static void SetColorTest(BindableObject bindable, Color value) => bindable.SetValue(ColorTestProperty, value);
}
public partial class Bz47950 : ContentPage
{
public Bz47950()
{
InitializeComponent();
}
public Bz47950(bool useCompiledXaml)
{
//this stub will be replaced at compile time
}
[TestFixture]
class Tests
{
[TestCase(true)]
[TestCase(false)]
public void BehaviorAndStaticResource(bool useCompiledXaml)
{
var page = new Bz47950(useCompiledXaml);
}
}
}
}
|