示例#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();
        }
示例#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();
        }
示例#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);
        }
示例#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"));
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }