Skip to content

Commit

Permalink
test(styles): Add test for MergedDictionaries XAML in Framework.Resou…
Browse files Browse the repository at this point in the history
…rces
  • Loading branch information
davidjohnoliver committed Jun 3, 2020
1 parent 5d04d91 commit 332c825
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<SolidColorBrush x:Key="AbominableColorBrush"
Color="Teal" />
</ResourceDictionary>
10 changes: 10 additions & 0 deletions src/Uno.UI.Tests/Windows_UI_Xaml/Given_ResourceDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,16 @@ public void When_Resource_In_Merged_Source_Xaml()
AssertContainsColorBrushResource(app.Resources, "StrangeColorBrush", Colors.Gainsboro);
}

[TestMethod]
public void When_Resource_In_Merged_Source_Xaml_Element()
{
var app = UnitTestsApp.App.EnsureApplication();

var control = new Test_Control();

AssertContainsColorBrushResource(control.TestGrid.Resources, "AbominableColorBrush", Colors.Teal);
}

[TestMethod]
public void When_Resource_In_Merged_Source_Xaml_Check_Source()
{
Expand Down

0 comments on commit 332c825

Please sign in to comment.