Ejemplo n.º 1
0
 public void Setup()
 {
     variableManager.SetEnvironmentVariable(testUserVarName, testUserVarVal,
                                            EnvironmentVariableTarget.User);
     variableManager.SetEnvironmentVariable(testSystemVarName, testSystemVarVal,
                                            EnvironmentVariableTarget.Machine);
 }
Ejemplo n.º 2
0
 public void TestSaveValue()
 {
     btnTestDown.Click();
     btnTestDown.Click();
     btnTestSave.Click();
     Assert.AreEqual("Val1;Val2;Val4;Val5;Val3;Val6;Val7",
                     varManager.GetEnvironmentVariable(SYS_VAR_NAME, EnvironmentVariableTarget.Machine));
     varManager.SetEnvironmentVariable(SYS_VAR_NAME, VAR_VALUE, EnvironmentVariableTarget.Machine);
 }
Ejemplo n.º 3
0
 public FrmEditEnvVarsTest()
 {
     varManager = new EnvVarManager();
     varManager.SetEnvironmentVariable(SYS_VAR_NAME, VAR_VALUE, EnvironmentVariableTarget.Machine);
     frmEdit           = new FrmEditEnvVar(SYS_VAR_NAME, EnvironmentVariableTarget.Machine);
     dgv               = frmEdit.DgView;
     btnTestDown       = new ButtonTester("btnMoveDown", frmEdit.Name);
     btnTestUp         = new ButtonTester("btnMoveUp", frmEdit.Name);
     btnTestSave       = new ButtonTester("btnSave", frmEdit.Name);
     btnTestMoveBottom = new ButtonTester("btnMoveBottom", frmEdit.Name);
     btnTestMoveTop    = new ButtonTester("btnMoveTop", frmEdit.Name);
     btnTestUndo       = new ButtonTester("btnUndo", frmEdit.Name);
     btnTestRedo       = new ButtonTester("btnRedo", frmEdit.Name);
     btnTestDelete     = new ButtonTester("btnDelete", frmEdit.Name);
     btnTestBrowse     = new ButtonTester("btnBrowse", frmEdit.Name);
     frmEdit.Show();
 }