Skip to content
Jeff Ward edited this page Nov 26, 2022 · 2 revisions

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
Clone this wiki locally