public void ProxyOrder2() { var newDoctor = new Doctor() { Group = 5, Name = "New Doctor", ProviderNumber = "23456" }; _Doctors.Add(newDoctor); Person[] list = { _ForrestGump, _DoogieHowser, newDoctor }; Assert.IsTrue(_Doctors.SequenceEqual(list.OfType <Doctor>())); }
virtual public void Add(TNew item) { m_realObject.Add(item); }
/// <summary> /// Adds an item to the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </summary> /// <param name="item"> /// The object to add to the <see cref="T:System.Collections.Generic.ICollection`1" />. /// </param> public void Add(TNew item) { _realObject.Add(item); }