public void InitDNAGraph()
 {
     if (!((bool)TestDataCheckBox.IsChecked))
     {
         moleculeName   = MoleculeInputTextBox.Text.ToString();
         numOfFragments = int.Parse(FragNumTextBox.Text.ToString());
         fragments      = FragmentsCreator.GetFragments(moleculeName, numOfFragments);
         dnaGraph       = new DNAGraph(moleculeName, fragments);
     }
     else
     {
         moleculeName = testMolecule;
         fragments    = testFragments;
         dnaGraph     = new DNAGraph(testMolecule, testFragments);
     }
 }
Exemple #2
0
        public void FragmentGeneratorTest()
        {
            var fragments = FragmentsCreator.GetFragments("ADDCCFFDSSDSDSFDFDF", 10);

            Assert.AreEqual(fragments.Length, 10);
        }