コード例 #1
0
        void expectedColumns_should_inferMaxFromFirstRow()
        {
            var tab = new PlainTextTable();

            tab.ImportRows(create_test_data());

            Assert.Equal(3, tab.ColumnsExpected);
        }
コード例 #2
0
        void expectedColumns_should_throwExceptionIfRowElementLengthIsInvalid()
        {
            var tab = new PlainTextTable(4);

            Assert.Throws <UnexpectedColumnCountException>(() => tab.ImportRows(create_test_data()));
        }