From: Griffin C. <gc...@us...> - 2005-01-05 14:22:18
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25388/DotNetMock Modified Files: Verifier.cs Log Message: - Removed Static Type initializer from Verifier class. Moved initialization to declaring fields. Index: Verifier.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Verifier.cs,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** Verifier.cs 5 Jan 2005 14:19:44 -0000 1.19 --- Verifier.cs 5 Jan 2005 14:22:10 -0000 1.20 *************** *** 8,15 **** /// Verifies objects that implement the IVerifiable interface. /// </summary> - /// <remarks> - /// Currently, no protection is offered to prevent reentry. So, two mock objects - /// that have a circular reference to each other will create an endless loop. - /// </remarks> public sealed class Verifier { --- 8,11 ---- *************** *** 28,40 **** /// Keeps a list of objects that have been verified /// </summary> ! private static IList _verifiedObjects = null; ! ! /// <summary> ! /// Static type initialization. Creates a new instance of the verified objects list. ! /// </summary> ! static Verifier() ! { ! _verifiedObjects = new ArrayList(); ! } #region Static --- 24,28 ---- /// Keeps a list of objects that have been verified /// </summary> ! private static IList _verifiedObjects = new ArrayList(); #region Static *************** *** 111,115 **** } #endregion - } } --- 99,102 ---- |