Ejemplo n.º 1
0
        public void TestFailOnIncorrectInstrumentTemplate()
        {
            string projectDirectory = GetProjectDirectory();

            var template = IsQSTAR() ? METHOD_FILE_5600 : METHOD_FILE_QSTAR;
            var args = new[] { Path.Combine(projectDirectory, template),
                               Path.Combine(projectDirectory, TRANS_LIST_UNSCHED) };

            var builder = new BuildAnalystFullScanMethod();
            builder.ParseCommandArgs(args);

            // This should throw an exception
            builder.build();
        }
Ejemplo n.º 2
0
        public void TestFailOnIncorrectTemplateTypeForTargetedMSMS()
        {
            string projectDirectory = GetProjectDirectory();

            var template = IsQSTAR() ? METHOD_FILE_IDA_QSTAR : METHOD_FILE_IDA_5600;
            var args     = new[] { Path.Combine(projectDirectory, template),
                                   Path.Combine(projectDirectory, TRANS_LIST_UNSCHED) };

            var builder = new BuildAnalystFullScanMethod();

            builder.ParseCommandArgs(args);

            // This should throw an exception
            builder.build();
        }
Ejemplo n.º 3
0
        private void TestIDAUnscheduled(string templateMethodFile)
        {
            var args = new[] {
                "-i",
                GetTemplateFilePath(templateMethodFile),
                GetTransListUnschedPath()
            };

            var builder = new BuildAnalystFullScanMethod();

            builder.ParseCommandArgs(args);
            builder.build();


            TestIDACommon(GetMethodUnschedPath(), false);
        }
Ejemplo n.º 4
0
        private void TestIDAScheduled(string templateMethodFile)
        {
            var args = new[] {
                "-i", "-r", "-mq",
                GetTemplateFilePath(templateMethodFile),
                GetTransListSchedPath()
            };

            var builder = new BuildAnalystFullScanMethod();

            builder.ParseCommandArgs(args);
            builder.build();


            TestIDACommon(GetMethodSchedPath(), true);
            TestMultiQuantFile(Path.ChangeExtension(GetMethodSchedPath(), ".MultiQuant.txt"));
        }
Ejemplo n.º 5
0
        private void TestTargetedMsmsNoTOFMs(string templateMethodFile)
        {
            var args = new[] {
                GetTemplateFilePath(templateMethodFile),
                GetTransListUnschedPath()
            };

            var builder = new BuildAnalystFullScanMethod();

            builder.ParseCommandArgs(args);
            builder.build();

            string methodFilePath   = GetMethodUnschedPath();
            string templateFilePath = GetTemplateFilePath(templateMethodFile);

            TestTargetedMsmsCommon(templateFilePath, methodFilePath, false);

            DeleteOutput(methodFilePath);
        }
Ejemplo n.º 6
0
        private void TestIDAUnscheduled(string templateMethodFile)
        {
            var args = new[] {
                                "-i",
                                GetTemplateFilePath(templateMethodFile),
                                GetTransListUnschedPath()
                             };

            var builder = new BuildAnalystFullScanMethod();
            builder.ParseCommandArgs(args);
            builder.build();

            TestIDACommon(GetMethodUnschedPath(), false);
        }
Ejemplo n.º 7
0
        private void TestIDAScheduled(string templateMethodFile)
        {
            var args = new[] {
                                "-i", "-r" , "-mq",
                                GetTemplateFilePath(templateMethodFile),
                                GetTransListSchedPath()
                             };

            var builder = new BuildAnalystFullScanMethod();
            builder.ParseCommandArgs(args);
            builder.build();

            TestIDACommon(GetMethodSchedPath(), true);
            TestMultiQuantFile(Path.ChangeExtension(GetMethodSchedPath(), ".MultiQuant.txt"));
        }
        private void TestTargetedMsmsTOFMs(string templateMethodFile)
        {
            var args = new[]
                           {
                               "-1",
                               GetTemplateFilePath(templateMethodFile),
                               GetTransListUnschedPath()
                           };

            var builder = new BuildAnalystFullScanMethod();
            builder.ParseCommandArgs(args);
            builder.build();

            string methodFilePath = GetMethodUnschedPath();
            string templateFilePath = GetTemplateFilePath(templateMethodFile);

            TestTargetedMsmsCommon(templateFilePath, methodFilePath, true);

            DeleteOutput(methodFilePath);
        }