static void TestByCommandInTargetExtensions(ButtonSearchTestControl ctrl, Button button2Expected) { var buttons = ctrl.LogicalTree().ByType <Button>(); var button2 = buttons.ByCommand(ApplicationCommands.Close).Single(); Assert.AreEqual(button2, button2Expected); }
static ButtonSearchTestControl Init(Grid grid) { ButtonSearchTestControl ctrl = new ButtonSearchTestControl(); grid.Children.Add(ctrl); return(ctrl); }
static void TestByCommandInTarget(ButtonSearchTestControl ctrl, Button button2Expected) { var buttons = TreeUtilityInTarget.LogicalTree(ctrl).ByType <Button>(); var button2 = ButtonSearcherInTarget.ByCommand(buttons, ApplicationCommands.Close).Single(); Assert.AreEqual(button2, button2Expected); }
static void TestByIsCancelInTarget(ButtonSearchTestControl ctrl, Button button5Expected) { var buttons = TreeUtilityInTarget.LogicalTree(ctrl).ByType <Button>(); var button5 = ButtonSearcherInTarget.ByIsCancel(buttons).Single(); Assert.AreEqual(button5, button5Expected); }
static void TestByIsCancelInTargetExtensions(ButtonSearchTestControl ctrl, Button button5Expected) { var buttons = ctrl.LogicalTree().ByType <Button>(); var button5 = buttons.ByIsCancel().Single(); Assert.AreEqual(button5, button5Expected); }
static void TestByCommandParameterTextInTarget(ButtonSearchTestControl ctrl, Button button4Expected) { var buttons = TreeUtilityInTarget.LogicalTree(ctrl).ByType <Button>(); var button4 = ButtonSearcherInTarget.ByCommandParameterText(buttons, "A").Single(); Assert.AreEqual(button4, button4Expected); }
static void TestByCommandParameterTextInTargetExtensions(ButtonSearchTestControl ctrl, Button button4Expected) { var buttons = ctrl.LogicalTree().ByType <Button>(); var button4 = buttons.ByCommandParameterText("A").Single(); Assert.AreEqual(button4, button4Expected); }
static void TestByCommandInTarget(ButtonSearchTestControl ctrl, Button button2Expected) { var buttons = TreeUtilityInTarget.LogicalTree(ctrl).ByType<Button>(); var button2 = ButtonSearcherInTarget.ByCommand(buttons, ApplicationCommands.Close).Single(); Assert.AreEqual(button2, button2Expected); }
static void TestByCommandInTargetExtensions(ButtonSearchTestControl ctrl, Button button2Expected) { var buttons = ctrl.LogicalTree().ByType<Button>(); var button2 = buttons.ByCommand(ApplicationCommands.Close).Single(); Assert.AreEqual(button2, button2Expected); }
static ButtonSearchTestControl Init(Grid grid) { ButtonSearchTestControl ctrl = new ButtonSearchTestControl(); grid.Children.Add(ctrl); return ctrl; }
static void TestByIsCancelInTargetExtensions(ButtonSearchTestControl ctrl, Button button5Expected) { var buttons = ctrl.LogicalTree().ByType<Button>(); var button5 = buttons.ByIsCancel().Single(); Assert.AreEqual(button5, button5Expected); }
static void TestByIsCancelInTarget(ButtonSearchTestControl ctrl, Button button5Expected) { var buttons = TreeUtilityInTarget.LogicalTree(ctrl).ByType<Button>(); var button5 = ButtonSearcherInTarget.ByIsCancel(buttons).Single(); Assert.AreEqual(button5, button5Expected); }
static void TestByCommandParameterTextInTargetExtensions(ButtonSearchTestControl ctrl, Button button4Expected) { var buttons = ctrl.LogicalTree().ByType<Button>(); var button4 = buttons.ByCommandParameterText("A").Single(); Assert.AreEqual(button4, button4Expected); }
static void TestByCommandParameterTextInTarget(ButtonSearchTestControl ctrl, Button button4Expected) { var buttons = TreeUtilityInTarget.LogicalTree(ctrl).ByType<Button>(); var button4 = ButtonSearcherInTarget.ByCommandParameterText(buttons, "A").Single(); Assert.AreEqual(button4, button4Expected); }