Geeks With Blogs
José Escrich Blog extensibility thoughts T4 Templates Text Transformation Templates
Testing T4 templates using mock framework (MoQ)
Some time ago I wrote a post in which I talk about how you can do unit tests over your text templates using the GAX Host. In that example I used a very simple template which receives just a couple of string properties. But it becomes more complicated when you have properties which are complex types ok I know, most probably you're thinking that can resolve that just creating your own mock objects and you're right. But the thing is that you can do that in a really easiest way using a mock framework. ......

Posted On Wednesday, February 27, 2008 6:09 PM

Testing T4 templates using the GAX host
Download Sample Package I guess that there are not a best approach to do the tests without a built in support in the T4 template host. Nevertheless in the Web Service Software Factory we did a very first approach of how you could write test units for t4 templates. Suppose that we have a template which the output is a simple class, in the following example I did a simple package which contains a T4 template called Programs.cs.t4 so, the idea is, run the transformation and then try to compile the class ......

Posted On Thursday, May 3, 2007 3:56 PM

New T4 Template Visual Studio Editor.
During this past month I've been working in a new T4 template editor as a part of the SFT. If you're working with dsl or gax you already know, how the editor looks when you try to edit a text template file, it looks like this: So now you can have a fully colorized text editor for your T4 templates like the ASP.NET Vs editor and you can get it now downlaoding the ClariuS Software Factories Toolkit here. Colorizing, Intellisense and Validation In this release it's providing colorizing and intellisense ......

Posted On Thursday, June 7, 2007 11:31 AM

ClariuS Software Factories Toolkit June CTP is out!.
The Software Factories Toolkit June CTP is finally out and the key improvements in this release are: - Recipe Designer with a redesigned user experiencie and round tripping support, so it could uses the .xml recipe files as is. - T4 Templates Editor, an useful editor with colorizing, intellisense and support to preview transformation in design time. - Multi package setup wizard, a recipe which generate a wix setup project with all the package contained in a solution. The most interesting thing here, ......

Posted On Thursday, June 7, 2007 11:28 AM

Copyright © Jose Escrich | Powered by: GeeksWithBlogs.net