Esempio n. 1
0
        public void TestInitialize()
        {
            mockServiceLocator = new Mock<IServiceLocator>();
            mockPeptideDataProvider = new Mock<IPeptideDataProvider>();

            peptides = new Peptides(@"C:\temp\Data\peptides.xml", mockServiceLocator.Object);
        }
Esempio n. 2
0
        public void Save()
        {
            peptides = Peptides.Open(Properties.Settings.Default.XmlPeptideTestFile);
            peptides.PeptideCollection[0].Sequence = "SAMPLE";
            peptides.Location = @"C:\temp\peptides.xml";
            peptides.Save();

            peptides = Peptides.Open(@"C:\temp\peptides.xml");
            Assert.AreEqual("SAMPLE", peptides.PeptideCollection[0].Sequence);
        }
Esempio n. 3
0
        public void Open()
        {
            peptides = Peptides.Open(Properties.Settings.Default.XmlPeptideTestFile);

            Assert.AreEqual(Properties.Settings.Default.XmlPeptideTestFile, peptides.Location);
            Assert.AreEqual(5, peptides.PeptideCollection.Count);
            Assert.AreEqual("DGIPSKVQRCAVG", peptides.PeptideCollection[0].Sequence);
            Assert.AreEqual("NENERYDAVQHCRYVDE", peptides.PeptideCollection[1].Sequence);
            Assert.AreEqual("VAHDDIPYSSAGSDDVYKHIKEAGM", peptides.PeptideCollection[2].Sequence);
            Assert.AreEqual("RIVRDYDVYA", peptides.PeptideCollection[3].Sequence);
            Assert.AreEqual("LNVSF", peptides.PeptideCollection[4].Sequence);
        }
Esempio n. 4
0
 public Experiment(string name, ProjectBase project, IExperimentType experimentType)
     : base(name, project, experimentType)
 {
     _peptideFileLocation = @"Data\Peptides.xml";
     _peptides = new Peptides(Path.Combine(Path.GetDirectoryName(Location), PeptidesFileLocation));
 }