コード例 #1
0
ファイル: Hooks.cs プロジェクト: twinkle-tools/Twinkle.View
        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
ファイル: Hooks.cs プロジェクト: twinkle-tools/Twinkle.View
 public void ExecuteOperationWithoutHook()
 {
     Assert.DoesNotThrow(() => TwinkleView.GetView <MainGooglePage>().SearchInGoogle.Click());
 }
コード例 #3
0
ファイル: Hooks.cs プロジェクト: twinkle-tools/Twinkle.View
        public void ExecuteOperationWithPostHook()
        {
            var exception = Assert.Throws <Exception>(() => TwinkleView.GetView <MainGooglePage>().SearchInput.GetValue());

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