예제 #1
0
 public XMLFileCreator(string output, Encoding encode)
 {
     this.dataGenerator    = new RandomDataGenerator();
     this.catalogGenerator = new CatalogGenerator(this.dataGenerator);
     this.outputPath       = output;
     encoding = encode;
 }
예제 #2
0
        public void GenerateCatalogTest()
        {
            var testPath = "../../../TestData/CatalogFromRevit.json";

            CatalogGenerator.FromUri(testPath, "../");
            Assert.True(File.Exists("../SampleCatalog.g.cs"));
            Assert.Contains("public static List<ContentElement> All = new List<ContentElement>", File.ReadAllText("../SampleCatalog.g.cs"));
        }
예제 #3
0
        public void GenerateCatalogTest()
        {
            var testPath = "../../../TestData/CatalogFromRevit.json";

            CatalogGenerator.FromUri(testPath, "../../../");
        }