public void CombinationFactory_WhenGetCombinationForComplexType_ShouldReturnCombination() { var combinationFactory = new TestValueFactory(); var combinations = combinationFactory.GetTestValues("test", typeof(List <string>), new List <string> { "hej " }); Assert.AreEqual(2, combinations.Length); }
public void CombinationFactory_WhenGetCombinationForTypeThatsInExcludeList_ShouldReturnEmptyArray() { var combinationFactory = new TestValueFactory(); var combinations = combinationFactory.GetTestValues("test", typeof(string), "s", new List <Func <string, Type, bool> > { (s, type) => type == typeof(string) }); Assert.AreEqual(0, combinations.Length); }