Exemple #1
0
        public void ListSourceGetItem()
        {
            tlog.Debug(tag, $"ListSourceGetItem 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!");
            Assert.AreEqual(testingTarget.GetItem(0), 1, "The value of the first item of ListSouce should be 1.");

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