blob: 3813f73a6083ba70ae3b342e0c61d07ac4f5c1d8 (
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
|
using System;
using NUnit.Framework;
namespace Xamarin.Forms.Xaml.UnitTests
{
[TestFixture]
public class Issue1497
{
[Test]
public void BPCollectionsWithSingleElement ()
{
var xaml = @"<?xml version=""1.0"" encoding=""utf-8"" ?>
<Grid
xmlns=""http://xamarin.com/schemas/2014/forms""
xmlns:x=""http://schemas.microsoft.com/winfx/2009/xaml"">
<Grid.ColumnDefinitions>
<ColumnDefinition Width=""*""/>
</Grid.ColumnDefinitions>
</Grid>";
var grid = new Grid ().LoadFromXaml (xaml);
Assert.AreEqual (1, grid.ColumnDefinitions.Count);
Assert.True (grid.ColumnDefinitions [0].Width.IsStar);
}
}
}
|