Пример #1
0
        // Call the compare method of corresponding pattern class to verify the expr tree
        public void Verify()
        {
            // NOTE: The difftree assignment will change later once we go into multi level Query components
            this.diffTree = this.currentTree;

            //Do the comparison on the diff ET
            bool result = this.pattern.Compare(this);

            if (result)
            {
                //Only if succeeded, replace the prev tree with current, else preserve since it will be needed for debugging.
                this.prevTree = this.currentTree;
            }
            else
            {
                AstoriaTestLog.FailAndContinue(new Exception("Tree comparison failed"));
            }
        }