Skip to content

stofte/t4-template-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dbffdc1 · Jan 30, 2015

History

3 Commits
Jan 30, 2015
Jan 30, 2015
Jan 30, 2015
Jan 30, 2015
Jan 30, 2015
Jan 30, 2015
Jan 30, 2015

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages