Пример #1
0
        public void TestGetClearMethod()
        {
            var element = new Mock <IWebElement>(MockBehavior.Strict);

            element.Setup(e => e.Clear());

            var nativePage = new NativePage();
            var page       = new SeleniumPage(nativePage, null);

            var clearMethod = page.GetClearMethod(null);

            clearMethod(element.Object);

            element.VerifyAll();
        }
Пример #2
0
        public void TestGetClearMethod()
        {
            var element = new Mock<IWebElement>(MockBehavior.Strict);
            element.Setup(e => e.Clear());

            var nativePage = new NativePage();
            var page = new SeleniumPage(nativePage);

            var clearMethod = page.GetClearMethod(null);
            clearMethod(element.Object);

            element.VerifyAll();
        }