Esempio n. 1
0
        public void Examples()
        {
            var tf    = new TaskFinderFactory <ExampleTest>();
            var tasks = tf.Tasks(new ExampleTest());

            Assert.AreEqual(3, tasks.Count());
        }
Esempio n. 2
0
        public void None()
        {
            var tf    = new TaskFinderFactory <object>();
            var tasks = tf.Tasks(new object());

            Assert.AreEqual(0, tasks.Count());
        }
Esempio n. 3
0
        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);
        }