Generators - Testura/Testura.Code GitHub Wiki

Generators

Generators are used to generate class members or parts of statements. Testura.Code provides these generators:

Class

  • ConstructorGenerator - Generate a class constructor
  • FieldGenerator - Generate a class field
  • Property - Generate a class property

Common

  • ArgumentGenerator - Generate argument list for a method or constructor
  • AttributeGenerator - Generate attributes
  • BodyGenerator - Generate body to class, constructor, method etc,
  • ModifierGenerator - Generate the modifiers (public, private, static, etc)
  • PropertyGenerator - Generate properties within a class with various getter / setter configurations
  • ParameterGenerator - Generate parameters to a method or constructor
  • ReferenceGenerator - Generate references (see reference section)
  • TypeGenerator - Generate types

Special

  • NunitGenerator - Generate Asserts