diff --git a/tests/Avalonia.LeakTests/ControlTests.cs b/tests/Avalonia.LeakTests/ControlTests.cs index 9a4bcb1808..c6f9c5eae0 100644 --- a/tests/Avalonia.LeakTests/ControlTests.cs +++ b/tests/Avalonia.LeakTests/ControlTests.cs @@ -602,11 +602,9 @@ namespace Avalonia.LeakTests window.Show(); - // Do a layout and make sure that TextBlock gets added to visual tree with - // its render transform. + // Do a layout and make sure that TextBlock gets added to visual tree. window.LayoutManager.ExecuteInitialLayoutPass(); - var textBlock = Assert.IsType(window.Presenter.Child); - Assert.IsType(textBlock.RenderTransform); + Assert.IsType(window.Presenter.Child); // Clear the content and ensure the TextBlock is removed. window.Content = null;