示例#1
0
        }         // StepFailed

        protected virtual T StepFailed <T>() where T : ATrace
        {
            bool isStepEnabled = Trail.MyInputData.Configuration.IsTraceEnabled <T>();

            if (!isStepEnabled)
            {
                Trail.AddNote(
                    "Step '" + typeof(T).FullName + "' has failed but is disabled hence marked as passed."
                    );
            }             // if

            return(isStepEnabled
                                ? StepForceFailed <T>()
                                : StepDone <T>());
        }         // StepFailed