public void QualitativeSequenceClone() { QualitativeSequence qualSequence = new QualitativeSequence(Alphabets.RNA, FastQFormatType.Illumina, "ACUGGA", 65); Assert.AreEqual(qualSequence.Alphabet, Alphabets.RNA); Assert.IsTrue(qualSequence.IsReadOnly); Assert.AreEqual(qualSequence.Count, 6); Assert.AreEqual(qualSequence.Scores.Length, 6); foreach (byte qualScore in qualSequence.Scores) { Assert.AreEqual(qualScore, 65); } Assert.AreEqual(qualSequence.ToString(), "ACUGGA"); Assert.AreEqual(qualSequence.Type, FastQFormatType.Illumina); QualitativeSequence cloneCopy = qualSequence.Clone(); Assert.AreEqual(cloneCopy.Alphabet, Alphabets.RNA); Assert.IsTrue(cloneCopy.IsReadOnly); Assert.AreEqual(cloneCopy.Count, 6); Assert.AreEqual(cloneCopy.Scores.Length, 6); foreach (byte qualScore in cloneCopy.Scores) { Assert.AreEqual(qualScore, 65); } Assert.AreEqual(cloneCopy.ToString(), "ACUGGA"); Assert.AreEqual(cloneCopy.Type, FastQFormatType.Illumina); }