summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-11-16 22:05:28 +0100
committerJason Smith <jason.smith@xamarin.com>2016-11-16 13:05:28 -0800
commitacc6efb3d7d502d0a40020ec86eaff4d018de8be (patch)
treeb5187bdde475f568e5b267dfc8240c5cc9223db7 /Xamarin.Forms.Core.UnitTests
parent281bfa2b0a6de05130b87ad5c25f9bf8b05f876c (diff)
downloadxamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.tar.gz
xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.tar.bz2
xamarin-forms-acc6efb3d7d502d0a40020ec86eaff4d018de8be.zip
[W] Support 0 as valid BorderWidth (#537)
Diffstat (limited to 'Xamarin.Forms.Core.UnitTests')
-rw-r--r--Xamarin.Forms.Core.UnitTests/NotifiedPropertiesTests.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Xamarin.Forms.Core.UnitTests/NotifiedPropertiesTests.cs b/Xamarin.Forms.Core.UnitTests/NotifiedPropertiesTests.cs
index fcc9d976..1c81c45e 100644
--- a/Xamarin.Forms.Core.UnitTests/NotifiedPropertiesTests.cs
+++ b/Xamarin.Forms.Core.UnitTests/NotifiedPropertiesTests.cs
@@ -75,7 +75,7 @@ namespace Xamarin.Forms.Core.UnitTests
new PropertyTestCase<Button, string> ("Text", v => v.Text, (v, o) => v.Text = o, () => null, "Foo"),
new PropertyTestCase<Button, Color> ("TextColor", v => v.TextColor, (v, o) => v.TextColor = o, () => Color.Default, new Color (0, 1, 0)),
new PropertyTestCase<Button, Font> ("Font", v => v.Font, (v, o) => v.Font = o, () => default (Font), Font.SystemFontOfSize (20)),
- new PropertyTestCase<Button, double> ("BorderWidth", v => v.BorderWidth, (v, o) => v.BorderWidth = o, () => 0d, 16d),
+ new PropertyTestCase<Button, double> ("BorderWidth", v => v.BorderWidth, (v, o) => v.BorderWidth = o, () => -1d, 16d),
new PropertyTestCase<Button, int> ("BorderRadius", v => v.BorderRadius, (v, o) => v.BorderRadius = o, () => 5, 12),
new PropertyTestCase<Button, Color> ("BorderColor", v => v.BorderColor, (v, o) => v.BorderColor = o, () => Color.Default, new Color (0, 1, 0)),
new PropertyTestCase<Button, string> ("FontFamily", v => v.FontFamily, (v, o) => v.FontFamily = o, () => null, "TestingFace"),