public void ValidateSequenceRangeGroupingToString() { ISequenceRange range1 = new SequenceRange("chr20", 0, 3); ISequenceRange range2 = new SequenceRange("chr21", 0, 4); IList <ISequenceRange> ranges = new List <ISequenceRange>(); ranges.Add(range1); ranges.Add(range2); var rangegrouping = new SequenceRangeGrouping(ranges); string actualString = rangegrouping.ToString(); string expectedStr = this.utilityObj.xmlUtil.GetTextValue(Constants.ToStringNodeName, Constants.SequenceRangeGroupingExpectedNode); Assert.AreEqual(expectedStr.Replace("\\r\\n", ""), actualString.Replace(System.Environment.NewLine, "")); }
public void TestSequenceRangeGroupingToString() { ISequenceRange range1 = new SequenceRange("chr20", 0, 3); ISequenceRange range2 = new SequenceRange("chr21", 0, 4); IList <ISequenceRange> ranges = new List <ISequenceRange>(); ranges.Add(range1); ranges.Add(range2); SequenceRangeGrouping rangegrouping = new SequenceRangeGrouping(ranges); string actualString = rangegrouping.ToString(); string expectedString = "ID=chr20 Start=0 End=3\r\nID=chr21 Start=0 End=4\r\n".Replace("\r\n", Environment.NewLine); Assert.AreEqual(actualString, expectedString); }
public void ValidateSequenceRangeGroupingToString() { ISequenceRange range1 = new SequenceRange("chr20", 0, 3); ISequenceRange range2 = new SequenceRange("chr21", 0, 4); IList<ISequenceRange> ranges = new List<ISequenceRange>(); ranges.Add(range1); ranges.Add(range2); var rangegrouping = new SequenceRangeGrouping(ranges); string actualString = rangegrouping.ToString(); string expectedStr = this.utilityObj.xmlUtil.GetTextValue(Constants.ToStringNodeName, Constants.SequenceRangeGroupingExpectedNode); Assert.AreEqual(expectedStr.Replace("\\r\\n", ""), actualString.Replace(System.Environment.NewLine, "")); }
public void TestSequenceRangeGroupingToString() { ISequenceRange range1 = new SequenceRange("chr20", 0, 3); ISequenceRange range2 = new SequenceRange("chr21", 0, 4); IList<ISequenceRange> ranges = new List<ISequenceRange>(); ranges.Add(range1); ranges.Add(range2); SequenceRangeGrouping rangegrouping = new SequenceRangeGrouping(ranges); string actualString = rangegrouping.ToString(); string expectedString = "ID=chr20 Start=0 End=3\r\nID=chr21 Start=0 End=4\r\n".Replace("\r\n", Environment.NewLine); Assert.AreEqual(actualString, expectedString); }