summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs')
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs
index e12e83b7..a272decc 100644
--- a/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs
+++ b/Xamarin.Forms.Xaml.UnitTests/TestSharedResourceDictionary.xaml.cs
@@ -35,6 +35,14 @@ namespace Xamarin.Forms.Xaml.UnitTests
Assert.AreEqual (Color.Pink, layout.label.TextColor);
Assert.AreEqual (Color.Purple, layout.label2.TextColor);
}
+
+ [TestCase (false)]
+ [TestCase (true)]
+ public void ImplicitStyleCanBeSharedFromSharedRD (bool useCompiledXaml)
+ {
+ var layout = new TestSharedResourceDictionary(useCompiledXaml);
+ Assert.AreEqual(Color.Red, layout.implicitLabel.TextColor);
+ }
}
}
} \ No newline at end of file