summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-12-07 11:35:32 +0100
committerGitHub <noreply@github.com>2016-12-07 11:35:32 +0100
commit7851541ab67c1e3c1d38b3210a1153d08ce78ab2 (patch)
tree55efc79b32a427f5a4cc1674a3566ef2e2a507c3 /Xamarin.Forms.Xaml.UnitTests
parent8181e6d4cbe8aac6eb29c5140262d8bc51dba7b7 (diff)
downloadxamarin-forms-7851541ab67c1e3c1d38b3210a1153d08ce78ab2.tar.gz
xamarin-forms-7851541ab67c1e3c1d38b3210a1153d08ce78ab2.tar.bz2
xamarin-forms-7851541ab67c1e3c1d38b3210a1153d08ce78ab2.zip
[Xaml[C]] support op_implicit declared on Target (#585)
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/SetValue.xaml4
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs28
2 files changed, 16 insertions, 16 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml
index 5ebc4f4f..cf5fe1dd 100644
--- a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml
+++ b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml
@@ -90,12 +90,12 @@
<local:SV_Foo Value="Bar"/>
</local:MockViewWithValues.BPBar>
</local:MockViewWithValues>
- <!--<local:MockViewWithValues x:Name="implicit1" BPFoo="Foo" />-->
+ <local:MockViewWithValues x:Name="implicit1" BPFoo="Foo" />
<local:MockViewWithValues x:Name="implicit2">
<local:MockViewWithValues.Bar>
<local:SV_Foo Value="Bar"/>
</local:MockViewWithValues.Bar>
</local:MockViewWithValues>
- <!--<local:MockViewWithValues x:Name="implicit3" Foo="Foo" />-->
+ <local:MockViewWithValues x:Name="implicit3" Foo="Foo" />
</StackLayout>
</ContentPage>
diff --git a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs
index d8c7d2ce..6e3cdc1a 100644
--- a/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs
+++ b/Xamarin.Forms.Xaml.UnitTests/SetValue.xaml.cs
@@ -311,13 +311,13 @@ namespace Xamarin.Forms.Xaml.UnitTests
Assert.AreEqual("Bar", page.implicit0.GetValue(MockViewWithValues.BPBarProperty));
}
- //[TestCase(false)]
- //[TestCase(true)]
- //public void SetValueWithImplicitOperatorOnTarget(bool useCompiledXaml)
- //{
- // var page = new SetValue(useCompiledXaml);
- // Assert.AreEqual("Foo", ((SV_Foo)page.implicit1.GetValue(MockViewWithValues.BPFooProperty)).Value);
- //}
+ [TestCase(false)]
+ [TestCase(true)]
+ public void SetValueWithImplicitOperatorOnTarget(bool useCompiledXaml)
+ {
+ var page = new SetValue(useCompiledXaml);
+ Assert.AreEqual("Foo", ((SV_Foo)page.implicit1.GetValue(MockViewWithValues.BPFooProperty)).Value);
+ }
[TestCase(false)]
[TestCase(true)]
@@ -327,13 +327,13 @@ namespace Xamarin.Forms.Xaml.UnitTests
Assert.AreEqual("Bar", page.implicit2.Bar);
}
- //[TestCase(false)]
- //[TestCase(true)]
- //public void SetWithImplicitOperatorOnTarget(bool useCompiledXaml)
- //{
- // var page = new SetValue(useCompiledXaml);
- // Assert.AreEqual("Foo", page.implicit3.Foo.Value);
- //}
+ [TestCase(false)]
+ [TestCase(true)]
+ public void SetWithImplicitOperatorOnTarget(bool useCompiledXaml)
+ {
+ var page = new SetValue(useCompiledXaml);
+ Assert.AreEqual("Foo", page.implicit3.Foo.Value);
+ }
}
}
}