diff options
author | Christian Schwarz <christian.schwarz@refactory.at> | 2016-05-27 13:58:21 +0200 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-05-27 12:58:21 +0100 |
commit | d1ab4e1ce8b77a6df1d9981db69eff156ee945a6 (patch) | |
tree | fea48d174c403e8090418bd16f5637e67b7b0dd2 /Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs | |
parent | bf7399d06815d906bde609e23ad48faa452390f0 (diff) | |
download | xamarin-forms-d1ab4e1ce8b77a6df1d9981db69eff156ee945a6.tar.gz xamarin-forms-d1ab4e1ce8b77a6df1d9981db69eff156ee945a6.tar.bz2 xamarin-forms-d1ab4e1ce8b77a6df1d9981db69eff156ee945a6.zip |
[Xaml] Fix MarkupExtension not found in default namespace (#183)
* [Xaml] Fix MarkupExtension not found in default namespace
* Fixed indentation
* Added XamlC unit test
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs')
-rw-r--r-- | Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs b/Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs index ebc32f4a..9d76c016 100644 --- a/Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs +++ b/Xamarin.Forms.Xaml.UnitTests/MarkupExtensionTests.cs @@ -158,6 +158,22 @@ namespace Xamarin.Forms.Xaml.UnitTests } [Test] + public void TestMarkupExtensionInDefaultNamespace () + { + var xaml = @" + <forms:Label + xmlns=""clr-namespace:Xamarin.Forms.Xaml.UnitTests;assembly=Xamarin.Forms.Xaml.UnitTests"" + xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"" + xmlns:forms=""http://xamarin.com/schemas/2014/forms"" + Text=""{AppendMarkupExtension Value0=Foo, Value1=Bar}"" + />"; + + var label = new Label(); + label.LoadFromXaml(xaml); + Assert.AreEqual("FooBar", label.Text.ToString()); + } + + [Test] public void TestDocumentationCode () { var xaml =@" |