Exemplo n.º 1
0
        // <summary>
        // Prepare datastructure for validation
        // </summary>
        // <param name="expectedTrace">expected trace</param>
        private static void PrepareActualTrace()
        {
            // remove ignorable traces
            var ignorableSteps =
                (from step in TraceValidator.s_actualTrace.Steps
                 where TraceValidator.s_expectedTrace.CanBeIgnored(step)
                 select step).ToList();

            foreach (IActualTraceStep step in ignorableSteps)
            {
                TraceValidator.s_actualTrace.Steps.Remove(step);
            }

            foreach (IActualTraceStep step in TraceValidator.s_actualTrace.Steps)
            {
                step.Validated = 0;
                TraceValidator.AddActualStepCount(step);
            }
        }