Ver por etiquetas

Testing T4 templates using mock framework (MoQ)
Published 27/2/2008 18:08 | Jose Escrich
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...