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();
        }
Esempio n. 2
0
 public void TearDown()
 {
     MiddleLevelCode.DisposeRunspace();
 }
 public void DisposeRunspace()
 {
     MiddleLevelCode.DisposeRunspace();
 }