public SolutionXmlSession(string path) { if (string.IsNullOrEmpty(path)) { throw new ArgumentNullException(); } _fileSystem = ObjectFactory.GetInstance<IFileSystem>(); if (!_fileSystem.DoesFileExist(path)) { throw new FileNotFoundException(string.Format("The path '{0}' points to a non-existing file.", path)); } _solutionFilePath = path; }