public void CartesianProduct_EmptyValues_ValidateSizeMoreThan() { AssertValidation.SizeMoreThan( s => CombinationUtils.CartesianProduct <int>(new IEnumerable <int> [s]).ToArray(), "Values", 0); }
public void CartesianProduct_0ValueNull_ValidateNotNull0Value() { AssertValidation.NotNullAll( () => CombinationUtils.CartesianProduct <int>(null, new int[0]).ToArray(), "Values", 0); }
public void CartesianProduct_1Array_Product() { var val = CombinationUtils.CartesianProduct <int>(new int[] { 1, 2 }).ToArray(); Assert.AreEqual(2, val.Length); Assert.AreEqual(1, val[0][0]); Assert.AreEqual(2, val[1][0]); }
public void CartesianProduct_ValuesNull_ValidateNotNull() { AssertValidation.NotNull( () => CombinationUtils.CartesianProduct <int>(null).ToArray(), "Values"); }