<Rule Id="xUnit1026" Action="None" /> <!-- Theory methods should use all of their parameters -->
<Rule Id="xUnit2013" Action="None" /> <!-- Do not use equality check to check for collection size. -->
<Rule Id="xUnit2017" Action="None" /> <!-- Do not use Contains() to check if a value exists in a collection -->
- <Rule Id="xUnit2018" Action="None" /> <!-- Do not compare an object's exact type to an abstract class or interface -->
</Rules>
</RuleSet>
return Create(catalog);
}
- public static CompositionContainer CreateAttributed(params object[] parts)
- {
- var container = new CompositionContainer();
- var partsArray = new ComposablePart[parts.Length];
-
- for (int i = 0; i < parts.Length; i++)
- {
- Assert.IsNotType<Type>(parts[i]);
- partsArray[i] = PartFactory.CreateAttributed(parts[i]);
- }
-
- return Create(partsArray);
- }
-
public static CompositionContainer Create(CompositionContainer parent, params ComposablePart[] parts)
{
CompositionContainer container;