Exemple #1
0
        public void GetNextColumnTest()
        {
            int indexOfExpect = 0;

            string fileLocation = "..\\..\\..\\TestData\\QC_Standards_Excerpt_syn.txt";

            ISynopsysParser target = new SequestParser(fileLocation);

            string[] expected = "HitNum	ScanNum_s	ScanCount	ChargeState	MH	XCorr	DelCn	Sp	Reference	MultiProtein	Peptide_p	DelCn2	RankSp	RankXc	DelM	XcRatio	PassFilt	MScore	NumTrypticEnds".Split('\t');
            //Copied straight from QC file.
            string[] actual;

            actual = target.GetNextRow();

            foreach (string actualTmp in actual)
            {
                Assert.AreNotSame(expected[indexOfExpect], actualTmp);
                ++indexOfExpect;
            }
        }
Exemple #2
0
        public void SequestParserConstructorTest()
        {
            string        fileLocation = "..\\..\\..\\TestData\\QC_Standards_Excerpt_syn.txt";
            SequestParser target;

            try
            {
                target = new SequestParser(fileLocation);
            }
            catch (Exception)
            {
                Assert.Inconclusive("Opening file exception! Did the test data move?");
            }

            try
            {
                target = new SequestParser("");
            }
            catch (Exception)
            {
                target = null;
            }
            Assert.IsNull(target, "SequestParser is using a null File Location!");
        }