private void CheckUserPathVariable()
 {
     Library library = new Library();
     string path = Environment.GetEnvironmentVariable("PATH", EnvironmentVariableTarget.Machine);
     if (path == null)
     {
         Environment.SetEnvironmentVariable("PATH", library.GetMySQLBinLocation(), EnvironmentVariableTarget.Machine);
         //this.RestartService();
     }
     else if (!path.Contains(library.GetMySQLBinLocation()))
     {
         path += ";" + library.GetMySQLBinLocation();
         Environment.SetEnvironmentVariable("PATH", path, EnvironmentVariableTarget.Machine);
         //this.RestartService();
     }
 }
 public void GetMySQLBinPathTest()
 {
     Library lib = new Library();
     Assert.IsTrue(lib.GetMySQLBinLocation().ToLower().Contains("mysql server"));
     lib = null;
 }