public void WithSpaceFixedColumnWidthLineSplit() { ILineSplitter splitter = new FixedColumnWidthLineSplitter(-2, -5, -3, -6); CollectionAssert.AreEquivalent(new[] { "2 ", "5 ", "3 ", "6 " }, splitter.Split("2 5 3 6 ").ToArray()); }
public void FixedColumnWidthLineSplit() { ILineSplitter splitter = new FixedColumnWidthLineSplitter(2, 5, 3, 6); CollectionAssert.AreEquivalent(new[] { "22", "55555", "333", "666666" }, splitter.Split("2255555333666666").ToArray()); }