NFluent.Extensibility.MessageBlock.FullLabel C# (CSharp) 메소드

FullLabel() 개인적인 메소드

The full label.
private FullLabel ( ) : string
리턴 string
        private string FullLabel()
        {
            string fullLabel;
            if (string.IsNullOrEmpty(this.comparisonLabel))
            {
                if (this.customMessage == null)
                {
                    fullLabel = string.Format("The {0}:", this.block);
                }
                else
                {
                    fullLabel = this.block.CustomMessage(this.customMessage);
                }
            }
            else
            {
                fullLabel = string.Format(
                    this.customMessage ?? "The {0}: {1}", 
                    this.block, 
                    this.comparisonLabel);
            }

            return fullLabel;
        }