public void ValidateSAMFormatterFormatString() { string filePath = Utility._xmlUtil.GetTextValue( Constants.SamFormatterFileNode, Constants.FilePathNode); ISequenceAlignmentParser parser = new SAMParser(); IList <ISequenceAlignment> alignment = parser.Parse(filePath); SAMFormatter formatter = new SAMFormatter(); string writer = formatter.FormatString(alignment[0]); Assert.AreEqual(writer, Constants.FormatterString); }
public void ValidateSAMFormatterFormatString() { string filePath = utilityObj.xmlUtil.GetTextValue( Constants.SamFormatterFileNode, Constants.FilePathNode).TestDir(); ISequenceAlignmentParser parser = new SAMParser(); IList <ISequenceAlignment> alignment = parser.Parse(filePath).ToList(); SAMFormatter formatter = new SAMFormatter(); string writer = formatter.FormatString(alignment[0]); Assert.AreEqual(writer, Constants.FormatterString.Replace("\r\n", Environment.NewLine)); }