Пример #1
0
        public void ExecuteOperationWithPreHook()
        {
            TwinkleView.Context.Set("threadId", Thread.CurrentThread.ManagedThreadId);
            var exceptionPre = Assert.Throws <Exception>(() => TwinkleView.GetView <MainGooglePage>().SearchInput.SetValue("value"));

            Assert.That(exceptionPre.Message.Equals("before set value for search input"));
        }
Пример #2
0
 public void ExecuteOperationWithoutHook()
 {
     Assert.DoesNotThrow(() => TwinkleView.GetView <MainGooglePage>().SearchInGoogle.Click());
 }
Пример #3
0
        public void ExecuteOperationWithPostHook()
        {
            var exception = Assert.Throws <Exception>(() => TwinkleView.GetView <MainGooglePage>().SearchInput.GetValue());

            Assert.That(exception.Message.Equals("after get value for search input"));
        }