Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneDelcroix committed Apr 7, 2023
1 parent a14e737 commit 6956d54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controls/tests/Core.UnitTests/BindableObjectUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ public void StyleBindingIsOverridenByStyleBinding()
}

[Fact]
public void StyleDynResourceIsOverridenByStyleBinding()
public void StyleDynResourceNotOverridenByStyleBinding()
{
var label = new Label();
label.BindingContext = new { foo = "Foo", bar = "Bar" };
Expand All @@ -1278,7 +1278,7 @@ public void StyleDynResourceIsOverridenByStyleBinding()
Assert.Equal("Foo", label.Text);

label.SetBinding(Label.TextProperty, new Binding("bar"), new SetterSpecificity(0, 0, 0, 1, 200, 0, 0, 0));
Assert.Equal("Bar", label.Text);
Assert.Equal("Foo", label.Text);
}

[Fact]
Expand Down Expand Up @@ -1486,7 +1486,7 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
public void BindingContextBoundThroughConverter()
{
var bindable = new MockBindable();
bindable.BindingContext = "test";
bindable.SetValue(BindableObject.BindingContextProperty, "test", SetterSpecificity.FromBinding);
bindable.SetBinding(BindableObject.BindingContextProperty, new Binding(".", converter: new BindingContextConverter()));
bindable.SetBinding(MockBindable.TextProperty, "Text");

Expand Down

0 comments on commit 6956d54

Please sign in to comment.