public SimSPViewFieldCollection(SPViewFieldCollection instance) : base(instance) { Fake.Bind(this); Fake.AddSPField = Add; Fake.AddString = name => Add(View.ParentList.Fields[name]); Fake.CountGet = () => Count; Fake.DeleteSPField = field => Remove(field); Fake.DeleteString = name => Remove(View.ParentList.Fields[name]); Fake.DeleteAll = Clear; Fake.ExistsString = name => this.Any(field => field.InternalName == name); Fake.ItemGetInt32 = index => this[index].InternalName; Fake.ToStringCollection = ToStringCollection; }