[stringtemplate-interest] (c#) problem with separator clause

Kunle Odutola Kunle_Odutola at hotmail.com
Fri Jun 22 14:40:40 PDT 2007


Hi,


> I have recently started play with String Template and of course I have
found
> many problems :-). First of them is issue with separator clause if data is
> more complicated type. For example this test is not successful:
>
>         [TestMethod]
>
>         public void SeparatorCustomersListTest()
>
>         {

..

>             string expected = "Martha|Agnes|Margaret";

..

>         }

> Actual is "MarthaAgnesMargaret" - separator is missed.

I got the same behaviour.

> If I used List<string> (instead of List<OneCustomer>) result data was so
as
> I expected, example:
>
> Is it problem or feature?

I'm thinking problem. I've added it to my todo. Thanks for the report.

Kunle



More information about the stringtemplate-interest mailing list