コード例 #1
0
        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());
        }
コード例 #2
0
        public void FixedColumnWidthLineSplit()
        {
            ILineSplitter splitter = new FixedColumnWidthLineSplitter(2, 5, 3, 6);

            CollectionAssert.AreEquivalent(new[] { "22", "55555", "333", "666666" }, splitter.Split("2255555333666666").ToArray());
        }