Ejemplo n.º 1
0
        protected override TestDawgNode CreateInstance(IEnumerable <string> words)
        {
            var builder = new DawgBuilder();

            foreach (var word in words)
            {
                builder.Insert(word);
            }

            var root = builder.Finish();

            return(new TestDawgNode(root));
        }