blob: 41f00ab8348b7078ab59ad186613666845c83d4b (
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
|
using System;
using NUnit.Framework;
namespace Xamarin.Forms.Xaml.UnitTests
{
[TestFixture]
public class Issue1493
{
[Test]
//mostly happens in european cultures
[SetCulture ("fr-FR")]
public void CultureInvariantNumberParsing ()
{
var xaml = @"<?xml version=""1.0"" encoding=""utf-8"" ?>
<View
xmlns=""http://xamarin.com/schemas/2014/forms""
xmlns:x=""http://schemas.microsoft.com/winfx/2009/xaml""
RelativeLayout.HeightConstraint=""{ConstraintExpression Type=RelativeToParent, Property=Height, Factor=0.25}""
RelativeLayout.WidthConstraint=""{ConstraintExpression Type=RelativeToParent, Property=Width, Factor=0.6}""/>";
View view = new View ();
view.LoadFromXaml (xaml);
Assert.DoesNotThrow (() => view.LoadFromXaml (xaml));
}
}
}
|