Hi
Can you create an issue for this at
http://code.google.com/p/mb-unit/issues/list? I could reproduced it,
but unfortunately I'm a little sick right now to take a deeper look.
You should also try runing it with other runners (Icarus or Echo). I
think TD.NET can't handle generic fixtures properly.
Julián
On 6/19/08, Mike O <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I am having a problem implementing a generic test fixture. When I
> execute the test it fails with an InvalidOperationException telling me
> that it can't resolve member 'Void
> VerifyGetMemberByLastnameAndDobAndReturnValidMember
>
> Any advice would be appreciated. Code below.
> Thanks!
>
> [TestFixture]
> [Row(typeof(IDXMemberService))]
> public class MemberServiceTest<T> where T : IMemberService, new()
> {
> private IMemberService _svc;
>
> [SetUp]
> public void Init()
> {
> _svc = new T();
> }
>
> [Test ]
> [Category("Integration")]
> [Row("lastname")]
> [Row("[EMAIL PROTECTED]@@", ExpectedException = typeof(Exception))]
> public void
> VerifyGetMemberByLastnameAndDobAndReturnValidMember(string lastname)
> {
>
> var member = _svc.GetMember(lastname, new DateTime(1968,
> 10, 14));
>
> Assert.IsNotNull(member);
> Assert.AreEqual("lastname", member.Lastname.ToLower());
> }
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---