Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock In directory sc8-pr-cvs1:/tmp/cvs-serv6875/DotNetMock Modified Files: AbstractExpectation.cs AbstractExpectationCollection.cs AssemblyInfo.cs ExpectationArrayList.cs ExpectationCounter.cs ExpectationString.cs ExpectationValue.cs IExpectation.cs IExpectationCollection.cs IVerifiable.cs MockObject.cs ReturnValue.cs Verifier.cs verifyException.cs Log Message: Index: AbstractExpectation.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/AbstractExpectation.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AbstractExpectation.cs 25 Oct 2002 03:02:25 -0000 1.7 --- AbstractExpectation.cs 13 Jan 2003 04:03:56 -0000 1.8 *************** *** 4,9 **** { /// <summary> ! /// Summary description for Abstract Expectation. /// </summary> public abstract class AbstractExpectation : IExpectation { --- 4,10 ---- { /// <summary> ! /// Abstract class that implements the <c>IExpectation</c> interface /// </summary> + /// <remarks/> public abstract class AbstractExpectation : IExpectation { *************** *** 11,20 **** private bool _verifyImmediate = false; protected string name = null; protected AbstractExpectation(string name) { this.name = name; } - /// <summary> /// Clears Actual field. --- 12,27 ---- private bool _verifyImmediate = false; + /// <summary> + /// Name of this Expectation + /// </summary> protected string name = null; + /// <summary> + /// Default Constructor for AbstractExpectation + /// </summary> + /// <param name="name">Name of this Expectation</param> protected AbstractExpectation(string name) { this.name = name; } /// <summary> /// Clears Actual field. Index: AbstractExpectationCollection.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/AbstractExpectationCollection.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AbstractExpectationCollection.cs 28 Dec 2002 21:36:34 -0000 1.5 --- AbstractExpectationCollection.cs 13 Jan 2003 04:03:57 -0000 1.6 *************** *** 6,11 **** { /// <summary> ! /// Summary description for AbstractExpectationCollection. /// </summary> public abstract class AbstractExpectationCollection : AbstractExpectation, IExpectationCollection { --- 6,12 ---- { /// <summary> ! /// Abstract class that implements the <c>IExpectationCollection</c> interface and extends <c>AbstractExpectation</c> /// </summary> + /// <remarks/> public abstract class AbstractExpectationCollection : AbstractExpectation, IExpectationCollection { *************** *** 43,47 **** } /// <summary> ! /// Adds serveral values to the actual collection /// </summary> /// <param name="actualMany">Values to add</param> --- 44,48 ---- } /// <summary> ! /// Adds array of values to the actual collection /// </summary> /// <param name="actualMany">Values to add</param> *************** *** 54,58 **** } /// <summary> ! /// Adds several values to the actual collection /// </summary> /// <param name="actualMany">Values to add</param> --- 55,59 ---- } /// <summary> ! /// Adds enumeration of values to the actual collection /// </summary> /// <param name="actualMany">Values to add</param> *************** *** 66,70 **** } /// <summary> ! /// Adds several values to the actual collection /// </summary> /// <param name="actualMany">Values to add</param> --- 67,71 ---- } /// <summary> ! /// Adds a list values to the actual collection /// </summary> /// <param name="actualMany">Values to add</param> Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/AssemblyInfo.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** AssemblyInfo.cs 25 Oct 2002 03:02:25 -0000 1.5 --- AssemblyInfo.cs 13 Jan 2003 04:03:57 -0000 1.6 *************** *** 34,38 **** // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.1.0.*")] // --- 34,38 ---- // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.3.0.*")] // *************** *** 63,65 **** [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] ! [assembly: AssemblyKeyName("")] --- 63,65 ---- [assembly: AssemblyDelaySign(false)] [assembly: AssemblyKeyFile("")] ! [assembly: AssemblyKeyName("")] \ No newline at end of file Index: ExpectationArrayList.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationArrayList.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ExpectationArrayList.cs 25 Oct 2002 03:02:25 -0000 1.7 --- ExpectationArrayList.cs 13 Jan 2003 04:03:57 -0000 1.8 *************** *** 4,9 **** using System.Collections; /// <summary> ! /// Expectation ArrayList implementation. Extends AbstractExpectationCollection /// </summary> public class ExpectationArrayList : AbstractExpectationCollection { --- 4,10 ---- using System.Collections; /// <summary> ! /// Expectation ArrayList implementation. Extends <c>AbstractExpectationCollection</c> /// </summary> + /// <remarks/> public class ExpectationArrayList : AbstractExpectationCollection { Index: ExpectationCounter.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationCounter.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** ExpectationCounter.cs 25 Oct 2002 03:02:25 -0000 1.6 --- ExpectationCounter.cs 13 Jan 2003 04:03:57 -0000 1.7 *************** *** 3,13 **** using NUnit.Framework; /// <summary> ! /// Expectation Counter implementation. Extends AbstractExpectation /// </summary> public class ExpectationCounter : AbstractExpectation { private int _expectedCalls = 0; private int _actualCalls = 0; ! public ExpectationCounter(String name) : base(name) {} /// <summary> --- 3,17 ---- using NUnit.Framework; /// <summary> ! /// Expectation Counter implementation. Extends <c>AbstractExpectation</c> /// </summary> + /// <remarks/> public class ExpectationCounter : AbstractExpectation { private int _expectedCalls = 0; private int _actualCalls = 0; ! /// <summary> ! /// Default Constructor. Sets the name of this Expectation ! /// </summary> ! /// <param name="name">Name of this Expectation</param> public ExpectationCounter(String name) : base(name) {} /// <summary> Index: ExpectationString.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationString.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ExpectationString.cs 29 Sep 2002 23:15:57 -0000 1.4 --- ExpectationString.cs 13 Jan 2003 04:03:57 -0000 1.5 *************** *** 3,13 **** using System; /// <summary> ! /// Summary description for String Expectation. /// </summary> public class ExpectationString : AbstractExpectation { private string _actualString = null; private string _expectedString = null; - public ExpectationString(string name) : base(name) { --- 3,13 ---- using System; /// <summary> ! /// Expectation String implementation. Extends <c>AbstractExpectaion</c> /// </summary> + /// <remarks/> public class ExpectationString : AbstractExpectation { private string _actualString = null; private string _expectedString = null; public ExpectationString(string name) : base(name) { Index: ExpectationValue.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationValue.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ExpectationValue.cs 11 Oct 2002 03:07:59 -0000 1.8 --- ExpectationValue.cs 13 Jan 2003 04:03:57 -0000 1.9 *************** *** 3,8 **** using System; /// <summary> ! /// Expectation Value implementation. /// </summary> public class ExpectationValue : AbstractExpectation { --- 3,9 ---- using System; /// <summary> ! /// Expectation Value implementation. Extends <c>AbstractExpectation</c> /// </summary> + /// <remarks/> public class ExpectationValue : AbstractExpectation { Index: IExpectation.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/IExpectation.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IExpectation.cs 25 Oct 2002 03:02:25 -0000 1.1 --- IExpectation.cs 13 Jan 2003 04:03:57 -0000 1.2 *************** *** 5,8 **** --- 5,9 ---- /// Interface that all expectation implement. Also implements the Verifiable interface /// </summary> + /// <remarks/> public interface IExpectation : IVerifiable { Index: IExpectationCollection.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/IExpectationCollection.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IExpectationCollection.cs 25 Oct 2002 03:02:25 -0000 1.1 --- IExpectationCollection.cs 13 Jan 2003 04:03:57 -0000 1.2 *************** *** 4,9 **** using System.Collections; /// <summary> ! /// Summary description for Expectation Collection Interface. /// </summary> public interface IExpectationCollection : IExpectation { --- 4,10 ---- using System.Collections; /// <summary> ! /// IExpectationCollection interface. Interface for all collection based Expectations. Implements <c>IExpectation</c> interface /// </summary> + /// <remarks/> public interface IExpectationCollection : IExpectation { Index: IVerifiable.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/IVerifiable.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IVerifiable.cs 25 Oct 2002 03:02:25 -0000 1.1 --- IVerifiable.cs 13 Jan 2003 04:03:57 -0000 1.2 *************** *** 6,11 **** --- 6,15 ---- /// the correct behvaiour has occurred. /// </summary> + /// <remarks/> public interface IVerifiable { + /// <summary> + /// Verifies object + /// </summary> void Verify(); } Index: MockObject.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/MockObject.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** MockObject.cs 30 Oct 2002 04:16:32 -0000 1.7 --- MockObject.cs 13 Jan 2003 04:03:57 -0000 1.8 *************** *** 6,18 **** /// Base Mock Object. All custom Mock Objects should extend this object. /// </summary> ! // TODO: Extend MarshalByRefObject to take care of remoting issues. public class MockObject : IVerifiable { protected string name = null; ! public MockObject(string name) { name = name; } public MockObject() { --- 6,28 ---- /// Base Mock Object. All custom Mock Objects should extend this object. /// </summary> ! /// <remarks/> ! // TODO: Extend MarshalByRefObject to take care of remoting issues. public class MockObject : IVerifiable { + /// <summary> + /// Field to hold the name of this MockObject + /// </summary> protected string name = null; ! /// <summary> ! /// Constructor. Sets the name of this MockObject ! /// </summary> ! /// <param name="name">Name of this MockObject</param> public MockObject(string name) { name = name; } + /// <summary> + /// Default Constructor. Sets this MockObject's name to "MockObject" + /// </summary> public MockObject() { Index: ReturnValue.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ReturnValue.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ReturnValue.cs 23 Sep 2002 20:16:00 -0000 1.3 --- ReturnValue.cs 13 Jan 2003 04:03:57 -0000 1.4 *************** *** 5,8 **** --- 5,12 ---- using System; + /// <summary> + /// Represent a queue of expected Return Values. + /// </summary> + /// <remarks/> public class ReturnValue { *************** *** 10,22 **** private bool hasReturnValues; private Queue returnValues = new Queue(); ! private string name = "Unnamed ReturnValue"; public ReturnValue() { } public ReturnValue(string newName) : base() { this.name = newName; } ! public bool RepeatFinalValue { --- 14,36 ---- private bool hasReturnValues; private Queue returnValues = new Queue(); ! private string name = ""; + /// <summary> + /// Default constructor. Sets name to "Unamed ReturnValue" + /// </summary> public ReturnValue() { + this.name = "Unnamed ReturnValue"; } + /// <summary> + /// Constructor. Sets the name of this Return Value to the given name. + /// </summary> + /// <param name="newName">Name of this Return Value</param> public ReturnValue(string newName) : base() { this.name = newName; } ! /// <summary> ! /// Gets/Sets if the Return Value should repeat the last value of the the group ! /// </summary> public bool RepeatFinalValue { *************** *** 30,34 **** } } ! public bool HasValues { --- 44,50 ---- } } ! /// <summary> ! /// Gets/Sets if this group has any return values ! /// </summary> public bool HasValues { *************** *** 42,46 **** } } ! public void Add(object nextReturnValue) { --- 58,65 ---- } } ! /// <summary> ! /// Adds a value to the group of return values ! /// </summary> ! /// <param name="nextReturnValue">Object to add</param> public void Add(object nextReturnValue) { *************** *** 48,52 **** this.returnValues.Enqueue(nextReturnValue); } ! public void AddCollection(ICollection values) { --- 67,74 ---- this.returnValues.Enqueue(nextReturnValue); } ! /// <summary> ! /// Adds a collection of values to the group of return values ! /// </summary> ! /// <param name="values">Collection to add</param> public void AddCollection(ICollection values) { *************** *** 56,60 **** } } ! public object Next() { --- 78,85 ---- } } ! /// <summary> ! /// Pop's the next value off the queue of return values. ! /// </summary> ! /// <returns>Next return value</returns> public object Next() { Index: Verifier.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Verifier.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Verifier.cs 25 Oct 2002 03:02:26 -0000 1.5 --- Verifier.cs 13 Jan 2003 04:03:57 -0000 1.6 *************** *** 5,10 **** /// <summary> ! /// Summary description for Verifier. /// </summary> public class Verifier { --- 5,11 ---- /// <summary> ! /// Verifies objects that implement the IVerifiable interface. /// </summary> + /// <remarks/> public class Verifier { *************** *** 36,41 **** /// each field. /// </summary> ! /// <param name="anObject">Object to verify.</param> ! /// <param name="aType">Current Type.</param> protected internal static void Verify(Object verifiableObject, Type currentType) { --- 37,42 ---- /// each field. /// </summary> ! /// <param name="verifiableObject">Object to verify.</param> ! /// <param name="currentType">Current Type.</param> protected internal static void Verify(Object verifiableObject, Type currentType) { *************** *** 57,62 **** /// Sets the object to the Verifiable interface, then calls verify(). /// </summary> ! /// <param name="aField">Current Field.</param> ! /// <param name="anObject">Current Object.</param> protected internal static void VerifyField(FieldInfo verifiableField, Object verifiableObject) { --- 58,63 ---- /// Sets the object to the Verifiable interface, then calls verify(). /// </summary> ! /// <param name="verifiableField">Current Field.</param> ! /// <param name="verifiableObject">Current Object.</param> protected internal static void VerifyField(FieldInfo verifiableField, Object verifiableObject) { Index: verifyException.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/verifyException.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** verifyException.cs 30 Oct 2002 04:16:32 -0000 1.1 --- verifyException.cs 13 Jan 2003 04:03:57 -0000 1.2 *************** *** 4,13 **** --- 4,34 ---- namespace DotNetMock { + /// <summary> + /// Exception thrown for errors in Verify() + /// </summary> [Serializable()] public class VerifyException : ApplicationException { + /// <summary> + /// Default constructor + /// </summary> public VerifyException() : base() {} + /// <summary> + /// Constructs a VerifyException with the provided message + /// </summary> + /// <param name="message">Message for this exception</param> public VerifyException(string message) : base(message) {} + /// <summary> + /// Constructs a VerifyException with the provided message and a reference to the inner + /// exception that caused this exception + /// </summary> + /// <param name="message">Message for this exception</param> + /// <param name="innerException">Inner exception for this exception</param> public VerifyException(string message, Exception innerException) : base(message, innerException) {} + /// <summary> + /// Constructs a VerifyException with serialized data + /// </summary> + /// <param name="serialInfo">Object that holds the serialized object data</param> + /// <param name="streamingContext">The contextual information about the source or destination</param> protected VerifyException(SerializationInfo serialInfo, StreamingContext streamingContext) : base(serialInfo, streamingContext) {} } |