Skip to content

Commit

Permalink
chore: Adjust test for updated storage
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed Sep 29, 2024
1 parent e94127f commit 301c1d4
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,14 @@ WeakReference Build()
var dc = new object();
SUT.DataContext = dc;

SUT.SetValue(
ContentControl.ForegroundProperty,
new SolidColorBrush(new Windows.UI.Color(1, 2, 3, 4)),
DependencyPropertyValuePrecedences.Inheritance);

var originalBrush = SUT.Foreground as Brush;
Assert.AreEqual(dc, originalBrush.DataContext);

var newBrush = new SolidColorBrush(Microsoft.UI.Colors.Red);

SUT.SetValue(ContentControl.ForegroundProperty, newBrush);
Expand Down

0 comments on commit 301c1d4

Please sign in to comment.