public void Nucleotid_StartsWith_ReturnsFalse_OnEmptySubSeq() { nucleotid.Sequence = "ACCCG"; var testSubstring = ""; var result = nucleotid.StartsWith(testSubstring); Assert.False(result); }
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); }