This class is used to find files and directories for an SIL app.
        public void GetFolderPath_EnvVariableSet()
        {
            try
            {
                SetupEnvironment("/bla");
                string path = DirectoryFinder.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
#if __MonoCS__
                Assert.That(path, Is.EqualTo("/bla"));
#else
                Assert.That(path, Is.EqualTo(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData)));
#endif
            }
            finally
            {
                ResetEnvironment();
            }
        }
 private void SetupEnvironment(string path)
 {
     m_previousEnvironment = Environment.GetEnvironmentVariable("FW_CommonAppData");
     DirectoryFinder.ResetStaticVars();
     Environment.SetEnvironmentVariable("FW_CommonAppData", path);
 }