コード例 #1
0
ファイル: Issue1461.cs プロジェクト: fortefour/xamarin-forms
 public void TestButton()
 {
     if (Issue1461Helpers.ShouldRunTest(RunningApp))
     {
         RunningApp.SetOrientationLandscape();
         RunningApp.WaitForNoElement(q => q.Marked("bank"));
         RunningApp.SetOrientationPortrait();
         RunningApp.WaitForElement(q => q.Marked("bank"));
     }
     else
     {
         Assert.Inconclusive("Only run on iOS Tablet");
     }
 }
コード例 #2
0
ファイル: Issue1461.cs プロジェクト: fortefour/xamarin-forms
 public void Test2()
 {
     if (Issue1461Helpers.ShouldRunTest(RunningApp))
     {
         RunningApp.SetOrientationLandscape();
         var query = RunningApp.Query(q => q.Marked("Master_Label"));
         Assert.IsTrue(query.Any(), "Master should be present");
         RunningApp.Screenshot("Master should not present");
         RunningApp.SetOrientationPortrait();
         query = RunningApp.Query(q => q.Marked("Master_Label"));
         Assert.IsTrue(!query.Any(), "Master should not present");
         RunningApp.Screenshot("Master should not present");
         RunningApp.Tap(q => q.Marked("Go Back"));
     }
     else
     {
         Assert.Inconclusive("Only run on iOS Tablet");
     }
 }