Exemple #1
0
        public void AddColumns()
        {
            // column_span_2.pdf
            var cols = new List <(float, float)>()
            {
                (232.2996050000001f, 311.1031500000001f), (486.4540550000001f, 508.1806500000001f)
            };
            var actual = Stream.AddColumns(cols, ColumnSpan2Text, 2);

            var expected = new List <(float, float)>()
            {
                (232.2996050000001f, 311.1031500000001f),
                (486.4540550000001f, 508.1806500000001f),
                (336.1442f, 366.2782f),
                (378.51135f, 397.9616500000001f),
                (415.64969999999994f, 453.61170000000004f)
            };

            Assert.Equal(expected.Count, actual.Count);
            Assert.Equal(expected, actual, new TestHelper.ListTuple2EqualityComparer(3));
        }