public void FilterInstances_BasedOnListOfTypes() { var instances = new ICommon[] { new TypeOne(), new TypeTwo() }; instances.CreatedFrom(new Type[] { typeof(string) }) .Should() .HaveCount(0); instances.CreatedFrom(new Type[] { typeof(TypeTwo) }) .Should() .HaveCount(1); instances.CreatedFrom(new Type[] { typeof(TypeOne), typeof(TypeTwo), typeof(TypeTwo) }) .Should() .HaveCount(2); }