FWIW, I tried putting a data attribute on a constructor in the current build
and it works as expected.

Jeff. 

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of max2256
Sent: Tuesday, February 03, 2009 1:38 PM
To: MbUnit.User
Subject: MbUnit Re: CsvData problem


Thank you... I will try that!

On Feb 3, 4:16 pm, Jeff Brown <[email protected]> wrote:
> Not sure.  Maybe another 2 weeks. It hasn't quite baked yet.  But you 
> can download nightly builds fromhttp://www.gallio.org/Distributables/
>
> On Feb 2, 2009, at 1:10 PM, max2256 <[email protected]> wrote:
>
>
>
> > Will MbUunit 3.0.6 be released any time soon?
>
> > On Feb 2, 8:26 am, max2256 <[email protected]> wrote:
> >> What do you mean by putting it on the type?
>
> >> On Jan 31, 4:03 pm, Jeff Brown <[email protected]> wrote:
>
> >>> That's a bug.  We should be able to apply the attribute to the 
> >>> constructor.  However, try putting it on the type instead.
>
> >>> On Jan 29, 2009, at 2:35 PM, max2256 <[email protected]> wrote:
>
> >>>> Hi
>
> >>>> I have the following values in my csv file
>
> >>>> firstName,LastName,age
> >>>> Jim,Morrison,40
> >>>> Pat,King,25
>
> >>>> Now let's say I want to use the CsvData attribute this way:
>
> >>>> public class PersonTest
> >>>> {
> >>>>     private Person p;
>
> >>>>     [CsvData(FilePath = "Persons.csv", HasHeader = true)]
> >>>>     public PersonTest( string fName, string lName, int age )
> >>>>     {
> >>>>          p = new Person(fName,lName,age);
> >>>>     }
> >>>> }
>
> >>>> I've noticed that it is not possible to use le CsvData attribute 
> >>>> at the constructor level, the only way of achieving this is with 
> >>>> the following :
>
> >>>>   public PersonTest( [CsvData(FilePath = "Persons.csv", HasHeader 
> >>>> = true)] string fName, string lName, int age )
>
> >>>> My question is how can I get the lName and age value if I only 
> >>>> put the CsvData attribute only on the first parameter ?
>
> >>>> Thanx


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to