/// <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 {"; }
/// <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 {"; } }
protected ExpectationListBase(ExpectationListBase parent) { Parent = parent; }