Ejemplo n.º 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"));
        }
Ejemplo n.º 2
0
 public void ExecuteOperationWithoutHook()
 {
     Assert.DoesNotThrow(() => TwinkleView.GetView <MainGooglePage>().SearchInGoogle.Click());
 }
Ejemplo n.º 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"));
        }