Build() public method

public Build ( ) : string
return string
 public IBuildParameterTypeBuilder AsText(Action<IBuildParameterTextTypeBuilder> textBuilder)
 {
     var builder = new BuildParameterTextTypeBuilder();
     textBuilder(builder);
     var special = builder.Build();
     if (!string.IsNullOrEmpty(special))
         m_special = special;
     return this;
 }
        public IBuildParameterTypeBuilder AsText(Action <IBuildParameterTextTypeBuilder> textBuilder)
        {
            var builder = new BuildParameterTextTypeBuilder();

            textBuilder(builder);
            var special = builder.Build();

            if (!string.IsNullOrEmpty(special))
            {
                m_special = special;
            }
            return(this);
        }
        public void BuildParameterTextTypeBuilder_FormatTest(int validation, string regexp, string validationMessage, string expected)
        {
            // Arrange
            var testObject = new BuildParameterTextTypeBuilder();
            var validationMap = new Dictionary<int, Action>
            {
                {0, () => testObject.AsAny()},
                {1, () => testObject.AsNotEmpty()},
                {2, () => testObject.AsRegex(regexp, validationMessage)}
            };
            if (!validationMap.ContainsKey(validation))
                Assert.Inconclusive("Wrong 'validation' argument value passed");
            validationMap[validation]();

            // Act
            var result = testObject.Build();

            // Assert
            result.Should().Be(expected);
        }