diff options
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/Issues/Bz28545.xaml.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/Issues/Bz28545.xaml.cs | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Bz28545.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz28545.xaml.cs new file mode 100644 index 00000000..794e7ce1 --- /dev/null +++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz28545.xaml.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; + +using Xamarin.Forms; + +using NUnit.Framework; + +namespace Xamarin.Forms.Xaml.UnitTests +{ + public partial class Bz28545 : ContentPage + { + public Bz28545 () + { + InitializeComponent (); + } + + public Bz28545 (bool useCompiledXaml) + { + //this stub will be replaced at compile time + } + + [TestFixture] + class Tests + { + [TestCase(true)] + [TestCase(false)] + public void TypeConverterAreAppliedForSettersToAttachedBP (bool useCompiledXaml) + { + var layout = new Bz28545 (useCompiledXaml); + Assert.AreEqual (Color.Pink, layout.label.TextColor); + Assert.AreEqual (AbsoluteLayoutFlags.PositionProportional, AbsoluteLayout.GetLayoutFlags (layout.label)); + Assert.AreEqual (new Rectangle (1, 1, AbsoluteLayout.AutoSize, AbsoluteLayout.AutoSize), AbsoluteLayout.GetLayoutBounds (layout.label)); + } + } + } +}
\ No newline at end of file |