Example #1
0
            public virtual ExecutionTreeBuilder eventScope()
            {
                ExecutionTreeStructureAssertion currentAssertion = activityInstanceStack.Peek();

                currentAssertion.ExpectedIsEventScope = true;
                return(this);
            }
Example #2
0
            public virtual ExecutionTreeBuilder id(string id)
            {
                ExecutionTreeStructureAssertion currentAssertion = activityInstanceStack.Peek();

                currentAssertion.ExpectedId = id;
                return(this);
            }
Example #3
0
 public static void describe(ExecutionTreeStructureAssertion assertion, string prefix, StringBuilder errorBuilder)
 {
     errorBuilder.Append(prefix);
     errorBuilder.Append(assertion);
     errorBuilder.Append("\n");
     foreach (ExecutionTreeStructureAssertion child in assertion.childAssertions)
     {
         describe(child, prefix + "   ", errorBuilder);
     }
 }
Example #4
0
            public virtual ExecutionTreeBuilder child(string activityId)
            {
                ExecutionTreeStructureAssertion newInstance = new ExecutionTreeStructureAssertion();

                newInstance.ExpectedActivityId = activityId;

                ExecutionTreeStructureAssertion parentInstance = activityInstanceStack.Peek();

                parentInstance.addChildAssertion(newInstance);

                activityInstanceStack.Push(newInstance);

                return(this);
            }
Example #5
0
 public virtual void addChildAssertion(ExecutionTreeStructureAssertion childAssertion)
 {
     this.childAssertions.Add(childAssertion);
 }
Example #6
0
 public ExecutionTreeBuilder(string rootActivityInstanceId)
 {
     rootAssertion = new ExecutionTreeStructureAssertion();
     rootAssertion.ExpectedActivityId = rootActivityInstanceId;
     activityInstanceStack.Push(rootAssertion);
 }