public void StringConcatEnumerable() { StringBuilder sbExpected = new StringBuilder(); foreach (var item in EnumerableEnum()) { sbExpected.Append(item.ToString()); } string result = String2.Concat(EnumerableEnum()); string expected = sbExpected.ToString(); Assert.IsNotNull(result); Assert.AreEqual(expected.Length, result.Length); Assert.AreEqual(expected, result); }
public void StringConcatEnumerableStringNull() { String2.Concat((IEnumerable <string>)null); }
public void StringConcatEnumerableNull() { String2.Concat <AttributeTargets>(null); }