summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/Issues
diff options
context:
space:
mode:
authorChristian Schwarz <christian.schwarz@refactory.at>2016-05-27 13:58:21 +0200
committerRui Marinho <me@ruimarinho.net>2016-05-27 12:58:21 +0100
commitd1ab4e1ce8b77a6df1d9981db69eff156ee945a6 (patch)
treefea48d174c403e8090418bd16f5637e67b7b0dd2 /Xamarin.Forms.Xaml.UnitTests/Issues
parentbf7399d06815d906bde609e23ad48faa452390f0 (diff)
downloadxamarin-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/Issues')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml7
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml.cs33
2 files changed, 40 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml
new file mode 100644
index 00000000..cfa42575
--- /dev/null
+++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<forms:ContentPage xmlns="clr-namespace:Xamarin.Forms.Xaml.UnitTests;assembly=Xamarin.Forms.Xaml.UnitTests"
+ xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
+ xmlns:forms="http://xamarin.com/schemas/2014/forms"
+ x:Class="Xamarin.Forms.Xaml.UnitTests.Bz41296">
+ <forms:Label x:Name="TestLabel" Text="{AppendMarkupExtension Value0=Foo, Value1=Bar}" />
+</forms:ContentPage> \ No newline at end of file
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml.cs
new file mode 100644
index 00000000..f717d443
--- /dev/null
+++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Bz41296.xaml.cs
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+
+using Xamarin.Forms;
+using NUnit.Framework;
+
+namespace Xamarin.Forms.Xaml.UnitTests
+{
+ public partial class Bz41296 : ContentPage
+ {
+ public Bz41296()
+ {
+ InitializeComponent ();
+ }
+
+ public Bz41296(bool useCompiledXaml)
+ {
+ //this stub will be replaced at compile time
+ }
+
+ [TestFixture]
+ class Tests
+ {
+ [TestCase(true)]
+ [TestCase(false)]
+ public void MarkupExtensionInDefaultNamespace(bool useCompiledXaml)
+ {
+ var layout = new Bz41296 (useCompiledXaml);
+ Assert.AreEqual("FooBar", layout.TestLabel.Text.ToString());
+ }
+ }
+ }
+} \ No newline at end of file