Hi, I have the following combinatorial test:

[Test]
public void SetAncestorAsDirectParent(
      [Factory("GetDataForSetAncestorAsDirectParentTest")]
IEntityContext ctx,
      [EnumData(typeof(AreChildrenLoadedFlag))] AreChildrenLoadedFlag
areNewParentChildrenLoaded,
      [EnumData(typeof(AreChildrenLoadedFlag))] AreChildrenLoadedFlag
areOldParentChildrenLoaded)
{
...
}

I would like to create dynamically another test in another test class
with the following signature:

[Test]
public void SetAncestorAsDirectParent(
      [EnumData(typeof(AreChildrenLoadedFlag))] AreChildrenLoadedFlag
areNewParentChildrenLoaded,
      [EnumData(typeof(AreChildrenLoadedFlag))] AreChildrenLoadedFlag
areOldParentChildrenLoaded)
{
...
}

It invokes the original test passing some known IEntityContext
instance in the ctx parameter.

On one hand, in my StaticTestFactory method I can manually compute the
cartesian multiplication yielding all the <areNewParentChildrenLoaded,
areOldParentChildrenLoaded> pairs and generate the right number of non
combinatorial tests invoking the original test method.

On the other hand, I am wondering if there is a better way. Or may be
I still have to manually compute the products, but the Gallio
infrastructure can assist me in doing so the way it does for
statically compiled tests.

Any ideas?

Thanks.
--~--~---------~--~----~------------~-------~--~----~
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