public void SetUp() { do { _filePath = Path.Combine(Path.GetTempPath(), Path.GetRandomFileName()); } while (File.Exists(_filePath)); Control = new RecentFileList(); Control.UseXmlPersister(_filePath); }