From: <exo...@us...> - 2006-10-04 00:48:41
|
Revision: 2576 http://svn.sourceforge.net/ccnet/?rev=2576&view=rev Author: exortech Date: 2006-10-02 23:20:43 -0700 (Mon, 02 Oct 2006) Log Message: ----------- upgrading to nunit 2.2.8 Modified Paths: -------------- trunk/project/UnitTests/Core/SourceControl/PvcsTest.cs trunk/project/core/sourcecontrol/Pvcs.cs trunk/tools/nunit/nunit-console.exe trunk/tools/nunit/nunit-console.exe.config trunk/tools/nunit/nunit-gui.exe trunk/tools/nunit/nunit-gui.exe.config trunk/tools/nunit/nunit.core.dll trunk/tools/nunit/nunit.framework.dll trunk/tools/nunit/nunit.mocks.dll trunk/tools/nunit/nunit.uikit.dll trunk/tools/nunit/nunit.util.dll Added Paths: ----------- trunk/tools/nant/log4net.dll trunk/tools/nunit/nunit-console-runner.dll trunk/tools/nunit/nunit-gui-runner.dll trunk/tools/nunit/nunit.core.extensions.dll trunk/tools/nunit/test-utilities.dll Removed Paths: ------------- trunk/tools/nunit/mock-assembly.dll trunk/tools/nunit/mock-assembly.dll.config trunk/tools/nunit/nonamespace-assembly.dll trunk/tools/nunit/notestfixtures-assembly.dll trunk/tools/nunit/nunit.extensions.dll trunk/tools/nunit/nunit.framework.xml trunk/tools/nunit/nunit.tests.dll trunk/tools/nunit/nunit.tests.dll.config trunk/tools/nunit/timing-tests.dll Modified: trunk/project/UnitTests/Core/SourceControl/PvcsTest.cs =================================================================== --- trunk/project/UnitTests/Core/SourceControl/PvcsTest.cs 2006-10-03 05:46:32 UTC (rev 2575) +++ trunk/project/UnitTests/Core/SourceControl/PvcsTest.cs 2006-10-03 06:20:43 UTC (rev 2576) @@ -1,6 +1,5 @@ using System; using System.Globalization; -using System.Threading; using Exortech.NetReflector; using NMock; using NMock.Constraints; @@ -8,8 +7,6 @@ using ThoughtWorks.CruiseControl.Core; using ThoughtWorks.CruiseControl.Core.Sourcecontrol; using ThoughtWorks.CruiseControl.Core.Util; -using ThoughtWorks.CruiseControl.UnitTests; -using ThoughtWorks.CruiseControl.UnitTests.Core; namespace ThoughtWorks.CruiseControl.UnitTests.Core.Sourcecontrol { @@ -124,20 +121,6 @@ } [Test] - public void CreatePcliContentsForGet() - { - Thread.CurrentThread.Name = "TEST"; - pvcs.Project = "foo"; - pvcs.Subproject = "bar"; - DateTime dt = DateTime.Now; - pvcs.CreateDateSpecificTemporaryLabel(dt); - string expected = "run -y -xe\"" + pvcs.ErrorFile + "\" -xo\"" + pvcs.LogFile + - "\" -q Get -pr\"foo\" -z -sp\"/@/RootWorkspace\" -vTEST_" + Convert.ToString(dt.Ticks) + " bar "; - string actual = pvcs.CreatePcliContentsForGet(); - Assert.AreEqual(expected, actual); - } - - [Test] public void CreateIndividualGetString() { string expected = "-r1.0 \"fooproject\\archives\\test\\myfile.txt-arc\"(\"c:\\source\\test\") "; Modified: trunk/project/core/sourcecontrol/Pvcs.cs =================================================================== --- trunk/project/core/sourcecontrol/Pvcs.cs 2006-10-03 05:46:32 UTC (rev 2575) +++ trunk/project/core/sourcecontrol/Pvcs.cs 2006-10-03 06:20:43 UTC (rev 2576) @@ -4,7 +4,6 @@ using System.Globalization; using System.IO; using System.Text; -using System.Threading; using Exortech.NetReflector; using ThoughtWorks.CruiseControl.Core.Util; @@ -14,7 +13,7 @@ public class Pvcs : ProcessSourceControl { private const string DELETE_LABEL_TEMPLATE = - @"run -y -xe""{0}"" -xo""{1}"" DeleteLabel -pr""{2}"" {3} {4} {5} {7}"; + @"run -y -xe""{0}"" -xo""{1}"" DeleteLabel -pr""{2}"" {3} {4} {5} {6}"; private const string APPLY_LABEL_TEMPLATE = @"Vcs -q -xo""{0}"" -xe""{1}"" {2} -v""{3}"" ""@{4}"""; @@ -124,14 +123,14 @@ using (TextReader reader = ExecuteVLog(from.StartTime, to.StartTime)) { - modifications = base.ParseModifications(reader, from.StartTime, to.StartTime); + modifications = ParseModifications(reader, from.StartTime, to.StartTime); } return modifications; } private string GetRecursiveValue() { - return Recursive == true ? "-z" : string.Empty; + return Recursive ? "-z" : string.Empty; } private TextReader ExecuteVLog(DateTime from, DateTime to) @@ -344,13 +343,13 @@ // Ensure the Label Or Promotion Name exist if (LabelOrPromotionName.Length > 0) - LabelSourceControl("", LabelOrPromotionName); + LabelSourceControl("", LabelOrPromotionName, result.ProjectName); // This allows for the labeller concept to support absolute labelling if (result.Label != LabelOrPromotionName) - LabelSourceControl(LabelOrPromotionName, result.Label); + LabelSourceControl(LabelOrPromotionName, result.Label, result.ProjectName); } - private void LabelSourceControl(string oldLabel, string newLabel) + private void LabelSourceControl(string oldLabel, string newLabel, string project) { if (oldLabel.Length > 0) { @@ -367,7 +366,7 @@ stream.WriteLine(CreateIndividualLabelString(mod, (oldLabel.Length > 0 ? newLabel : ""))); } } - Log.Info("Applying PVCS Label " + newLabel + " on Project " + Thread.CurrentThread.Name); + Log.Info("Applying PVCS Label " + newLabel + " on Project " + project); // Allow us to use same logic for Executing files ExecuteNonPvcsFunction(CreatePcliContentsForLabeling(newLabel)); } @@ -389,7 +388,6 @@ } ArrayList allMods = new ArrayList(); - foreach (Modification mod in baseModifications) { allMods.Add(mod); @@ -401,16 +399,10 @@ // Only Modifications that need stamp should be generated modifications = PvcsHistoryParser.AnalyzeModifications(allMods); - - // Cleanup - allMods.Clear(); - allMods = null; } #endregion - #region Date Functions - public static string GetDateString(DateTime dateToConvert) { return GetDateString(dateToConvert, CultureInfo.CurrentCulture.DateTimeFormat); @@ -438,33 +430,5 @@ throw new CruiseControlException("Unable to parse: " + dateToParse, ex); } } - - #endregion - - #region ITemporaryLabeller Members - Not Implemented At this Time - - public void CreateDateSpecificTemporaryLabel(DateTime dt) - { - // this was created public for testing - tempLabel = Thread.CurrentThread.Name + "_" + Convert.ToString(dt.Ticks); - } - - public void CreateTemporaryLabel() - { - CreateDateSpecificTemporaryLabel(DateTime.Now); - - LabelSourceControl("", tempLabel); - - // Copy the revisions of the Label / Promotion Group into the temporary label - if (LabelOnSuccess && LabelOrPromotionName.Length > 0) - LabelSourceControl(LabelOrPromotionName, tempLabel); - } - - public void DeleteTemporaryLabel() - { - Execute(CreatePcliContentsForDeletingLabel(tempLabel)); - } - - #endregion } } \ No newline at end of file Added: trunk/tools/nant/log4net.dll =================================================================== (Binary files differ) Property changes on: trunk/tools/nant/log4net.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Deleted: trunk/tools/nunit/mock-assembly.dll =================================================================== (Binary files differ) Deleted: trunk/tools/nunit/mock-assembly.dll.config =================================================================== (Binary files differ) Deleted: trunk/tools/nunit/nonamespace-assembly.dll =================================================================== (Binary files differ) Deleted: trunk/tools/nunit/notestfixtures-assembly.dll =================================================================== (Binary files differ) Added: trunk/tools/nunit/nunit-console-runner.dll =================================================================== (Binary files differ) Property changes on: trunk/tools/nunit/nunit-console-runner.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/tools/nunit/nunit-console.exe =================================================================== (Binary files differ) Modified: trunk/tools/nunit/nunit-console.exe.config =================================================================== --- trunk/tools/nunit/nunit-console.exe.config 2006-10-03 05:46:32 UTC (rev 2575) +++ trunk/tools/nunit/nunit-console.exe.config 2006-10-03 06:20:43 UTC (rev 2576) @@ -6,30 +6,35 @@ --> <appSettings> - <!-- Specify the location to be used by .NET for the cache --> + <!-- + Specify the location to be used by .NET for the cache + --> <add key="shadowfiles.path" value="%temp%\nunit20\ShadowCopyCache" /> </appSettings> <!-- - These statements specify the runtime versions supported - in the order that they will be used if more than one - is present. You can change the order of these if you like - or remove any that do not apply. - + The startup section may be used to specify the runtime versions + supported in the order that they will be used if more than one + is present. As supplied, this section is commented out, which + causes nunit-console to use the version of the framework with + which it was built. + Since .NET 1.0 does not recognize the <supportedRuntime> elements, a <requiredRuntime> element is used in case it is the only version of the framework that is installed. --> + <!-- <startup> - + <supportedRuntime version="v2.0.50727" /> + <supportedRuntime version="v2.0.50215" /> + <supportedRuntime version="v2.0.40607" /> <supportedRuntime version="v1.1.4322" /> - <supportedRuntime version="v2.0.40607" /> <supportedRuntime version="v1.0.3705" /> <requiredRuntime version="v1.0.3705" /> - </startup> + --> <!-- The following <runtime> section allows running nunit under @@ -48,7 +53,7 @@ <dependentAssembly> <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -56,7 +61,7 @@ <dependentAssembly> <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -64,7 +69,7 @@ <dependentAssembly> <assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -72,7 +77,7 @@ <dependentAssembly> <assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -80,7 +85,7 @@ <dependentAssembly> <assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> Added: trunk/tools/nunit/nunit-gui-runner.dll =================================================================== (Binary files differ) Property changes on: trunk/tools/nunit/nunit-gui-runner.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/tools/nunit/nunit-gui.exe =================================================================== (Binary files differ) Modified: trunk/tools/nunit/nunit-gui.exe.config =================================================================== --- trunk/tools/nunit/nunit-gui.exe.config 2006-10-03 05:46:32 UTC (rev 2575) +++ trunk/tools/nunit/nunit-gui.exe.config 2006-10-03 06:20:43 UTC (rev 2576) @@ -25,24 +25,28 @@ <!-- - These statements specify the runtime versions supported - in the order that they will be used if more than one - is present. You can change the order of these if you like - or remove any that do not apply. + The startup section may be used to specify the runtime versions + supported in the order that they will be used if more than one + is present. As supplied, this section is commented out, which + causes nunit-console to use the version of the framework with + which it was built. Since .NET 1.0 does not recognize the <supportedRuntime> elements, a <requiredRuntime> element is used in case it is the only version of the framework that is installed. --> + <!-- <startup> + <supportedRuntime version="v2.0.50727" /> + <supportedRuntime version="v2.0.50215" /> + <supportedRuntime version="v2.0.40607" /> <supportedRuntime version="v1.1.4322" /> - <supportedRuntime version="v2.0.40607" /> <supportedRuntime version="v1.0.3705" /> <requiredRuntime version="v1.0.3705" /> </startup> - + --> <!-- The following <runtime> section allows running nunit under .NET 1.0 by redirecting assemblies. The appliesTo attribute @@ -61,7 +65,7 @@ <dependentAssembly> <assemblyIdentity name="System" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -69,7 +73,7 @@ <dependentAssembly> <assemblyIdentity name="System.Data" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -77,7 +81,7 @@ <dependentAssembly> <assemblyIdentity name="System.Drawing" publicKeyToken="b03f5f7f11d50a3a" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -85,7 +89,7 @@ <dependentAssembly> <assemblyIdentity name="System.Windows.Forms" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> @@ -93,7 +97,7 @@ <dependentAssembly> <assemblyIdentity name="System.Xml" publicKeyToken="b77a5c561934e089" - culture=""/> + culture="neutral"/> <bindingRedirect oldVersion="1.0.5000.0" newVersion="1.0.3300.0"/> </dependentAssembly> Modified: trunk/tools/nunit/nunit.core.dll =================================================================== (Binary files differ) Added: trunk/tools/nunit/nunit.core.extensions.dll =================================================================== (Binary files differ) Property changes on: trunk/tools/nunit/nunit.core.extensions.dll ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Deleted: trunk/tools/nunit/nunit.extensions.dll =================================================================== (Binary files differ) Modified: trunk/tools/nunit/nunit.framework.dll =================================================================== (Binary files differ) Deleted: trunk/tools/nunit/nunit.framework.xml =================================================================== --- trunk/tools/nunit/nunit.framework.xml 2006-10-03 05:46:32 UTC (rev 2575) +++ trunk/tools/nunit/nunit.framework.xml 2006-10-03 06:20:43 UTC (rev 2576) @@ -1,1104 +0,0 @@ -<?xml version="1.0"?> -<doc> - <assembly> - <name>nunit.framework</name> - </assembly> - <members> - <member name="T:NUnit.Framework.Assert"> - <summary> - A set of Assert methods - </summary> - </member> - <member name="M:NUnit.Framework.Assert.#ctor"> - <summary> - A private constructor disallows any instances of this object. - </summary> - </member> - <member name="M:NUnit.Framework.Assert.IsTrue(System.Boolean,System.String,System.Object[])"> - <summary> - Asserts that a condition is true. If the condition is false the method throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - <param name="message">The message to display if the condition is false</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.IsTrue(System.Boolean,System.String)"> - <summary> - Asserts that a condition is true. If the condition is false the method throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - <param name="message">The message to display if the condition is false</param> - </member> - <member name="M:NUnit.Framework.Assert.IsTrue(System.Boolean)"> - <summary> - Asserts that a condition is true. If the condition is false the method throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - </member> - <member name="M:NUnit.Framework.Assert.IsFalse(System.Boolean,System.String,System.Object[])"> - <summary> - Asserts that a condition is false. If the condition is true the method throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - <param name="message">The message to display if the condition is true</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.IsFalse(System.Boolean,System.String)"> - <summary> - Asserts that a condition is false. If the condition is true the method throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - <param name="message">The message to display if the condition is true</param> - </member> - <member name="M:NUnit.Framework.Assert.IsFalse(System.Boolean)"> - <summary> - Asserts that a condition is false. If the condition is true the method throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Double,System.Double,System.Double,System.String,System.Object[])"> - <summary> - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - <param name="message">The message that will be printed on failure</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Double,System.Double,System.Double,System.String)"> - <summary> - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - <param name="message">The message that will be printed on failure</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Double,System.Double,System.Double)"> - <summary> - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Single,System.Single,System.Single,System.String,System.Object[])"> - <summary> - Verifies that two floats are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - <param name="message">The message printed out upon failure</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Single,System.Single,System.Single,System.String)"> - <summary> - Verifies that two floats are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - <param name="message">The message printed out upon failure</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Single,System.Single,System.Single)"> - <summary> - Verifies that two floats are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Decimal,System.Decimal,System.String,System.Object[])"> - <summary> - Verifies that two decimals are equal. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="message">The message printed out upon failure</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Decimal,System.Decimal,System.String)"> - <summary> - Verifies that two decimals are equal. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="message">The message printed out upon failure</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Decimal,System.Decimal)"> - <summary> - Verifies that two decimals are equal. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Int32,System.Int32,System.String,System.Object[])"> - <summary> - Verifies that two ints are equal. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="message">The message printed out upon failure</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Int32,System.Int32,System.String)"> - <summary> - Verifies that two ints are equal. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="message">The message printed out upon failure</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Int32,System.Int32)"> - <summary> - Verifies that two ints are equal. If - they are not equals then an <see cref="T:NUnit.Framework.AssertionException"/> is - thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Array,System.Array,System.String,System.Object[])"> - <summary> - Verifies that two arrays are equal. If they are not, - then an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="message">The message printed out upon failure</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Array,System.Array,System.String)"> - <summary> - Verifies that two arrays are equal. If they are not, - then an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="message">The message printed out upon failure</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Array,System.Array)"> - <summary> - Verifies that two arrays are equal. If they are not, - then an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Object,System.Object,System.String,System.Object[])"> - <summary> - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. All - non-numeric types are compared by using the <c>Equals</c> method. - Arrays are compared by comparing each element using the same rules. - If they are not equal an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The value that is expected</param> - <param name="actual">The actual value</param> - <param name="message">The message to display if objects are not equal</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Object,System.Object,System.String)"> - <summary> - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. All - non-numeric types are compared by using the <c>Equals</c> method. - If they are not equal an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The value that is expected</param> - <param name="actual">The actual value</param> - <param name="message">The message to display if objects are not equal</param> - </member> - <member name="M:NUnit.Framework.Assert.AreEqual(System.Object,System.Object)"> - <summary> - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. All - non-numeric types are compared by using the <c>Equals</c> method. - If they are not equal an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The value that is expected</param> - <param name="actual">The actual value</param> - </member> - <member name="M:NUnit.Framework.Assert.Equals(System.Object,System.Object)"> - <summary> - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. - </summary> - <param name="a"></param> - <param name="b"></param> - </member> - <member name="M:NUnit.Framework.Assert.ReferenceEquals(System.Object,System.Object)"> - <summary> - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. - </summary> - <param name="a"></param> - <param name="b"></param> - </member> - <member name="M:NUnit.Framework.Assert.IsNumericType(System.Object)"> - <summary> - Checks the type of the object, returning true if - the object is a numeric type. - </summary> - <param name="obj">The object to check</param> - <returns>true if the object is a numeric type</returns> - </member> - <member name="M:NUnit.Framework.Assert.ObjectsEqual(System.Object,System.Object)"> - <summary> - Used to compare two objects. Two nulls are equal and null - is not equal to non-null. Comparisons between the same - numeric types are fine (Int32 to Int32, or Int64 to Int64), - but the Equals method fails across different types so we - use <c>ToString</c> and compare the results. - </summary> - <param name="expected"></param> - <param name="actual"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.Assert.IsNotNull(System.Object,System.String,System.Object[])"> - <summary> - Verifies that the object that is passed in is not equal to <code>null</code> - If the object is not <code>null</code> then an <see cref="T:NUnit.Framework.AssertionException"/> - is thrown. - </summary> - <param name="anObject">The object that is to be tested</param> - <param name="message">The message to be printed when the object is null</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.IsNotNull(System.Object,System.String)"> - <summary> - Verifies that the object that is passed in is not equal to <code>null</code> - If the object is not <code>null</code> then an <see cref="T:NUnit.Framework.AssertionException"/> - is thrown. - </summary> - <param name="anObject">The object that is to be tested</param> - </member> - <member name="M:NUnit.Framework.Assert.IsNotNull(System.Object)"> - <summary> - Verifies that the object that is passed in is not equal to <code>null</code> - If the object is not <code>null</code> then an <see cref="T:NUnit.Framework.AssertionException"/> - is thrown. - </summary> - <param name="anObject">The object that is to be tested</param> - </member> - <member name="M:NUnit.Framework.Assert.IsNull(System.Object,System.String,System.Object[])"> - <summary> - Verifies that the object that is passed in is equal to <code>null</code> - If the object is <code>null</code> then an <see cref="T:NUnit.Framework.AssertionException"/> - is thrown. - </summary> - <param name="anObject">The object that is to be tested</param> - <param name="message">The message to be printed when the object is not null</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.IsNull(System.Object,System.String)"> - <summary> - Verifies that the object that is passed in is equal to <code>null</code> - If the object is <code>null</code> then an <see cref="T:NUnit.Framework.AssertionException"/> - is thrown. - </summary> - <param name="anObject">The object that is to be tested</param> - </member> - <member name="M:NUnit.Framework.Assert.IsNull(System.Object)"> - <summary> - Verifies that the object that is passed in is equal to <code>null</code> - If the object is <code>null</code> then an <see cref="T:NUnit.Framework.AssertionException"/> - is thrown. - </summary> - <param name="anObject">The object that is to be tested</param> - </member> - <member name="M:NUnit.Framework.Assert.AreSame(System.Object,System.Object,System.String,System.Object[])"> - <summary> - Asserts that two objects refer to the same object. If they - are not the same an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The expected object</param> - <param name="actual">The actual object</param> - <param name="message">The message to be printed when the two objects are not the same object.</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.AreSame(System.Object,System.Object,System.String)"> - <summary> - Asserts that two objects refer to the same object. If they - are not the same an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The expected object</param> - <param name="actual">The actual object</param> - <param name="message">The message to be printed when the object is null</param> - </member> - <member name="M:NUnit.Framework.Assert.AreSame(System.Object,System.Object)"> - <summary> - Asserts that two objects refer to the same object. If they - are not the same an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - <param name="expected">The expected object</param> - <param name="actual">The actual object</param> - </member> - <member name="M:NUnit.Framework.Assert.Fail(System.String,System.Object[])"> - <summary> - Throws an <see cref="T:NUnit.Framework.AssertionException"/> with the message and arguments - that are passed in. This is used by the other Assert functions. - </summary> - <param name="message">The message to initialize the <see cref="T:NUnit.Framework.AssertionException"/> with.</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.Fail(System.String)"> - <summary> - Throws an <see cref="T:NUnit.Framework.AssertionException"/> with the message that is - passed in. This is used by the other Assert functions. - </summary> - <param name="message">The message to initialize the <see cref="T:NUnit.Framework.AssertionException"/> with.</param> - </member> - <member name="M:NUnit.Framework.Assert.Fail"> - <summary> - Throws an <see cref="T:NUnit.Framework.AssertionException"/>. - This is used by the other Assert functions. - </summary> - </member> - <member name="M:NUnit.Framework.Assert.Ignore(System.String,System.Object[])"> - <summary> - Throws an <see cref="T:NUnit.Framework.IgnoreException"/> with the message and arguments - that are passed in. This causes the test to be reported as ignored. - </summary> - <param name="message">The message to initialize the <see cref="T:NUnit.Framework.AssertionException"/> with.</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.Ignore(System.String)"> - <summary> - Throws an <see cref="T:NUnit.Framework.IgnoreException"/> with the message that is - passed in. This causes the test to be reported as ignored. - </summary> - <param name="message">The message to initialize the <see cref="T:NUnit.Framework.AssertionException"/> with.</param> - </member> - <member name="M:NUnit.Framework.Assert.Ignore"> - <summary> - Throws an <see cref="T:NUnit.Framework.IgnoreException"/>. - This causes the test to be reported as ignored. - </summary> - <param name="message">The message to initialize the <see cref="T:NUnit.Framework.AssertionException"/> with.</param> - </member> - <member name="M:NUnit.Framework.Assert.FailNotEquals(System.Object,System.Object,System.String,System.Object[])"> - <summary> - This method is called when two objects have been compared and found to be - different. This prints a nice message to the screen. - </summary> - <param name="message">The message that is to be printed prior to the comparison failure</param> - <param name="expected">The expected object</param> - <param name="actual">The actual object</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.FailArraysNotEqual(System.Int32,System.Array,System.Array,System.String,System.Object[])"> - <summary> - This method is called when two arrays have been compared and found to be - different. This prints a nice message to the screen. - </summary> - <param name="index">The index at which the failure occured</param> - <param name="expected">The expected array</param> - <param name="actual">The actual array</param> - <param name="message">The message that is to be printed prior to the comparison failure</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="M:NUnit.Framework.Assert.FailNotSame(System.Object,System.Object,System.String,System.Object[])"> - <summary> - This method is called when the two objects are not the same. - </summary> - <param name="message">The message to be printed on the screen</param> - <param name="expected">The expected object</param> - <param name="actual">The actual object</param> - <param name="args">Arguments to be used in formatting the message</param> - </member> - <member name="P:NUnit.Framework.Assert.Counter"> - <summary> - Gets the number of assertions executed so far and - resets the counter to zero. - </summary> - </member> - <member name="T:NUnit.Framework.Assertion"> - <summary>A set of Assert methods.</summary> - - </member> - <member name="M:NUnit.Framework.Assertion.Assert(System.String,System.Boolean)"> - <summary> - Asserts that a condition is true. If it isn't it throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="message">The message to display is the condition - is false</param> - <param name="condition">The evaluated condition</param> - </member> - <member name="M:NUnit.Framework.Assertion.Assert(System.Boolean)"> - <summary> - Asserts that a condition is true. If it isn't it throws - an <see cref="T:NUnit.Framework.AssertionException"/>. - </summary> - <param name="condition">The evaluated condition</param> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.Double,System.Double,System.Double)"> - <summary> - /// Asserts that two doubles are equal concerning a delta. If the - expected value is infinity then the delta value is ignored. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.Single,System.Single,System.Single)"> - <summary> - /// Asserts that two singles are equal concerning a delta. If the - expected value is infinity then the delta value is ignored. - </summary> - <param name="expected">The expected value</param> - <param name="actual">The actual value</param> - <param name="delta">The maximum acceptable difference between the - the expected and the actual</param> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.Object,System.Object)"> - <summary>Asserts that two objects are equal. If they are not - an <see cref="T:NUnit.Framework.AssertionException"/> is thrown.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.Int32,System.Int32)"> - <summary>Asserts that two ints are equal. If they are not - an <see cref="T:NUnit.Framework.AssertionException"/> is thrown.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.String,System.Int32,System.Int32)"> - <summary>Asserts that two ints are equal. If they are not - an <see cref="T:NUnit.Framework.AssertionException"/> is thrown.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.String,System.Double,System.Double,System.Double)"> - <summary>Asserts that two doubles are equal concerning a delta. - If the expected value is infinity then the delta value is ignored. - </summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.String,System.Single,System.Single,System.Single)"> - <summary>Asserts that two floats are equal concerning a delta. - If the expected value is infinity then the delta value is ignored. - </summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertEquals(System.String,System.Object,System.Object)"> - <summary> - Asserts that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. Numeric - types are compared via string comparision on their contents to - avoid problems comparing values between different types. All - non-numeric types are compared by using the <c>Equals</c> method. - If they are not equal an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertNotNull(System.Object)"> - <summary>Asserts that an object isn't null.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertNotNull(System.String,System.Object)"> - <summary>Asserts that an object isn't null.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertNull(System.Object)"> - <summary>Asserts that an object is null.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertNull(System.String,System.Object)"> - <summary>Asserts that an object is null.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertSame(System.Object,System.Object)"> - <summary>Asserts that two objects refer to the same object. If they - are not the same an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - </member> - <member name="M:NUnit.Framework.Assertion.AssertSame(System.String,System.Object,System.Object)"> - <summary>Asserts that two objects refer to the same object. - If they are not an <see cref="T:NUnit.Framework.AssertionException"/> is thrown. - </summary> - </member> - <member name="M:NUnit.Framework.Assertion.Fail"> - <summary>Fails a test with no message.</summary> - </member> - <member name="M:NUnit.Framework.Assertion.Fail(System.String)"> - <summary>Fails a test with the given message.</summary> - </member> - <member name="T:NUnit.Framework.AssertionException"> - <summary> - Thrown when an assertion failed. - </summary> - - </member> - <member name="M:NUnit.Framework.AssertionException.#ctor(System.String)"> - <summary> - - </summary> - <param name="message"></param> - </member> - <member name="M:NUnit.Framework.AssertionException.#ctor(System.String,System.Exception)"> - <summary> - Standard constructor - </summary> - <param name="message">The error message that explains - the reason for the exception</param> - <param name="inner">The exception that caused the - current exception</param> - </member> - <member name="M:NUnit.Framework.AssertionException.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> - <summary> - Serialization Constructor - </summary> - </member> - <member name="T:NUnit.Framework.AssertionFailureMessage"> - <summary> - Summary description for AssertionFailureMessage. - </summary> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.#ctor"> - <summary> - Protected constructor, used since this class is only used via - static methods - </summary> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.IsPreClipped(System.Int32)"> - <summary> - Called to test if the position will cause clipping - to occur in the early part of a string. - </summary> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.IsPostClipped(System.String,System.Int32)"> - <summary> - Called to test if the position will cause clipping - to occur in the later part of a string past the - specified position. - </summary> - <param name="sString"></param> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.ClipAroundPosition(System.String,System.Int32)"> - <summary> - Renders up to M characters before, and up to N characters after - the specified index position. If leading or trailing text is - clipped, and elipses "..." is added where the missing text would - be. - - Clips strings to limit previous or post newline characters, - since these mess up the comparison - </summary> - <param name="sString"></param> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.PreClip(System.String,System.Int32)"> - <summary> - Clips the string before the specified position, and appends - ellipses (...) to show that clipping has occurred - </summary> - <param name="sString"></param> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.PostClip(System.String,System.Int32)"> - <summary> - Clips the string after the specified position, and appends - ellipses (...) to show that clipping has occurred - </summary> - <param name="sString"></param> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildBefore(System.String,System.Int32)"> - <summary> - Builds the first half of a string, limiting the number of - characters before the position, and removing newline - characters. If the leading string is truncated, the - ellipses (...) characters are appened. - </summary> - <param name="sString"></param> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildAfter(System.String,System.Int32)"> - <summary> - Builds the last half of a string, limiting the number of - characters after the position, and removing newline - characters. If the string is truncated, the - ellipses (...) characters are appened. - </summary> - <param name="sString"></param> - <param name="iPosition"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.ExpectedText"> - <summary> - Text that is rendered for the expected value - </summary> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.ButWasText"> - <summary> - Text rendered for the actual value. This text should - be the same length as the Expected text, so leading - spaces should pad this string to ensure they match. - </summary> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.AppendExpectedAndActual(System.Text.StringBuilder,System.Object,System.Object)"> - <summary> - Raw line that communicates the expected value, and the actual value - </summary> - <param name="sbOutput"></param> - <param name="expected"></param> - <param name="actual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.DisplayString(System.Object)"> - <summary> - Display an object as a string - </summary> - <param name="obj"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.Quoted(System.String)"> - <summary> - Quote a string - </summary> - <param name="text"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.AppendPositionMarker(System.Text.StringBuilder,System.Int32)"> - <summary> - Draws a marker under the expected/actual strings that highlights - where in the string a mismatch occurred. - </summary> - <param name="sbOutput"></param> - <param name="iPosition"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.InputsAreStrings(System.Object,System.Object)"> - <summary> - Tests two objects to determine if they are strings. - </summary> - <param name="expected"></param> - <param name="actual"></param> - <returns></returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.LengthsDifferent(System.String,System.String)"> - <summary> - Tests if two strings are different lengths. - </summary> - <param name="sExpected"></param> - <param name="sActual"></param> - <returns>True if string lengths are different</returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.LengthsDifferent(System.Object[],System.Object[])"> - <summary> - Tests if two arrays are different lengths. - </summary> - <param name="sExpected"></param> - <param name="sActual"></param> - <returns>True if array lengths are different</returns> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildLengthsDifferentMessage(System.Text.StringBuilder,System.String,System.String)"> - <summary> - Used to construct a message when the lengths of two strings are - different. Also includes the strings themselves, to allow them - to be compared visually. - </summary> - <param name="sbOutput"></param> - <param name="sExpected"></param> - <param name="sActual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildStringLengthDifferentReport(System.Text.StringBuilder,System.String,System.String)"> - <summary> - Reports the length of two strings that are different lengths - </summary> - <param name="sbOutput"></param> - <param name="sExpected"></param> - <param name="sActual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildStringLengthSameReport(System.Text.StringBuilder,System.String,System.String)"> - <summary> - Reports the length of two strings that are the same length - </summary> - <param name="sbOutput"></param> - <param name="sExpected"></param> - <param name="sActual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildStringLengthReport(System.Text.StringBuilder,System.String,System.String)"> - <summary> - Reports whether the string lengths are the same or different, and - what the string lengths are. - </summary> - <param name="sbOutput"></param> - <param name="sExpected"></param> - <param name="sActual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildArrayLengthDifferentReport(System.Text.StringBuilder,System.Array,System.Array)"> - <summary> - Reports the length of two arrays that are different lengths - </summary> - <param name="sbOutput"></param> - <param name="expected"></param> - <param name="actual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildArrayLengthSameReport(System.Text.StringBuilder,System.Array,System.Array)"> - <summary> - Reports the length of two arrays that are the same length - </summary> - <param name="sbOutput"></param> - <param name="expected"></param> - <param name="actual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildArrayLengthReport(System.Text.StringBuilder,System.Array,System.Array)"> - <summary> - Reports whether the array lengths are the same or different, and - what the array lengths are. - </summary> - <param name="sbOutput"></param> - <param name="expected"></param> - <param name="actual"></param> - </member> - <member name="M:NUnit.Framework.AssertionFailureMessage.BuildContentDifferentAtPosition(System.Text.StringBuilder,System.String,System.String,System.Int32)"> - <summary> - - </summary> - <param name="sbOutput"></param> - <param name="sExpected"></param> - <param name="sActual"></param> - <param name="iPosition"></param> - </member> - <member name="M:NUnit.Fram... [truncated message content] |