浏览代码

Fixed unit test

adirh 2 年之前
父节点
当前提交
038c963750
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      tests/Avalonia.LeakTests/ControlTests.cs

+ 2 - 4
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<TextBlock>(window.Presenter.Child);
-                    Assert.IsType<RotateTransform>(textBlock.RenderTransform);
+                    Assert.IsType<TextBlock>(window.Presenter.Child);
 
                     // Clear the content and ensure the TextBlock is removed.
                     window.Content = null;