예제 #1
0
        public void ObjectIsEnumeratedJustOnce()
        {
            const string STRING_TO_ENUMERATE = "Foo";

            var enumeratedString = STRING_TO_ENUMERATE.ToEnumerable().ToList();

            Assert.AreEqual(1, enumeratedString.Count);
        }
예제 #2
0
        public void SingleObjectIsEnumerated()
        {
            const string STRING_TO_ENUMERATE = "Foo";

            var enumeratedString = STRING_TO_ENUMERATE.ToEnumerable();

            CollectionAssert.Contains(enumeratedString, STRING_TO_ENUMERATE);
        }