@@ -23,17 +23,19 @@ internal class Test
23
23
[ TestCase ( "Morpheus" , "SmallCalibratible_Yeast.PSMs.tsv" ) ]
24
24
[ TestCase ( "MaxQuant" , "msms.txt" ) ]
25
25
[ TestCase ( "PeptideShaker" , "Default PSM Report.tabular" ) ]
26
- [ TestCase ( "Percolator" , "percolatorTestData.txt" , "percolatorMzml.mzML" ) ]
26
+ [ TestCase ( "Percolator" , "percolatorTestData.txt" , "Percolator \\ percolatorMzml.mzML" ) ]
27
27
[ TestCase ( "Generic" , "AllPSMs.tsv" ) ]
28
28
[ TestCase ( "MsFragger" , "Fragger_v4p3_psm.tsv" ) ]
29
29
public static void TestOutputs ( string search , string psmFilename , string mzmlFileName = "SmallCalibratible_Yeast.mzML" )
30
30
{
31
- var myDirectory = Path . Combine ( TestContext . CurrentContext . TestDirectory , "SampleFiles" ) ;
32
- var pathOfIdentificationFile = Path . Combine ( myDirectory , search , psmFilename ) ;
33
- var pathOfMzml = Path . Combine ( myDirectory , mzmlFileName ) ;
31
+ var defaultDirectory = Path . Combine ( TestContext . CurrentContext . TestDirectory , "SampleFiles" ) ;
32
+ var pathOfIdentificationFile = Path . Combine ( defaultDirectory , search , psmFilename ) ;
33
+ var pathOfMzml = Path . Combine ( defaultDirectory , mzmlFileName ) ;
34
34
Assert . That ( File . Exists ( pathOfIdentificationFile ) ) ;
35
35
Assert . That ( File . Exists ( pathOfMzml ) ) ;
36
36
37
+ var myDirectory = Path . GetDirectoryName ( pathOfMzml ) ;
38
+
37
39
string [ ] myargs = new string [ ]
38
40
{
39
41
"--rep" ,
@@ -46,15 +48,15 @@ public static void TestOutputs(string search, string psmFilename, string mzmlFil
46
48
47
49
CMD . FlashLfqExecutable . Main ( myargs ) ;
48
50
49
- string peaksPath = Path . Combine ( myDirectory , search , "QuantifiedPeaks.tsv" ) ;
51
+ string peaksPath = Path . Combine ( defaultDirectory , search , "QuantifiedPeaks.tsv" ) ;
50
52
Assert . That ( File . Exists ( peaksPath ) ) ;
51
53
File . Delete ( peaksPath ) ;
52
54
53
- string peptidesPath = Path . Combine ( myDirectory , search , "QuantifiedPeptides.tsv" ) ;
55
+ string peptidesPath = Path . Combine ( defaultDirectory , search , "QuantifiedPeptides.tsv" ) ;
54
56
Assert . That ( File . Exists ( peptidesPath ) ) ;
55
57
File . Delete ( peptidesPath ) ;
56
58
57
- string proteinsPath = Path . Combine ( myDirectory , search , "QuantifiedProteins.tsv" ) ;
59
+ string proteinsPath = Path . Combine ( defaultDirectory , search , "QuantifiedProteins.tsv" ) ;
58
60
Assert . That ( File . Exists ( proteinsPath ) ) ;
59
61
File . Delete ( proteinsPath ) ;
60
62
}
0 commit comments