예제 #1
0
 public static void SubstituteChildren(ILayout layout, IList <IView> children)
 {
     layout[Arg.Any <int>()].Returns(args => children[(int)args[0]]);
     layout.GetEnumerator().Returns(children.GetEnumerator());
     layout.Count.Returns(children.Count);
 }