From: <gc...@us...> - 2003-04-21 17:16:43
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock.Framework/Data In directory sc8-pr-cvs1:/tmp/cvs-serv28808/DotNetMock.Framework/Data Modified Files: MockDataParameterCollection.cs Log Message: Derived from CollectionBase Index: MockDataParameterCollection.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock.Framework/Data/MockDataParameterCollection.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MockDataParameterCollection.cs 21 Apr 2003 16:58:44 -0000 1.7 --- MockDataParameterCollection.cs 21 Apr 2003 17:16:39 -0000 1.8 *************** *** 60,64 **** /// This is a Mock Object that implements the IDataParameterCollection interface. It holds a collection of IDataParamter objects. /// </summary> ! public class MockDataParameterCollection : MockObject, IDataParameterCollection { /// <summary> --- 60,64 ---- /// This is a Mock Object that implements the IDataParameterCollection interface. It holds a collection of IDataParamter objects. /// </summary> ! public class MockDataParameterCollection : CollectionBase, IMockObject, IDataParameterCollection { /// <summary> *************** *** 173,177 **** /// </summary> /// <param name="index">Index to remove</param> ! public void RemoveAt(int index) { _actualCollection.RemoveAt(index); --- 173,177 ---- /// </summary> /// <param name="index">Index to remove</param> ! public new void RemoveAt(int index) { _actualCollection.RemoveAt(index); *************** *** 206,210 **** /// Clears Actual Collection /// </summary> ! public void Clear() { _actualCollection.Clear(); --- 206,210 ---- /// Clears Actual Collection /// </summary> ! public new void Clear() { _actualCollection.Clear(); *************** *** 280,292 **** /// Provides zero-based index access to the collection. /// </summary> ! public object this[int index] { get { ! return _actualCollection[index]; } set { ! _actualCollection[index] = value; } } --- 280,292 ---- /// Provides zero-based index access to the collection. /// </summary> ! public IDataParameter this[int index] { get { ! return (IDataParameter)_actualCollection[index]; } set { ! _actualCollection[index] = (IDataParameter)value; } } *************** *** 320,324 **** /// Gets count of collection /// </summary> ! public int Count { get --- 320,324 ---- /// Gets count of collection /// </summary> ! public new int Count { get *************** *** 356,360 **** /// </summary> /// <returns></returns> ! public System.Collections.IEnumerator GetEnumerator() { return _actualCollection.GetEnumerator(); --- 356,360 ---- /// </summary> /// <returns></returns> ! public new System.Collections.IEnumerator GetEnumerator() { return _actualCollection.GetEnumerator(); *************** *** 362,366 **** #endregion #region MockObject overrides ! public override void Verify() { if (_expectedCollection.Count > _actualCollection.Count) --- 362,366 ---- #endregion #region MockObject overrides ! public void Verify() { if (_expectedCollection.Count > _actualCollection.Count) *************** *** 391,394 **** --- 391,410 ---- } #endregion + + public void NotImplemented(string methodName) + { + throw new NotImplementedException( methodName + " is currently not implemented." ); + } + + public string MockName + { + get + { + return "MockDataParamterCollection"; + } + set + { + } + } } |