NFluent.Extensibility.MessageBlock.MessageBlock C# (CSharp) Method

MessageBlock() private method

Initializes a new instance of the MessageBlock class.
private MessageBlock ( FluentMessage message, object test, GenericLabelBlock block, int index ) : System
message FluentMessage /// The message. ///
test object /// The tested object. ///
block GenericLabelBlock /// The block attribute. ///
index int The index for enumerable types
return System
        internal MessageBlock(FluentMessage message, object test, GenericLabelBlock block, int index = 0)
            : this(message, test.GetTypeWithoutThrowingException(), block)
        {
            if (!(test is string) && (test is IEnumerable))
            {
                this.value = new EnumerationBlock((IEnumerable) test, index);
            }
            else
            {
                this.value = new ValueBlock(test);
            }
        }

Same methods

MessageBlock::MessageBlock ( FluentMessage message, Type type, GenericLabelBlock label ) : System