コード例 #1
0
        static void TestByCommandInTargetExtensions(ButtonSearchTestControl ctrl, Button button2Expected)
        {
            var buttons = ctrl.LogicalTree().ByType <Button>();
            var button2 = buttons.ByCommand(ApplicationCommands.Close).Single();

            Assert.AreEqual(button2, button2Expected);
        }
コード例 #2
0
        static void TestByIsCancelInTargetExtensions(ButtonSearchTestControl ctrl, Button button5Expected)
        {
            var buttons = ctrl.LogicalTree().ByType <Button>();
            var button5 = buttons.ByIsCancel().Single();

            Assert.AreEqual(button5, button5Expected);
        }
コード例 #3
0
        static void TestByCommandParameterTextInTargetExtensions(ButtonSearchTestControl ctrl, Button button4Expected)
        {
            var buttons = ctrl.LogicalTree().ByType <Button>();
            var button4 = buttons.ByCommandParameterText("A").Single();

            Assert.AreEqual(button4, button4Expected);
        }
コード例 #4
0
 static void TestByCommandInTargetExtensions(ButtonSearchTestControl ctrl, Button button2Expected)
 {
     var buttons = ctrl.LogicalTree().ByType<Button>();
     var button2 = buttons.ByCommand(ApplicationCommands.Close).Single();
     Assert.AreEqual(button2, button2Expected);
 }
コード例 #5
0
 static void TestByIsCancelInTargetExtensions(ButtonSearchTestControl ctrl, Button button5Expected)
 {
     var buttons = ctrl.LogicalTree().ByType<Button>();
     var button5 = buttons.ByIsCancel().Single();
     Assert.AreEqual(button5, button5Expected);
 }
コード例 #6
0
 static void TestByCommandParameterTextInTargetExtensions(ButtonSearchTestControl ctrl, Button button4Expected)
 {
     var buttons = ctrl.LogicalTree().ByType<Button>();
     var button4 = buttons.ByCommandParameterText("A").Single();
     Assert.AreEqual(button4, button4Expected);
 }