protected override void BaseTestFixtureTearDown()
 {
     keyboard.PressSpecialKey(KeyboardInput.SpecialKeys.ESCAPE);
     if (window == null)
         application.Kill();
     else
     {
         try
         {
             window.Focus();
             window.Close();
         }
         catch {}
     }
     if (ConfigurationManager.AppSettings["SaveWindowItemsMap"] == "true") application.ApplicationSession.Save();
     window = null;
     resultLabel = null;
 }
 protected override void PostSetup()
 {
     document = browserWindow.SilverlightDocument;
     label = document.Get<Label>("status");
 }
 public static void BeforeTestRun()
 {
     app = Application.Launch("calc");
     window = app.GetWindow("Calculator");
     readout = (Label)window.Get(SearchCriteria.ByAutomationId(IDC_READOUT));
 }
 public void Text()
 {
     label = window.Get<Label>("result");
     Assert.AreNotEqual(null, label.Text);
 }
 protected override void BaseTestFixtureSetup()
 {
     window = application.GetWindow("Form1", testConfiguration.WindowInitializeOption);
     if (testConfiguration is SWTTestConfiguration) resultLabel = window.Get<Label>("result");
 }