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")); }
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"); } }