summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/Issues/Issue2062.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/Issues/Issue2062.xaml.cs')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/Issues/Issue2062.xaml.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/Issues/Issue2062.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/Issues/Issue2062.xaml.cs
new file mode 100644
index 00000000..ff756756
--- /dev/null
+++ b/Xamarin.Forms.Xaml.UnitTests/Issues/Issue2062.xaml.cs
@@ -0,0 +1,32 @@
+using Xamarin.Forms;
+
+using NUnit.Framework;
+
+namespace Xamarin.Forms.Xaml.UnitTests
+{
+ public partial class Issue2062 : ContentPage
+ {
+ public Issue2062 ()
+ {
+ InitializeComponent ();
+ }
+
+ public Issue2062 (bool useCompiledXaml)
+ {
+ //this stub will be replaced at compile time
+ }
+
+ [TestFixture]
+ public class Tests
+ {
+ [TestCase (false)]
+ [TestCase (true)]
+ public void LabelWithoutExplicitPropertyElement (bool useCompiledXaml)
+ {
+ var layout = new Issue2062 (useCompiledXaml);
+ Assert.AreEqual ("text explicitly set to Label.Text", layout.label1.Text);
+ Assert.AreEqual ("text implicitly set to Text property of Label", layout.label2.Text);
+ }
+ }
+ }
+} \ No newline at end of file