Exemple #1
0
        public void ListSourceGetPosition()
        {
            tlog.Debug(tag, $"ListSourceGetPosition 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.GetPosition(1), 0, "The index of the first item of ListSouce should be 0.");

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