public void DirectoriesSource_FullLoadTest() { var source = new DirectoriesSource("./Directories", true, RuntimeContext.Empty); var fired = source.Rows.Count(); Assert.AreEqual(3, fired); }
public void DirectoriesSource_FullLoadTest() { var source = new DirectoriesSource("./Directories", true, InterCommunicator.Empty); var fired = source.Rows.Count(); Assert.AreEqual(3, fired); }
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); }
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); }