From 32ee54f2ef9c04e81f67111b0d21ae4bfb9a29bd Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 18 Apr 2018 14:08:17 +0300 Subject: Redundant. --- .../Tango.UnitTesting/MachineStudio_TST.cs | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'Software/Visual_Studio/Tango.UnitTesting') diff --git a/Software/Visual_Studio/Tango.UnitTesting/MachineStudio_TST.cs b/Software/Visual_Studio/Tango.UnitTesting/MachineStudio_TST.cs index c56a177f8..7df8d59f9 100644 --- a/Software/Visual_Studio/Tango.UnitTesting/MachineStudio_TST.cs +++ b/Software/Visual_Studio/Tango.UnitTesting/MachineStudio_TST.cs @@ -17,12 +17,17 @@ namespace Tango.UnitTesting [TestCategory("Machine Studio")] public class MachineStudio_TST { + private Window GetMachineStudioWindow() + { + var app = Application.AttachOrLaunch(new System.Diagnostics.ProcessStartInfo() { FileName = Helper.GetMachineStudioPath() }); + var window = app.GetWindow("Tango", InitializeOption.NoCache); + return window; + } + [TestMethod] public void Login() { - var app = Application.Launch(Helper.GetMachineStudioPath()); - - var window = app.GetWindow("Tango", InitializeOption.NoCache); + var window = GetMachineStudioWindow(); window.WaitTill(() => window.Get