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/SharedResourceDictionary.xaml2
-rw-r--r--Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml.cs2
2 files changed, 3 insertions, 1 deletions
diff --git a/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml b/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml
index 8d86d57a..b6400e21 100644
--- a/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml
+++ b/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml
@@ -11,4 +11,6 @@
<Style TargetType="Label">
<Setter Property="TextColor" Value="Red" />
</Style>
+ <Color x:Key="TestingColor">#454545</Color>
+ <Label x:Key="label" BackgroundColor="{StaticResource TestingColor}" />
</ResourceDictionary> \ No newline at end of file
diff --git a/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml.cs b/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml.cs
index f4f53cae..aec2f4b5 100644
--- a/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml.cs
+++ b/Xamarin.Forms.Xaml.UnitTests/SharedResourceDictionary.xaml.cs
@@ -27,7 +27,7 @@ namespace Xamarin.Forms.Xaml.UnitTests
public void ResourcesDirectoriesCanBeXamlRoots (bool useCompiledXaml)
{
var layout = new SharedResourceDictionary (useCompiledXaml);
- Assert.AreEqual (3, layout.Count);
+ Assert.AreEqual (5, layout.Count);
}
}
}