Skip to content

Commit

Permalink
Remove now obsolete test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJul committed Dec 3, 2024
1 parent 6d79ff5 commit a9c9527
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/Avalonia.Markup.UnitTests/Data/BindingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,21 +151,6 @@ public void OneTime_Binding_Should_Be_Set_Up()
Assert.Equal("bar", source.Foo);
}

[Fact]
public void OneTime_Binding_Releases_Subscription_If_DataContext_Set_Later()
{
var target = new TextBlock();
var source = new Source { Foo = "foo" };

target.Bind(TextBlock.TextProperty, new Binding("Foo", BindingMode.OneTime));
target.DataContext = source;

// Forces WeakEvent compact
Dispatcher.UIThread.RunJobs();

Assert.Equal(0, source.SubscriberCount);
}

[Fact]
public void OneWayToSource_Binding_Should_Be_Set_Up()
{
Expand Down

0 comments on commit a9c9527

Please sign in to comment.