Ejemplo n.º 1
0
        private static void doRunAutoScope(RegexAdvisor advisor, Scope root)
        {
            ThreadStart start = delegate
            {
                advisor.AutoScope(root);
            };

            Thread runner = new Thread(start);

            runner.Start();
        }
        public void NoAutoSuggestions_NothingHappens()
        {
            Scope root = new Scope("abc");

            auto.AutoScope(root);
            Assert.AreEqual(0, root.GetInnerScopes().Length);
        }