示例#1
0
        public void DirectoriesSource_FullLoadTest()
        {
            var source = new DirectoriesSource("./Directories", true, RuntimeContext.Empty);

            var fired = source.Rows.Count();

            Assert.AreEqual(3, fired);
        }
示例#2
0
        public void DirectoriesSource_FullLoadTest()
        {
            var source = new DirectoriesSource("./Directories", true, InterCommunicator.Empty);

            var fired = source.Rows.Count();

            Assert.AreEqual(3, fired);
        }
示例#3
0
        public void DirectoriesSource_CancelledLoadTest()
        {
            var tokenSource = new CancellationTokenSource();

            tokenSource.Cancel();
            var source = new DirectoriesSource("./Directories", true, new InterCommunicator(tokenSource.Token));

            var fired = source.Rows.Count();

            Assert.AreEqual(0, fired);
        }
示例#4
0
        public void DirectoriesSource_CancelledLoadTest()
        {
            var tokenSource = new CancellationTokenSource();

            tokenSource.Cancel();
            var source = new DirectoriesSource("./Directories", true, new RuntimeContext(tokenSource.Token, new ISchemaColumn[0]));

            var fired = source.Rows.Count();

            Assert.AreEqual(0, fired);
        }