Exemple #1
0
        public void PriorityTest10()
        {
            var soba = new Soba();
            var prio = new TPrioAB();

            soba.Register(new StubPrioBComponent(prio, true));
            soba.Register(new StubPrioAComponent(prio, true));

            Assert.Equal
            (
                "A1A>[A ... = #[B ...] ]<A",
                soba.Eval("#[A ... = #[B ...] ]")
            );
        }
Exemple #2
0
        public void PriorityTest3()
        {
            var soba = new Soba();
            var prio = new TPrioAB();

            soba.Register(new StubPrioBComponent(prio, false));
            soba.Register(new StubPrioAComponent(prio, false));

            Assert.Equal
            (
                "A2A>[A ... = B1B>[B ...]<B ]<A",
                soba.Eval("#[A ... = #[B ...] ]")
            );
        }