public void SetUp() { FakeFactory.InitForPowerShell(); MiddleLevelCode.PrepareRunspace(); CmdletUnitTest.TestRunspace.RunPSCode( @"[void]([UIAutomation.CurrentData]::ResetData());"); }
public void SetUp() { #region commented // the current 3 // CurrentData.ResetData(); // FakeFactory.InitForPowerShell(); // MiddleLevelCode.PrepareRunspace(); // the current 4 // the current 6 // FakeFactory.InitForPowerShell(); #endregion commented try { MiddleLevelCode.DisposeRunspace(); } catch (Exception) { // throw; } MiddleLevelCode.PrepareRunspace(); // the current 2 CmdletUnitTest.TestRunspace.RunPSCode( @"[void]([UIAutomation.CurrentData]::ResetData());"); #region commented // the current 4 // FakeFactory.InitForPowerShell(); // MiddleLevelCode.PrepareRunspace(); // the current 6 #endregion commented FakeFactory.InitForPowerShell(); }