From: <gc...@us...> - 2002-10-11 03:08:02
|
Update of /cvsroot/dotnetmock/dotnetmock/DotNetMock In directory usw-pr-cvs1:/tmp/cvs-serv27329/DotNetMock Modified Files: AbstractExpectationCollection.cs AssemblyInfo.cs DotNetMock.build Expectation.cs ExpectationArrayList.cs ExpectationCounter.cs ExpectationValue.cs MockObject.cs Null.cs Log Message: Added XML comments to most files Added NDoc documentation task to Master.Build file Index: AbstractExpectationCollection.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/AbstractExpectationCollection.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AbstractExpectationCollection.cs 29 Sep 2002 23:15:57 -0000 1.2 --- AbstractExpectationCollection.cs 11 Oct 2002 03:07:59 -0000 1.3 *************** *** 10,19 **** public abstract class AbstractExpectationCollection : AbstractExpectation, ExpectationCollection { public AbstractExpectationCollection(string name) : base(name) {} ! abstract protected void CheckImmediateValues(object actual); abstract protected IList GetActualCollection(); abstract protected IList GetExpectedCollection(); ! public void AddActual(object actual) { --- 10,37 ---- public abstract class AbstractExpectationCollection : AbstractExpectation, ExpectationCollection { + /// <summary> + /// Default Constructor + /// </summary> + /// <param name="name">Name for AbstractExpectationCollection</param> public AbstractExpectationCollection(string name) : base(name) {} ! /// <summary> ! /// Checks the given values immediatly ! /// </summary> ! /// <param name="actual">Values to check</param> abstract protected void CheckImmediateValues(object actual); + /// <summary> + /// Returns Actual Collection + /// </summary> + /// <returns>Actual Collection</returns> abstract protected IList GetActualCollection(); + /// <summary> + /// Returns Expected Collection + /// </summary> + /// <returns>Expected Collection</returns> abstract protected IList GetExpectedCollection(); ! /// <summary> ! /// Adds value to actual collection ! /// </summary> ! /// <param name="actual">Value to add</param> public void AddActual(object actual) { *************** *** 24,28 **** } } ! public void AddActualMany(object[] actualMany) { --- 42,49 ---- } } ! /// <summary> ! /// Adds serveral values to the actual collection ! /// </summary> ! /// <param name="actualMany">Values to add</param> public void AddActualMany(object[] actualMany) { *************** *** 32,35 **** --- 53,60 ---- } } + /// <summary> + /// Adds several values to the actual collection + /// </summary> + /// <param name="actualMany">Values to add</param> public void AddActualMany(IEnumerable actualMany) { *************** *** 40,43 **** --- 65,72 ---- } } + /// <summary> + /// Adds several values to the actual collection + /// </summary> + /// <param name="actualMany">Values to add</param> public void AddActualMany(IList actualMany) { *************** *** 47,50 **** --- 76,83 ---- } } + /// <summary> + /// Adds value to the expected collection + /// </summary> + /// <param name="expected">Value to add</param> public void AddExpected(object expected) { *************** *** 52,56 **** this.HasExpectations = true; } ! public void AddExpectedMany(object[] expectedMany) { --- 85,92 ---- this.HasExpectations = true; } ! /// <summary> ! /// Adds several values to the expected collection ! /// </summary> ! /// <param name="actualMany">Values to add</param> public void AddExpectedMany(object[] expectedMany) { *************** *** 60,63 **** --- 96,103 ---- } } + /// <summary> + /// Adds several values to the expected collection + /// </summary> + /// <param name="actualMany">Values to add</param> public void AddExpectedMany(IEnumerable expectedMany) { *************** *** 68,71 **** --- 108,115 ---- } } + /// <summary> + /// Adds several values to the expected collection + /// </summary> + /// <param name="actualMany">Values to add</param> public void AddExpectedMany(IList expectedMany) { *************** *** 75,86 **** --- 119,139 ---- } } + /// <summary> + /// Clears actual collection + /// </summary> public override void ClearActual() { GetActualCollection().Clear(); } + /// <summary> + /// Clears expected collection + /// </summary> public override void ClearExpected() { GetExpectedCollection().Clear(); } + /// <summary> + /// Sets expectations to nothing + /// </summary> public override void ExpectNothing() { *************** *** 88,91 **** --- 141,147 ---- this.HasExpectations = true; } + /// <summary> + /// Verifies expectation collection + /// </summary> public override void Verify() { Index: AssemblyInfo.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/AssemblyInfo.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** AssemblyInfo.cs 11 Oct 2002 00:24:37 -0000 1.3 --- AssemblyInfo.cs 11 Oct 2002 03:07:59 -0000 1.4 *************** *** 27,31 **** // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.0.0.*")] // --- 27,31 ---- // by using the '*' as shown below: ! [assembly: AssemblyVersion("0.1.0.*")] // Index: DotNetMock.build =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/DotNetMock.build,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DotNetMock.build 11 Oct 2002 00:24:37 -0000 1.1 --- DotNetMock.build 11 Oct 2002 03:07:59 -0000 1.2 *************** *** 3,7 **** <description>Build file for main .NET Mock Objects module</description> <property name="debug" value="true"/> ! <property name="build.dir" value="build/"/> <property name="project.name" value="DotNetMock"/> --- 3,7 ---- <description>Build file for main .NET Mock Objects module</description> <property name="debug" value="true"/> ! <property name="build.dir" value="../build/"/> <property name="project.name" value="DotNetMock"/> *************** *** 18,22 **** <target name="build" description="Builds .NET Mock Object main module" depends="init"> ! <csc target="library" output="${build.dir}/${project.name}.dll" debug="${debug}"> <sources basedir="."> <includes name="**/*.cs"/> --- 18,22 ---- <target name="build" description="Builds .NET Mock Object main module" depends="init"> ! <csc target="library" output="${build.dir}/${project.name}.dll" debug="${debug}" doc="${build.dir}\${project.name}.xml"> <sources basedir="."> <includes name="**/*.cs"/> Index: Expectation.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Expectation.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Expectation.cs 21 Sep 2002 06:19:18 -0000 1.3 --- Expectation.cs 11 Oct 2002 03:07:59 -0000 1.4 *************** *** 3,12 **** using System; /// <summary> ! /// Summary description for Expectation Interface. /// </summary> public interface Expectation : Verifiable { bool HasExpectations {get;set;} bool VerifyImmediate {set;} bool ShouldCheckImmediate {get;} } --- 3,21 ---- using System; /// <summary> ! /// Interface that all expectation implement. Also implements the Verifiable interface /// </summary> public interface Expectation : Verifiable { + /// <summary> + /// Gets/Sets Has Expectations + /// </summary> bool HasExpectations {get;set;} + /// <summary> + /// Sets the verify immediate flag + /// </summary> bool VerifyImmediate {set;} + /// <summary> + /// Gets should check immediate + /// </summary> bool ShouldCheckImmediate {get;} } Index: ExpectationArrayList.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationArrayList.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ExpectationArrayList.cs 25 Sep 2002 00:12:21 -0000 1.5 --- ExpectationArrayList.cs 11 Oct 2002 03:07:59 -0000 1.6 *************** *** 4,8 **** using System.Collections; /// <summary> ! /// Summary description for ArrayList Expectation. /// </summary> public class ExpectationArrayList : AbstractExpectationCollection --- 4,8 ---- using System.Collections; /// <summary> ! /// Expectation ArrayList implementation. Extends AbstractExpectationCollection /// </summary> public class ExpectationArrayList : AbstractExpectationCollection *************** *** 10,27 **** private ArrayList _actualArrayList = null; private ArrayList _expectedArrayList = null; ! public ExpectationArrayList(string name) : base(name) { _actualArrayList = new ArrayList(); _expectedArrayList = new ArrayList(); } ! protected override IList GetActualCollection() { return _actualArrayList; } protected override IList GetExpectedCollection() { return _expectedArrayList; } protected override void CheckImmediateValues(object actual) { --- 10,42 ---- private ArrayList _actualArrayList = null; private ArrayList _expectedArrayList = null; ! ! /// <summary> ! /// Constructor ! /// </summary> ! /// <param name="name"></param> public ExpectationArrayList(string name) : base(name) { _actualArrayList = new ArrayList(); _expectedArrayList = new ArrayList(); } ! /// <summary> ! /// Returns actual collection ! /// </summary> ! /// <returns>Actual Collection</returns> protected override IList GetActualCollection() { return _actualArrayList; } + /// <summary> + /// Returns expected collection + /// </summary> + /// <returns>Expected Collection</returns> protected override IList GetExpectedCollection() { return _expectedArrayList; } + /// <summary> + /// Checks an Immediate value + /// </summary> + /// <param name="actual">Value to check</param> protected override void CheckImmediateValues(object actual) { Index: ExpectationCounter.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationCounter.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ExpectationCounter.cs 21 Sep 2002 06:19:18 -0000 1.4 --- ExpectationCounter.cs 11 Oct 2002 03:07:59 -0000 1.5 *************** *** 3,7 **** using NUnit.Framework; /// <summary> ! /// Summary for Counter Expectation. /// </summary> public class ExpectationCounter : AbstractExpectation { --- 3,7 ---- using NUnit.Framework; /// <summary> ! /// Expectation Counter implementation. Extends AbstractExpectation /// </summary> public class ExpectationCounter : AbstractExpectation { Index: ExpectationValue.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/ExpectationValue.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ExpectationValue.cs 29 Sep 2002 23:15:57 -0000 1.7 --- ExpectationValue.cs 11 Oct 2002 03:07:59 -0000 1.8 *************** *** 3,7 **** using System; /// <summary> ! /// Summary description for Value Expectation. /// </summary> public class ExpectationValue : AbstractExpectation --- 3,7 ---- using System; /// <summary> ! /// Expectation Value implementation. /// </summary> public class ExpectationValue : AbstractExpectation Index: MockObject.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/MockObject.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MockObject.cs 29 Sep 2002 23:15:57 -0000 1.4 --- MockObject.cs 11 Oct 2002 03:07:59 -0000 1.5 *************** *** 4,8 **** using NUnit.Framework; /// <summary> ! /// Summary description for Base Mock Object. /// </summary> public class MockObject : Verifiable --- 4,8 ---- using NUnit.Framework; /// <summary> ! /// Base Mock Object. All custom Mock Objects should extend this object. /// </summary> public class MockObject : Verifiable Index: Null.cs =================================================================== RCS file: /cvsroot/dotnetmock/dotnetmock/DotNetMock/Null.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Null.cs 21 Sep 2002 06:19:18 -0000 1.2 --- Null.cs 11 Oct 2002 03:07:59 -0000 1.3 *************** *** 1,4 **** - - namespace DotNetMock { --- 1,2 ---- |