public void TestByIsCancelExtensions() { var buttons = ((AppVar)_ctrl).LogicalTree().ByType<Button>(); AppVar button5 = buttons.ByIsCancel().Single(); Assert.AreEqual(button5, _ctrl._button5); }