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