public static EnumerateFirstElement ( IEnumerable enumerable ) : object | ||
enumerable | IEnumerable |
/// The |
Результат | object |
public void EnumerateFirstElement() { string expected = "Hiya"; IList list = new string[] { expected, "Aw!", "Man!" }; IEnumerator enumerator = list.GetEnumerator(); object actual = ObjectUtils.EnumerateFirstElement(enumerator); Assert.AreEqual(expected, actual); }