public void outputToText_xcaliburData_Test1()
        {
            var exportedFile = exportedMSFeaturesToTextFileFromOrbitrapFile1;


            if (File.Exists(exportedFile))
            {
                File.Delete(exportedFile);
            }

            //create run and get some results
            var run = TestDataCreationUtilities.CreateResultsFromThreeScansOfStandardOrbitrapData();

            var isosExporter = new DeconTools.Backend.FileIO.MSFeatureToTextFileExporterBasic(exportedFile);

            isosExporter.ExportResults(run.ResultCollection.ResultList);

            Assert.AreEqual(true, File.Exists(exportedFile));

            var importer = new IsosImporter(exportedFile, run.MSFileType);
            var results  = importer.Import();

            Assert.IsTrue(results != null);
            Assert.IsTrue(results.Count > 300);

            //TODO: need to check if '388' is good or not
            //Assert.AreEqual(388, results.Count);
        }
        public static ExporterBase <IsosResult> CreateMSFeatureExporter(Globals.ExporterType exporterType, Globals.MSFileType msFileType, string outputFileName)
        {
            Check.Assert(!string.IsNullOrEmpty(outputFileName), "MSFeatureExporterFactory cannot work. OutputFileName is empty - which is bad.");
            ExporterBase <IsosResult> msFeatureExporter;

            switch (exporterType)
            {
            case Globals.ExporterType.Text:

                //IMS and UIMF filetypes have their own special export formats. All others will use a standard format.
                switch (msFileType)
                {
                case Globals.MSFileType.PNNL_IMS:
                    msFeatureExporter = new MSFeatureToTextFileExporterIMF(outputFileName);
                    break;

                case Globals.MSFileType.PNNL_UIMF:
                    msFeatureExporter = new MSFeatureToTextFileExporterUIMF(outputFileName);
                    break;

                default:
                    msFeatureExporter = new MSFeatureToTextFileExporterBasic(outputFileName);
                    break;
                }
                break;

            case Globals.ExporterType.Sqlite:
                switch (msFileType)
                {
                case Globals.MSFileType.PNNL_UIMF:
                    msFeatureExporter = new MSFeatureToSQLiteExporterUIMF(outputFileName);
                    break;

                default:
                    msFeatureExporter = new MSFeatureToSQLiteExporterBasic(outputFileName);
                    break;
                }
                break;

            default:
                throw new NotImplementedException();
                //break;
            }

            return(msFeatureExporter);
        }