示例#1
0
        public void ShouldCreateAchiveDbSourceFile()
        {
            var archiveDbCodDom = new ArchiveDbCodeDom();
            var code            = archiveDbCodDom.GenerateSource(metaData.coreFileMetaData,
                                                                 metaData.extensionFileMetaData);

            Assert.NotEmpty(code);
        }
示例#2
0
        public void ShouldCreateAchiveDbSourceFileWithOptions()
        {
            var archiveDbCodDom = new ArchiveDbCodeDom(false,
                                                       new FileReaderConfiguration()
            {
                BufferSize = 1024
            },
                                                       new RowFactoryConfiguration()
            {
                Strategy = RowStrategy.Greedy
            });
            var code = archiveDbCodDom.GenerateSource(metaData.coreFileMetaData,
                                                      metaData.extensionFileMetaData);

            Assert.NotEmpty(code);
        }