コード例 #1
0
        public void ListSourceGetEnumerator()
        {
            tlog.Debug(tag, $"ListSourceGetEnumerator START");

            var para          = new TestEnumerable();
            var testingTarget = new ListSource(para);

            Assert.IsNotNull(testingTarget, "should be not null");
            Assert.IsInstanceOf <ListSource>(testingTarget, "should be an instance of testing target class!");

            var ret = testingTarget.GetEnumerator();

            Assert.IsNotNull(ret, "The Enumerator of ListSouce should not be null.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"ListSourceGetEnumerator END (OK)");
        }