Пример #1
0
        public void Nucleotid_StartsWith_ReturnsFalse_OnEmptySubSeq()
        {
            nucleotid.Sequence = "ACCCG";
            var testSubstring = "";
            var result        = nucleotid.StartsWith(testSubstring);

            Assert.False(result);
        }
Пример #2
0
        public static int GetSinglePartialSum(Nucleotid parentNucleotid, Nucleotid childNucleotid)
        {
            int result = 1;

            while (!childNucleotid.StartsWith(parentNucleotid.Sequence.Substring(result), Global.ErrorToleration) && result < parentNucleotid.Sequence.Length)
            {
                result++;
            }

            return(result);
        }