Beispiel #1
0
 public void Cyclic_Mixed()
 {
     Assert.Throws <Exception>(() =>
     {
         ProcessorsSelector.Selectors <ITest7>();
     });
 }
Beispiel #2
0
 public void Cyclic_ProcessBefore()
 {
     Assert.Throws <Exception>(() =>
     {
         ProcessorsSelector.Selectors <ITest6>();
     });
 }
Beispiel #3
0
 public void Cyclic_ProcessAfter()
 {
     Assert.Throws <Exception>(() =>
     {
         ProcessorsSelector.Selectors <ITest5>();
     });
 }
Beispiel #4
0
        public void NoOrderingAttributtes()
        {
            var selectors = ProcessorsSelector.Selectors <ITest1>();

            Assert.NotNull(selectors);
            Assert.AreEqual(selectors.Count, 3);
        }
Beispiel #5
0
        public void NoClassesImplementsInterface()
        {
            var selectors = ProcessorsSelector.Selectors <ITest0>();

            Assert.NotNull(selectors);
            Assert.Zero(selectors.Count);
        }
Beispiel #6
0
        public void ProcessAfter_Double()
        {
            var selectors = ProcessorsSelector.Selectors <ITest8>();

            Assert.NotNull(selectors);
            Assert.AreEqual(selectors.Count, 3);
            Assert.AreEqual(selectors[0].GetType(), typeof(ClassTest8_2));
        }
Beispiel #7
0
        public void ProcessBefore_And_ProcessAfter()
        {
            var selectors = ProcessorsSelector.Selectors <ITest4>();

            Assert.NotNull(selectors);
            Assert.AreEqual(selectors.Count, 3);
            Assert.AreEqual(selectors[0].GetType(), typeof(ClassTest4_1));
            Assert.AreEqual(selectors[1].GetType(), typeof(ClassTest4_2));
            Assert.AreEqual(selectors[2].GetType(), typeof(ClassTest4_3));
        }