public void ShouldSaveWindowInformationInFile()
 {
     File.Delete("foo.xml");
     using (WorkSession workSession = WorkSession())
     {
         Application application = new WinformsTestConfiguration().LaunchApplication();
         workSession.Attach(application);
         Window window = application.GetWindow("MainWindow", InitializeOption.NoCache.AndIdentifiedBy("foo"));
         window.Get<Button>("ButtonWithTooltip");
     }
     Assert.True(File.Exists("foo.xml"));
 }
 public void ShouldFindControlBasedLocation()
 {
     File.Delete("foo.xml");
     using (WorkSession workSession = WorkSession())
     {
         Application application = new WinformsTestConfiguration().LaunchApplication();
         workSession.Attach(application);
         Window window = application.GetWindow("MainWindow", InitializeOption.NoCache.AndIdentifiedBy("foo"));
         window.Get<Button>("ButtonWithTooltip");
     }
     using (WorkSession workSession = WorkSession())
     {
         Application application = new WinformsTestConfiguration().LaunchApplication();
         workSession.Attach(application);
         Window window = application.GetWindow("MainWindow", InitializeOption.NoCache.AndIdentifiedBy("foo"));
         window.Get<Button>("ButtonWithTooltip");
     }
 }