Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. [TestMethod]
  2. public void OrientationTest()
  3. {
  4. IRotatable rotatable = ((IRotatable)_driver);
  5. rotatable.Orientation = ScreenOrientation.Portrait;
  6. Assert.AreEqual(ScreenOrientation.Portrait, rotatable.Orientation);
  7. }
  8.  
  9. [TestMethod]
  10. public void LockTest()
  11. {
  12. _driver.Lock();
  13. Assert.AreEqual(true, _driver.IsLocked());
  14. _driver.Unlock();
  15. Assert.AreEqual(false, _driver.IsLocked());
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement