diff options
author | Manish Sinha <manish.sinha@xamarin.com> | 2015-07-27 20:57:13 +0300 |
---|---|---|
committer | Manish Sinha <manish.sinha@xamarin.com> | 2015-07-27 20:57:41 +0300 |
commit | 3d31f4e4064fe7c2d3a9ef0158be7fa09a604a1d (patch) | |
tree | aa3c201532ea5057daa7c00fdbe6df8723eaf768 /main/tests/UserInterfaceTests/Workbench.cs | |
parent | 6c1907d16025872a4fa6edd52daa4341a1312ddf (diff) |
[UITests] Fix TestLocalCopyPreservedUpdate test and add ability to change Configuration
Diffstat (limited to 'main/tests/UserInterfaceTests/Workbench.cs')
-rw-r--r-- | main/tests/UserInterfaceTests/Workbench.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/main/tests/UserInterfaceTests/Workbench.cs b/main/tests/UserInterfaceTests/Workbench.cs index abcd5e91a3..9c2a5195e5 100644 --- a/main/tests/UserInterfaceTests/Workbench.cs +++ b/main/tests/UserInterfaceTests/Workbench.cs @@ -92,5 +92,17 @@ namespace UserInterfaceTests return true; } } + + public static string Configuration + { + get { + var configId = Session.GetGlobalValue ("MonoDevelop.Ide.IdeApp.Workspace.ActiveConfigurationId"); + return configId != null ? (string)configId : null; + } + set { + Session.SetGlobalValue ("MonoDevelop.Ide.IdeApp.Workspace.ActiveConfigurationId", value); + Ide.WaitUntil (() => Workbench.Configuration == value); + } + } } } |