public void control_driver_verification_fails_if_doesnt_exist_in_page()
 {
     var ctrl = new ControlDriverForTesting("foobar", _ie.Element("foobar"), new DriverPageForTesting())
                    {
                        VerificationResult = ControlDriverForTesting.VerificationBehaviour.CallSuperClass
                    };
     ctrl.Verify().Should().BeFalse();
 }
示例#2
0
        public void control_driver_verification_fails_if_doesnt_exist_in_page()
        {
            var ctrl = new ControlDriverForTesting("foobar", _ie.Element("foobar"), new DriverPageForTesting())
            {
                VerificationResult = ControlDriverForTesting.VerificationBehaviour.CallSuperClass
            };

            ctrl.Verify().Should().BeFalse();
        }
示例#3
0
        public void control_driver_verification_passes_when_element_exists_on_the_page()
        {
            var ctrl = new ControlDriverForTesting("lBtnLogin", _ie.Element("lBtnLogin"), new DriverPageForTesting())
            {
                VerificationResult = ControlDriverForTesting.VerificationBehaviour.CallSuperClass
            };

            ctrl.Verify().Should().BeTrue();
        }
 public void control_driver_verification_passes_when_element_exists_on_the_page()
 {
     var ctrl = new ControlDriverForTesting("lBtnLogin", _ie.Element("lBtnLogin"), new DriverPageForTesting())
                    {
                        VerificationResult = ControlDriverForTesting.VerificationBehaviour.CallSuperClass
                    };
     ctrl.Verify().Should().BeTrue();
 }