Microsoft.Protocols.TestManager.Kernel.CaseListItem.FormatText C# (CSharp) Méthode

FormatText() public méthode

Generates a line in the plain text case list.
public FormatText ( bool showOutcome, Separator separator ) : string
showOutcome bool Shows the outcome
separator Separator The separator
Résultat string
        public string FormatText(bool showOutcome, Separator separator)
        {
            if (!showOutcome) return Name;
            if (separator == Separator.Space) return string.Format("{0} {1}", Outcome, Name);
            return string.Format("{0},{1}", Outcome, Name);
        }