Ejemplo n.º 1
0
        public void WriteClasses_ClassNameIsBlackListed_SkipsClass(string className)
        {
            //ARRANGE
            var def = new ObjectDef();

            def.Name   = className;
            def.Fields = new List <Field>()
            {
                new Field
                {
                    Name = "ArtifactID"
                }
            };

            //ACT
            var text = _writer.WriteClasses(new Application
            {
                Objects = new List <ObjectDef> {
                    def
                }
            });

            //ASSERT
            Assert.Empty(text);
        }
Ejemplo n.º 2
0
 public static string WriteClasses(this Application app)
 {
     return(classWriter.WriteClasses(app));
 }