Пример #1
0
        public void AutoFormatTest2()
        {
            BinaryColumnFormat format = new BinaryColumnFormat(10);

            byte[][] values = new byte[][]
            {
                new byte[] { 0 }
            };
            format.AutoFormat(values, false);

            // Not less than the characters required to display null values.
            Assert.AreEqual(ColumnFormat.NullText.Length, format.MaxWidth);
        }
Пример #2
0
        public void AutoFormatTest1()
        {
            BinaryColumnFormat format = new BinaryColumnFormat(10);

            byte[][] values = new byte[][]
            {
                new byte[] { 0 },
                new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 },
            };
            format.AutoFormat(values, false);

            Assert.AreEqual(22, format.MaxWidth);
        }