public void ObjectIsEnumeratedJustOnce() { const string STRING_TO_ENUMERATE = "Foo"; var enumeratedString = STRING_TO_ENUMERATE.ToEnumerable().ToList(); Assert.AreEqual(1, enumeratedString.Count); }
public void SingleObjectIsEnumerated() { const string STRING_TO_ENUMERATE = "Foo"; var enumeratedString = STRING_TO_ENUMERATE.ToEnumerable(); CollectionAssert.Contains(enumeratedString, STRING_TO_ENUMERATE); }