private static void AssertInstance <T1, T2>(INamedItemFactory <T1, T2> targets, string itemName, string expectedTypeName) where T1 : class { Assert.Equal(expectedTypeName, targets.CreateInstance(itemName).GetType().Name); }
private static void AssertInstance <T1, T2>(INamedItemFactory <T1, T2> targets, string itemName, params string[] expectedTypeNames) where T1 : class { Assert.Contains(targets.CreateInstance(itemName).GetType().Name, expectedTypeNames); }