public void Execute()
        {
            DocumentManager documentManager = new DocumentManager(MockEventAggregator.Object, MockServiceLocator.Object);
            documentManager.Open(Properties.Settings.Default.TestProject2);
            Experiment experiment = documentManager.ProjectFile.Experiments.First() as Experiment;
            BackgroundWorker worker = MockBackgroundWorker.Object;
            worker.WorkerReportsProgress = true;
            msmsFragmentAnalyzer.Execute(worker, experiment);

            Assert.AreEqual(1, experiment.Results.Count);
            Assert.AreEqual(3, experiment.Results.Last().DeuterationResults.Count);
            AssertResult(experiment.Results.Last().DeuterationResults[0].ReplicateResults, -0.13584);
            AssertResult(experiment.Results.Last().DeuterationResults[1].ReplicateResults, -0.33102);
            AssertResult(experiment.Results.Last().DeuterationResults[2].ReplicateResults, -0.18049);
        }
Ejemplo n.º 2
0
        public void Execute()
        {
            DocumentManager documentManager = new DocumentManager(MockEventAggregator.Object, MockServiceLocator.Object);
            documentManager.Open(Properties.Settings.Default.TestProject1);
            Experiment experiment = documentManager.ProjectFile.Experiments.First() as Experiment;
            BackgroundWorker worker = MockBackgroundWorker.Object;
            worker.WorkerReportsProgress = true;
            labelAmountCalculator.Execute(worker, experiment);

            Assert.AreEqual(2, experiment.Results.Count);
            Assert.AreEqual(10, experiment.Results.Last().DeuterationResults.Count);
            AssertResult(experiment.Results.Last().DeuterationResults[0].ReplicateResults, 1.66372, 3.81113);
            AssertResult(experiment.Results.Last().DeuterationResults[1].ReplicateResults, 1.73006, 1.60867);
            AssertResult(experiment.Results.Last().DeuterationResults[2].ReplicateResults, 0.5198, 0.46388);
            AssertResult(experiment.Results.Last().DeuterationResults[3].ReplicateResults, 0.46793, 0.4789);
            AssertResult(experiment.Results.Last().DeuterationResults[4].ReplicateResults, 3.63934, 3.58044);
            AssertResult(experiment.Results.Last().DeuterationResults[5].ReplicateResults, 3.54433, 3.51951);
            AssertResult(experiment.Results.Last().DeuterationResults[6].ReplicateResults, 1.08981, 1.2301);
            AssertResult(experiment.Results.Last().DeuterationResults[7].ReplicateResults, 1.32979, 0.9668);
            AssertResult(experiment.Results.Last().DeuterationResults[9].ReplicateResults, 1.06212, 0.77058);
        }