public void Examples() { var tf = new TaskFinderFactory <ExampleTest>(); var tasks = tf.Tasks(new ExampleTest()); Assert.AreEqual(3, tasks.Count()); }
public void None() { var tf = new TaskFinderFactory <object>(); var tasks = tf.Tasks(new object()); Assert.AreEqual(0, tasks.Count()); }
public void InitializeExample() { var tf = new TaskFinderFactory <ExampleTest>(); var tasks = tf.Tasks(new ExampleTest()); var runners = from t in tasks where t.GetType() == typeof(InitializeRunner) select t; Assert.AreEqual(1, runners.Count()); var every = runners.First(); Assert.IsNotNull(every); }