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")); }
public void ExecuteOperationWithoutHook() { Assert.DoesNotThrow(() => TwinkleView.GetView <MainGooglePage>().SearchInGoogle.Click()); }
public void ExecuteOperationWithPostHook() { var exception = Assert.Throws <Exception>(() => TwinkleView.GetView <MainGooglePage>().SearchInput.GetValue()); Assert.That(exception.Message.Equals("after get value for search input")); }