Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderedExpectationList"/> class.
        /// </summary>
        /// <param name="parent">The parent <see cref="IExpectationList"/> of this <see cref="OrderedExpectationList"/></param>
        public OrderedExpectationList(ExpectationListBase parent)
            : base(parent)
        {
            if (parent != null)
            {
                depth = parent.Depth + 1;
            }

            prompt = "Ordered {";
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UnorderedExpectationList"/> class.
        /// </summary>
        /// <param name="parent">The parent <see cref="IExpectationList"/> of this instance.</param>
        public UnorderedExpectationList(ExpectationListBase parent)
            : base(parent)
        {
            if (parent != null)
            {
                depth = parent.Depth + 1;
            }
            else
            {
                depth = 0;
            }

            if (depth == 0)
            {
                prompt = "MockFactory Expectations:";
            }
            else
            {
                prompt = "Unordered {";
            }
        }
Exemplo n.º 3
0
 protected ExpectationListBase(ExpectationListBase parent)
 {
     Parent = parent;
 }