Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T4 Text Template Example with Unit Tests Build status

The T4.Generator project contains, along with the code generator itself, a console program that reads XML files to write C# code to the console. T4.Test contains an example of how the generated code can be unit tested.

The unit tests are generated by a design time T4 text template that references the output folder of the T4.Generator project. Since VS cannot detect this dependency, the dependency graph must be specified otherwise. First start by building the T4.Generator project, then manually transform the design time unit test template (right click and select run custom tool), after which the VS test runner can be used normally.

About

Example T4 Text Templates and testing

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages