public void SetUp()
        {
            // Create a new empty list of applications.
            Settings.Default.PortableApplicationsBaseDirectory = Path.Combine(Path.GetTempPath(), "Applications-UnitTests-Temp-" + Randomizer.RandomSeed);
            _applications = new PortableEnvironment().Applications;
            _applications.Clear();
            Expect(_applications.Count, Is.EqualTo(0));

            if (Directory.Exists(_applications.InstallationBaseDirectory))
                Directory.Delete(_applications.InstallationBaseDirectory, true);
            Directory.CreateDirectory(_applications.InstallationBaseDirectory);
        }
 public PortableEnvironment()
 {
     Applications = new PortableApplicationCollection(this);
     Shortcuts = new ShortcutCollection(this);
 }