コード例 #1
0
        public void ContructorWithNoReplicates()
        {
            proteinStateDeuterationResult = new ProteinStateDeuterationResult(new List<RunResult>(), new ProteinState(experiment));

            Assert.AreEqual(0, proteinStateDeuterationResult.TheoreticalCentroidMass);
            Assert.AreEqual(0, proteinStateDeuterationResult.DeuterationValues.Count);
            Assert.AreEqual(0, proteinStateDeuterationResult.DeuterationDistributedDeuterationValues.Count);
            Assert.AreEqual(0, proteinStateDeuterationResult.CentroidMassValues.Count);
            Assert.AreEqual(0, proteinStateDeuterationResult.NValue);
        }
コード例 #2
0
        public void ContructorWithNoResultsUsedInCalculation()
        {
            RunResult runResult1 = CreateRunResult(1, 2, 3, 4, false);
            RunResult runResult2 = CreateRunResult(5, 6, 7, 8, false);

            proteinStateDeuterationResult = new ProteinStateDeuterationResult(new List<RunResult>() { runResult1, runResult2 }, new ProteinState(experiment));

            Assert.AreEqual(5, proteinStateDeuterationResult.TheoreticalCentroidMass);
            Assert.AreEqual(0, proteinStateDeuterationResult.DeuterationValues.Count);
            Assert.AreEqual(0, proteinStateDeuterationResult.DeuterationDistributedDeuterationValues.Count);
            Assert.AreEqual(0, proteinStateDeuterationResult.CentroidMassValues.Count);
            Assert.AreEqual(0, proteinStateDeuterationResult.NValue);
        }
コード例 #3
0
        public void Constructor()
        {
            RunResult runResult1 = CreateRunResult(1, 2, 3, 4, true);
            RunResult runResult2 = CreateRunResult(5, 6, 7, 8, true);

            proteinStateDeuterationResult = new ProteinStateDeuterationResult(new List<RunResult>() { runResult1, runResult2 }, new ProteinState(experiment));

            Assert.AreEqual(5, proteinStateDeuterationResult.TheoreticalCentroidMass);
            Assert.AreEqual(2, proteinStateDeuterationResult.DeuterationValues.Count);
            Assert.AreEqual(2, proteinStateDeuterationResult.DeuterationValues[0]);
            Assert.AreEqual(6, proteinStateDeuterationResult.DeuterationValues[1]);
            Assert.AreEqual(2, proteinStateDeuterationResult.DeuterationDistributedDeuterationValues.Count);
            Assert.AreEqual(3, proteinStateDeuterationResult.DeuterationDistributedDeuterationValues[0]);
            Assert.AreEqual(7, proteinStateDeuterationResult.DeuterationDistributedDeuterationValues[1]);
            Assert.AreEqual(2, proteinStateDeuterationResult.CentroidMassValues.Count);
            Assert.AreEqual(4, proteinStateDeuterationResult.CentroidMassValues[0]);
            Assert.AreEqual(8, proteinStateDeuterationResult.CentroidMassValues[1]);
            Assert.AreEqual(2, proteinStateDeuterationResult.NValue);
        }
コード例 #4
0
 public void TestInitialize()
 {
     mockServiceLocator = new Mock<IServiceLocator>();
     mockEventAggregator = new Mock<IEventAggregator>();
     experiment = TestHelper.GetTestExperiment(mockServiceLocator);
     run = new Run(Path.GetFileName(Properties.Settings.Default.mzXMLTestFile1), Properties.Settings.Default.mzXMLTestFile1, new ProteinState(experiment), new Labeling(experiment), experiment, new ProteoWizardDataProvider(mockEventAggregator.Object));
     proteinStateDeuterationResult = new ProteinStateDeuterationResult();
 }