Construct( Func <MultiMapData <TK, TV>, TCollection> ctorImplementor, Func <IEnumerable <TV>, IEqualityComparer <TV>, TVCol> ctorValCol, Func <MultiMapData <TK, TV>, IEqualityComparer <TVCol> > comparerCollection, MultiMapData <TK, TV> data, string concreteTypeName, string fixtureName = "") { var args = new MultiMapDataConcrete <TK, TV, TCollection, TVCol>( () => ctorImplementor(data), (x) => ctorValCol(x, data.ComparerValue), comparerCollection != null ? comparerCollection(data) : null, data); var exposedParams = new ExposedTestFixtureParams() { TestName = $"{fixtureName}({concreteTypeName}, {data.TestDataName})", Arguments = new object[] { args }, Properties = new PropertyBag(), RunState = RunState.Runnable, TypeArgs = new Type[] { typeof(TK), typeof(TV), typeof(TCollection), typeof(TVCol) } }; return(new TestFixtureParameters(exposedParams)); }
Construct( Func <MapData <TK, TV>, TCollection> ctorImplementor, MapData <TK, TV> data, string concreteTypeName, string fixtureName = "") { var args = new MapDataConcrete <TK, TV, TCollection>( () => ctorImplementor(data), data); var exposedParams = new ExposedTestFixtureParams() { TestName = $"{fixtureName}({concreteTypeName}, {data.TestDataName})", Arguments = new object[] { args }, Properties = new PropertyBag(), RunState = RunState.Runnable, TypeArgs = new Type[] { typeof(TK), typeof(TV), typeof(TCollection), } }; return(new TestFixtureParameters(exposedParams)); }
public static TestFixtureParameters Construct <T, K, L>(TestData <T, K> data) { var exposedParams = new ExposedTestFixtureParams() { Arguments = new object[] { data }, Properties = new PropertyBag(), RunState = RunState.Runnable, TypeArgs = new Type[] { typeof(T), typeof(K), typeof(L), } }; return(new TestFixtureParameters(exposedParams)); }