summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-11-17 20:31:05 +0100
committerGitHub <noreply@github.com>2016-11-17 20:31:05 +0100
commit054ecf2704ac5d736ffb97c2932e1e078041008a (patch)
tree6e11e80a370b9ed96c473a03ecc4bbdfefa62cbe /Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
parent122f0e3e6060711d6c3b2b8523236b8a057434df (diff)
downloadxamarin-forms-054ecf2704ac5d736ffb97c2932e1e078041008a.tar.gz
xamarin-forms-054ecf2704ac5d736ffb97c2932e1e078041008a.tar.bz2
xamarin-forms-054ecf2704ac5d736ffb97c2932e1e078041008a.zip
[Xaml] cleanup xmlns usage, add XmlnsDefinition (#531)
* [Xaml] cleanup xmlns usage, add XmlnsDefinition * docs
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs b/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
index f132b19c..4d3e004a 100644
--- a/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
+++ b/Xamarin.Forms.Xaml.UnitTests/LoaderTests.cs
@@ -381,9 +381,9 @@ namespace Xamarin.Forms.Xaml.UnitTests
[Test]
public void MissingStaticResourceShouldThrow ()
{
- var xaml = @"<Label Text=""{StaticResource foo}""/>";
+ var xaml = @"<Label xmlns=""http://xamarin.com/schemas/2014/forms"" Text=""{StaticResource foo}""/>";
var label = new Label ();
- Assert.Throws (new XamlParseExceptionConstraint (1, 8), () => label.LoadFromXaml (xaml));
+ Assert.Throws (new XamlParseExceptionConstraint (1, 54), () => label.LoadFromXaml (xaml));
}
public class CustView : Button
@@ -605,7 +605,7 @@ namespace Xamarin.Forms.Xaml.UnitTests
public void TestCollectionContentProperties ()
{
var xaml = @"
- <StackLayout>
+ <StackLayout xmlns=""http://xamarin.com/schemas/2014/forms"">
<Label Text=""Foo""/>
<Label Text=""Bar""/>
</StackLayout>";
@@ -619,7 +619,7 @@ namespace Xamarin.Forms.Xaml.UnitTests
public void TestCollectionContentPropertiesWithSingleElement ()
{
var xaml = @"
- <StackLayout>
+ <StackLayout xmlns=""http://xamarin.com/schemas/2014/forms"">
<Label Text=""Foo""/>
</StackLayout>";
var layout = new StackLayout ().LoadFromXaml (xaml);
@@ -796,7 +796,7 @@ namespace Xamarin.Forms.Xaml.UnitTests
public void StyleWithoutTargetTypeThrows ()
{
var xaml = @"
- <Label>
+ <Label xmlns=""http://xamarin.com/schemas/2014/forms"">
<Label.Style>
<Style>
<Setter Property=""Text"" Value=""Foo"" />