Exemplo n.º 1
0
 public void ShouldSaveWindowInformationInFile()
 {
     File.Delete("foo.xml");
     using (WorkSession workSession = WorkSession())
     {
         Application application = Application.Launch(TestConfiguration.WinFormsTestAppLocation);
         workSession.Attach(application);
         Window window = application.GetWindow("Form1", InitializeOption.NoCache.AndIdentifiedBy("foo"));
         window.Get <Button>("buton");
     }
     Assert.AreEqual(true, File.Exists("foo.xml"));
 }
Exemplo n.º 2
0
 public void ShouldFindCONTROLBasedLocation()
 {
     File.Delete("foo.xml");
     using (WorkSession workSession = WorkSession())
     {
         Application application = Application.Launch(TestConfiguration.WinFormsTestAppLocation);
         workSession.Attach(application);
         Window window = application.GetWindow("Form1", InitializeOption.NoCache.AndIdentifiedBy("foo"));
         window.Get <Button>("buton");
         window.Get <Button>("addNode");
     }
     using (WorkSession workSession = WorkSession())
     {
         Application application = Application.Launch(TestConfiguration.WinFormsTestAppLocation);
         workSession.Attach(application);
         Window window = application.GetWindow("Form1", InitializeOption.NoCache.AndIdentifiedBy("foo"));
         window.Get <Button>("buton");
         window.Get <Button>("addNode");
     }
 }