summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests
diff options
context:
space:
mode:
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);
+ }
}
}
}