diff --git a/NHibernate.nunit b/NHibernate.nunit
index a91f3140198..1458f998950 100644
--- a/NHibernate.nunit
+++ b/NHibernate.nunit
@@ -3,11 +3,13 @@
+
+
\ No newline at end of file
diff --git a/ShowBuildMenu.bat b/ShowBuildMenu.bat
index e859d4c304d..03c6547a77e 100644
--- a/ShowBuildMenu.bat
+++ b/ShowBuildMenu.bat
@@ -5,7 +5,7 @@ set NANT="%~dp0Tools\nant\bin\NAnt.exe" -t:net-4.0
set BUILDTOOL="%~dp0Tools\BuildTool\bin\Release\BuildTool.exe"
set AVAILABLE_CONFIGURATIONS=%~dp0available-test-configurations
set CURRENT_CONFIGURATION=%~dp0current-test-configuration
-set NUNIT="%~dp0Tools\nunit\nunit-x86.exe"
+set NUNIT="%~dp0Tools\nunit\nunit3-console.exe"
:main-menu
echo ========================= NHIBERNATE BUILD MENU ==========================
@@ -161,7 +161,7 @@ echo Configuration activated.
goto main-menu
:test-run
-start "" %NUNIT% NHibernate.nunit
+start "nunit3-console" cmd /K %NUNIT% --x86 --agents=1 --process=separate NHibernate.nunit
goto main-menu
rem :build-test
diff --git a/Tools/nunit/CHANGES.txt b/Tools/nunit/CHANGES.txt
new file mode 100644
index 00000000000..44014fe99b6
--- /dev/null
+++ b/Tools/nunit/CHANGES.txt
@@ -0,0 +1,12 @@
+NUnit msi Installer 3.5.0 - October 12th, 2016
+
+ * Framework is no longer installed, now solely distributed via NuGet.
+
+Components Installed:
+ * NUnit.Engine 3.4.1
+ * NUnit.Console 3.4.1
+ * NUnit.Extension.VSProjectLoader 3.4.1
+ * NUnit.Extension.NUnitProjectLoader 3.4.1
+ * NUnit.Extension.NUnitV2Driver 3.4.1
+ * NUnit.Extension.NUnitV2ResultWriter 3.4.1
+ * NUnit.Extension.TeamCityEventListener 1.0.2
diff --git a/Tools/nunit/LICENSE.txt b/Tools/nunit/LICENSE.txt
new file mode 100644
index 00000000000..1a8c7b8ffd9
--- /dev/null
+++ b/Tools/nunit/LICENSE.txt
@@ -0,0 +1,20 @@
+Copyright (c) 2016 Charlie Poole
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/Tools/nunit/License.rtf b/Tools/nunit/License.rtf
new file mode 100644
index 00000000000..88df775e0d2
--- /dev/null
+++ b/Tools/nunit/License.rtf
@@ -0,0 +1,6 @@
+{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Calibri;}}
+{\*\generator Msftedit 5.41.21.2510;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\b\f0\fs22 Copyright (c) 2016 Charlie Poole\b0\par
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\par
+}
diff --git a/Tools/nunit/Mono.Cecil.dll b/Tools/nunit/Mono.Cecil.dll
new file mode 100644
index 00000000000..8e3610fe2dc
Binary files /dev/null and b/Tools/nunit/Mono.Cecil.dll differ
diff --git a/Tools/nunit/NOTICES.txt b/Tools/nunit/NOTICES.txt
new file mode 100644
index 00000000000..02f3f84d68d
--- /dev/null
+++ b/Tools/nunit/NOTICES.txt
@@ -0,0 +1,5 @@
+NUnit 3.0 is based on earlier versions of NUnit, with Portions
+
+Copyright (c) 2002-2014 Charlie Poole or
+Copyright (c) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or
+Copyright (c) 2000-2002 Philip A. Craig
diff --git a/Tools/nunit/NUnitFitTests.html b/Tools/nunit/NUnitFitTests.html
deleted file mode 100644
index ca5cd4ff70d..00000000000
--- a/Tools/nunit/NUnitFitTests.html
+++ /dev/null
@@ -1,277 +0,0 @@
-
-
-
- NUnit Acceptance Tests
-
- Developers love self-referential programs! Hence, NUnit has always run all it's
- own tests, even those that are not really unit tests.
-
Now, beginning with NUnit 2.4, NUnit has top-level tests using Ward Cunningham's
- FIT framework. At this time, the tests are pretty rudimentary, but it's a start
- and it's a framework for doing more.
-
Running the Tests
- Open a console or shell window and navigate to the NUnit bin directory, which
- contains this file. To run the test under Microsoft .Net, enter the command
-
runFile NUnitFitTests.html TestResults.html .
- To run it under Mono, enter
- mono runFile.exe NUnitFitTests.html TestResults.html .
- Note the space and dot at the end of each command. The results of your test
- will be in TestResults.html in the same directory.
- Platform and CLR Version
-
-
- NUnit.Fixtures.PlatformInfo |
-
-
- Verify Unit Tests
-
- Load and run the NUnit unit tests, verifying that the results are as expected.
- When these tests are run on different platforms, different numbers of tests may
- be skipped, so the values for Skipped and Run tests are informational only.
-
- The number of tests in each assembly should be constant across all platforms -
- any discrepancy usually means that one of the test source files was not
- compiled on the platform. There should be no failures and no tests ignored.
-
Note:
- At the moment, the nunit.extensions.tests assembly is failing because the
- fixture doesn't initialize addins in the test domain.
-
-
-
- NUnit.Fixtures.AssemblyRunner |
-
-
- Assembly |
- Tests() |
- Run() |
- Skipped() |
- Ignored() |
- Failures() |
-
-
- nunit.framework.tests.dll |
- 397 |
- |
- |
- 0 |
- 0 |
-
-
- nunit.core.tests.dll |
- 355 |
- |
- |
- 0 |
- 0 |
-
-
- nunit.util.tests.dll |
- 238 |
- |
- |
- 0 |
- 0 |
-
-
- nunit.mocks.tests.dll |
- 43 |
- |
- |
- 0 |
- 0 |
-
-
- nunit.extensions.tests.dll |
- 5 |
- |
- |
- 0 |
- 0 |
-
-
- nunit-console.tests.dll |
- 40 |
- |
- |
- 0 |
- 0 |
-
-
- nunit.uikit.tests.dll |
- 34 |
- |
- |
- 0 |
- 0 |
-
-
- nunit-gui.tests.dll |
- 15 |
- |
- |
- 0 |
- 0 |
-
-
- nunit.fixtures.tests.dll |
- 6 |
- |
- |
- 0 |
- 0 |
-
-
- Code Snippet Tests
-
- These tests create a test assembly from a snippet of code and then load and run
- the tests that it contains, verifying that the structure of the loaded tests is
- as expected and that the number of tests run, skipped, ignored or failed is
- correct.
-
-
-
- NUnit.Fixtures.SnippetRunner |
-
-
- Code |
- Tree() |
- Run() |
- Skipped() |
- Ignored() |
- Failures() |
-
-
- public class TestClass
-{
-}
- |
- EMPTY |
- 0 |
- 0 |
- 0 |
- 0 |
-
-
- using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
-}
- |
- TestClass |
- 0 |
- 0 |
- 0 |
- 0 |
-
-
- using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
- [Test]
- public void T1() { }
- [Test]
- public void T2() { }
- [Test]
- public void T3() { }
-}
- |
- TestClass
->T1
->T2
->T3
- |
- 3 |
- 0 |
- 0 |
- 0 |
-
-
- using NUnit.Framework;
-
-[TestFixture]
-public class TestClass1
-{
- [Test]
- public void T1() { }
-}
-
-[TestFixture]
-public class TestClass2
-{
- [Test]
- public void T2() { }
- [Test]
- public void T3() { }
-}
- |
- TestClass1
->T1
-TestClass2
->T2
->T3
- |
- 3 |
- 0 |
- 0 |
- 0 |
-
-
- using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
- [Test]
- public void T1() { }
- [Test, Ignore]
- public void T2() { }
- [Test]
- public void T3() { }
-}
- |
- TestClass
->T1
->T2
->T3
- |
- 2 |
- 0 |
- 1 |
- 0 |
-
-
- using NUnit.Framework;
-
-[TestFixture]
-public class TestClass
-{
- [Test]
- public void T1() { }
- [Test, Explicit]
- public void T2() { }
- [Test]
- public void T3() { }
-}
- |
- TestClass
->T1
->T2
->T3
- |
- 2 |
- 1 |
- 0 |
- 0 |
-
-
- Summary Information
-
-
-
diff --git a/Tools/nunit/NUnitTests.config b/Tools/nunit/NUnitTests.config
deleted file mode 100644
index 72ed67c79a4..00000000000
--- a/Tools/nunit/NUnitTests.config
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Tools/nunit/NUnitTests.nunit b/Tools/nunit/NUnitTests.nunit
deleted file mode 100644
index 15b98d3f03b..00000000000
--- a/Tools/nunit/NUnitTests.nunit
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Tools/nunit/addins/nunit-project-loader.dll b/Tools/nunit/addins/nunit-project-loader.dll
new file mode 100644
index 00000000000..2677499cb30
Binary files /dev/null and b/Tools/nunit/addins/nunit-project-loader.dll differ
diff --git a/Tools/nunit/addins/nunit-v2-result-writer.dll b/Tools/nunit/addins/nunit-v2-result-writer.dll
new file mode 100644
index 00000000000..4d9755c28c4
Binary files /dev/null and b/Tools/nunit/addins/nunit-v2-result-writer.dll differ
diff --git a/Tools/nunit/addins/nunit.core.dll b/Tools/nunit/addins/nunit.core.dll
new file mode 100644
index 00000000000..8bbe3e2cdba
Binary files /dev/null and b/Tools/nunit/addins/nunit.core.dll differ
diff --git a/Tools/nunit/addins/nunit.core.interfaces.dll b/Tools/nunit/addins/nunit.core.interfaces.dll
new file mode 100644
index 00000000000..b18127d3a7c
Binary files /dev/null and b/Tools/nunit/addins/nunit.core.interfaces.dll differ
diff --git a/Tools/nunit/addins/nunit.v2.driver.dll b/Tools/nunit/addins/nunit.v2.driver.dll
new file mode 100644
index 00000000000..acf1336eef0
Binary files /dev/null and b/Tools/nunit/addins/nunit.v2.driver.dll differ
diff --git a/Tools/nunit/addins/teamcity-event-listener.dll b/Tools/nunit/addins/teamcity-event-listener.dll
new file mode 100644
index 00000000000..eeeb99add72
Binary files /dev/null and b/Tools/nunit/addins/teamcity-event-listener.dll differ
diff --git a/Tools/nunit/addins/vs-project-loader.dll b/Tools/nunit/addins/vs-project-loader.dll
new file mode 100644
index 00000000000..b3eb0f49c8c
Binary files /dev/null and b/Tools/nunit/addins/vs-project-loader.dll differ
diff --git a/Tools/nunit/agent.conf b/Tools/nunit/agent.conf
deleted file mode 100644
index ddbcd8ea6d8..00000000000
--- a/Tools/nunit/agent.conf
+++ /dev/null
@@ -1,4 +0,0 @@
-
- 8080
- .
-
\ No newline at end of file
diff --git a/Tools/nunit/agent.log.conf b/Tools/nunit/agent.log.conf
deleted file mode 100644
index b5bcd9da484..00000000000
--- a/Tools/nunit/agent.log.conf
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/Tools/nunit/framework/mock-assembly.exe b/Tools/nunit/framework/mock-assembly.exe
new file mode 100644
index 00000000000..a6df3d91b7b
Binary files /dev/null and b/Tools/nunit/framework/mock-assembly.exe differ
diff --git a/Tools/nunit/framework/nunit.framework.dll b/Tools/nunit/framework/nunit.framework.dll
index 215767d2fb3..f08e57564d2 100644
Binary files a/Tools/nunit/framework/nunit.framework.dll and b/Tools/nunit/framework/nunit.framework.dll differ
diff --git a/Tools/nunit/framework/nunit.framework.tests.dll b/Tools/nunit/framework/nunit.framework.tests.dll
new file mode 100644
index 00000000000..a4f2c4d153f
Binary files /dev/null and b/Tools/nunit/framework/nunit.framework.tests.dll differ
diff --git a/Tools/nunit/framework/nunit.framework.xml b/Tools/nunit/framework/nunit.framework.xml
index 7b0e798cada..47332e24fe5 100644
--- a/Tools/nunit/framework/nunit.framework.xml
+++ b/Tools/nunit/framework/nunit.framework.xml
@@ -4,9549 +4,16915 @@
nunit.framework
-
+
- Attribute used to apply a category to a test
+ The different targets a test action attribute can be applied to
-
+
- The name of the category
+ Default target, which is determined by where the action attribute is attached
-
+
- Construct attribute for a given category based on
- a name. The name may not contain the characters ',',
- '+', '-' or '!'. However, this is not checked in the
- constructor since it would cause an error to arise at
- as the test was loaded without giving a clear indication
- of where the problem is located. The error is handled
- in NUnitFramework.cs by marking the test as not
- runnable.
+ Target a individual test case
- The name of the category
-
+
- Protected constructor uses the Type name as the name
- of the category.
+ Target a suite of test cases
-
+
- The name of the category
+ DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite
+ containing test fixtures present in the assembly.
-
+
- Used to mark a field for use as a datapoint when executing a theory
- within the same fixture that requires an argument of the field's Type.
+ The default suite builder used by the test assembly builder.
-
+
- Used to mark an array as containing a set of datapoints to be used
- executing a theory within the same fixture that requires an argument
- of the Type of the array elements.
+ Initializes a new instance of the class.
-
+
- Attribute used to provide descriptive text about a
- test case or fixture.
+ Build a suite of tests from a provided assembly
+ The assembly from which tests are to be built
+ A dictionary of options to use in building the suite
+
+ A TestSuite containing the tests found in the assembly
+
-
+
- Construct the attribute
+ Build a suite of tests given the filename of an assembly
- Text describing the test
+ The filename of the assembly from which tests are to be built
+ A dictionary of options to use in building the suite
+
+ A TestSuite containing the tests found in the assembly
+
-
+
- Gets the test description
+ FrameworkController provides a facade for use in loading, browsing
+ and running tests without requiring a reference to the NUnit
+ framework. All calls are encapsulated in constructors for
+ this class and its nested classes, which only require the
+ types of the Common Type System as arguments.
+
+ The controller supports four actions: Load, Explore, Count and Run.
+ They are intended to be called by a driver, which should allow for
+ proper sequencing of calls. Load must be called before any of the
+ other actions. The driver may support other actions, such as
+ reload on run, by combining these calls.
-
+
- Enumeration indicating how the expected message parameter is to be used
+ Construct a FrameworkController using the default builder and runner.
+ The AssemblyName or path to the test assembly
+ A prefix used for all test ids created under this controller.
+ A Dictionary of settings to use in loading and running the tests
-
- Expect an exact match
-
-
- Expect a message containing the parameter string
-
-
- Match the regular expression provided as a parameter
-
-
- Expect a message that starts with the parameter string
-
-
+
- ExpectedExceptionAttribute
+ Construct a FrameworkController using the default builder and runner.
-
+ The test assembly
+ A prefix used for all test ids created under this controller.
+ A Dictionary of settings to use in loading and running the tests
-
+
- Constructor for a non-specific exception
+ Construct a FrameworkController, specifying the types to be used
+ for the runner and builder. This constructor is provided for
+ purposes of development.
+ The full AssemblyName or the path to the test assembly
+ A prefix used for all test ids created under this controller.
+ A Dictionary of settings to use in loading and running the tests
+ The Type of the test runner
+ The Type of the test builder
-
+
- Constructor for a given type of exception
+ Construct a FrameworkController, specifying the types to be used
+ for the runner and builder. This constructor is provided for
+ purposes of development.
- The type of the expected exception
+ The test assembly
+ A prefix used for all test ids created under this controller.
+ A Dictionary of settings to use in loading and running the tests
+ The Type of the test runner
+ The Type of the test builder
-
+
- Constructor for a given exception name
+ Gets the ITestAssemblyBuilder used by this controller instance.
- The full name of the expected exception
+ The builder.
-
+
- Gets or sets the expected exception type
+ Gets the ITestAssemblyRunner used by this controller instance.
+ The runner.
-
+
- Gets or sets the full Type name of the expected exception
+ Gets the AssemblyName or the path for which this FrameworkController was created
-
+
- Gets or sets the expected message text
+ Gets the Assembly for which this
-
+
- Gets or sets the user message displayed in case of failure
+ Gets a dictionary of settings for the FrameworkController
-
+
- Gets or sets the type of match to be performed on the expected message
+ Loads the tests in the assembly
+
-
+
- Gets the name of a method to be used as an exception handler
+ Returns info about the tests in an assembly
+ A string containing the XML representation of the filter to use
+ The XML result of exploring the tests
-
+
- ExplicitAttribute marks a test or test fixture so that it will
- only be run if explicitly executed from the gui or command line
- or if it is included by use of a filter. The test will not be
- run simply because an enclosing suite is run.
+ Runs the tests in an assembly
+ A string containing the XML representation of the filter to use
+ The XML result of the test run
-
+
- Default constructor
+ Runs the tests in an assembly syncronously reporting back the test results through the callback
+ or through the return value
+ The callback that receives the test results
+ A string containing the XML representation of the filter to use
+ The XML result of the test run
-
+
- Constructor with a reason
+ Runs the tests in an assembly asyncronously reporting back the test results through the callback
- The reason test is marked explicit
+ The callback that receives the test results
+ A string containing the XML representation of the filter to use
-
+
- The reason test is marked explicit
+ Stops the test run
+ True to force the stop, false for a cooperative stop
-
+
- Attribute used to mark a test that is to be ignored.
- Ignored tests result in a warning message when the
- tests are run.
+ Counts the number of test cases in the loaded TestSuite
+ A string containing the XML representation of the filter to use
+ The number of tests
-
+
- Constructs the attribute without giving a reason
- for ignoring the test.
+ Inserts environment element
+ Target node
+ The new node
-
+
- Constructs the attribute giving a reason for ignoring the test
+ Inserts settings element
- The reason for ignoring the test
+ Target node
+ Settings dictionary
+ The new node
-
+
- The reason for ignoring a test
+ FrameworkControllerAction is the base class for all actions
+ performed against a FrameworkController.
-
+
- Abstract base for Attributes that are used to include tests
- in the test run based on environmental settings.
+ LoadTestsAction loads a test into the FrameworkController
-
+
- Constructor with no included items specified, for use
- with named property syntax.
+ LoadTestsAction loads the tests in an assembly.
+ The controller.
+ The callback handler.
-
+
- Constructor taking one or more included items
+ ExploreTestsAction returns info about the tests in an assembly
- Comma-delimited list of included items
-
+
- Name of the item that is needed in order for
- a test to run. Multiple itemss may be given,
- separated by a comma.
+ Initializes a new instance of the class.
+ The controller for which this action is being performed.
+ Filter used to control which tests are included (NYI)
+ The callback handler.
-
+
- Name of the item to be excluded. Multiple items
- may be given, separated by a comma.
+ CountTestsAction counts the number of test cases in the loaded TestSuite
+ held by the FrameworkController.
-
+
- The reason for including or excluding the test
+ Construct a CountsTestAction and perform the count of test cases.
+ A FrameworkController holding the TestSuite whose cases are to be counted
+ A string containing the XML representation of the filter to use
+ A callback handler used to report results
-
+
- PlatformAttribute is used to mark a test fixture or an
- individual method as applying to a particular platform only.
+ RunTestsAction runs the loaded TestSuite held by the FrameworkController.
-
+
- Constructor with no platforms specified, for use
- with named property syntax.
+ Construct a RunTestsAction and run all tests in the loaded TestSuite.
+ A FrameworkController holding the TestSuite to run
+ A string containing the XML representation of the filter to use
+ A callback handler used to report results
-
+
- Constructor taking one or more platforms
+ RunAsyncAction initiates an asynchronous test run, returning immediately
- Comma-deliminted list of platforms
-
+
- CultureAttribute is used to mark a test fixture or an
- individual method as applying to a particular Culture only.
+ Construct a RunAsyncAction and run all tests in the loaded TestSuite.
+ A FrameworkController holding the TestSuite to run
+ A string containing the XML representation of the filter to use
+ A callback handler used to report results
-
+
- Constructor with no cultures specified, for use
- with named property syntax.
+ StopRunAction stops an ongoing run.
-
+
- Constructor taking one or more cultures
+ Construct a StopRunAction and stop any ongoing run. If no
+ run is in process, no error is raised.
- Comma-deliminted list of cultures
+ The FrameworkController for which a run is to be stopped.
+ True the stop should be forced, false for a cooperative stop.
+ >A callback handler used to report results
+ A forced stop will cause threads and processes to be killed as needed.
-
+
- Marks a test to use a combinatorial join of any argument data
- provided. NUnit will create a test case for every combination of
- the arguments provided. This can result in a large number of test
- cases and so should be used judiciously. This is the default join
- type, so the attribute need not be used except as documentation.
+ The ITestAssemblyBuilder interface is implemented by a class
+ that is able to build a suite of tests given an assembly or
+ an assembly filename.
-
+
- PropertyAttribute is used to attach information to a test as a name/value pair..
+ Build a suite of tests from a provided assembly
+ The assembly from which tests are to be built
+ A dictionary of options to use in building the suite
+ A TestSuite containing the tests found in the assembly
-
+
- Construct a PropertyAttribute with a name and string value
+ Build a suite of tests given the filename of an assembly
- The name of the property
- The property value
+ The filename of the assembly from which tests are to be built
+ A dictionary of options to use in building the suite
+ A TestSuite containing the tests found in the assembly
-
+
- Construct a PropertyAttribute with a name and int value
+ The ITestAssemblyRunner interface is implemented by classes
+ that are able to execute a suite of tests loaded
+ from an assembly.
- The name of the property
- The property value
-
+
- Construct a PropertyAttribute with a name and double value
+ Gets the tree of loaded tests, or null if
+ no tests have been loaded.
- The name of the property
- The property value
-
+
- Constructor for derived classes that set the
- property dictionary directly.
+ Gets the tree of test results, if the test
+ run is completed, otherwise null.
-
+
- Constructor for use by derived classes that use the
- name of the type as the property name. Derived classes
- must ensure that the Type of the property value is
- a standard type supported by the BCL. Any custom
- types will cause a serialization Exception when
- in the client.
+ Indicates whether a test has been loaded
-
+
- Gets the property dictionary for this attribute
+ Indicates whether a test is currently running
-
+
- Default constructor
+ Indicates whether a test run is complete
-
+
- Marks a test to use pairwise join of any argument data provided.
- NUnit will attempt too excercise every pair of argument values at
- least once, using as small a number of test cases as it can. With
- only two arguments, this is the same as a combinatorial join.
+ Loads the tests found in an Assembly, returning an
+ indication of whether or not the load succeeded.
+ File name of the assembly to load
+ Dictionary of options to use in loading the test
+ An ITest representing the loaded tests
-
+
- Default constructor
+ Loads the tests found in an Assembly, returning an
+ indication of whether or not the load succeeded.
+ The assembly to load
+ Dictionary of options to use in loading the test
+ An ITest representing the loaded tests
-
+
- Marks a test to use a sequential join of any argument data
- provided. NUnit will use arguements for each parameter in
- sequence, generating test cases up to the largest number
- of argument values provided and using null for any arguments
- for which it runs out of values. Normally, this should be
- used with the same number of arguments for each parameter.
+ Count Test Cases using a filter
+ The filter to apply
+ The number of test cases found
-
+
- Default constructor
+ Run selected tests and return a test result. The test is run synchronously,
+ and the listener interface is notified as it progresses.
+ Interface to receive ITestListener notifications.
+ A test filter used to select tests to be run
-
+
- Summary description for MaxTimeAttribute.
+ Run selected tests asynchronously, notifying the listener interface as it progresses.
+ Interface to receive EventListener notifications.
+ A test filter used to select tests to be run
-
+
- Construct a MaxTimeAttribute, given a time in milliseconds.
+ Wait for the ongoing run to complete.
- The maximum elapsed time in milliseconds
+ Time to wait in milliseconds
+ True if the run completed, otherwise false
-
+
- RandomAttribute is used to supply a set of random values
- to a single parameter of a parameterized test.
+ Signal any test run that is in process to stop. Return without error if no test is running.
+ If true, kill any test-running threads
-
+
- ValuesAttribute is used to provide literal arguments for
- an individual parameter of a test.
+ Implementation of ITestAssemblyRunner
-
+
- Abstract base class for attributes that apply to parameters
- and supply data for the parameter.
+ Initializes a new instance of the class.
+ The builder.
-
+
- Gets the data to be provided to the specified parameter
+ Gets the default level of parallel execution (worker threads)
-
+
- The collection of data to be returned. Must
- be set by any derived attribute classes.
- We use an object[] so that the individual
- elements may have their type changed in GetData
- if necessary.
+ The tree of tests that was loaded by the builder
-
+
- Construct with one argument
+ The test result, if a run has completed
-
-
+
- Construct with two arguments
+ Indicates whether a test is loaded
-
-
-
+
- Construct with three arguments
+ Indicates whether a test is running
-
-
-
-
+
- Construct with an array of arguments
+ Indicates whether a test run is complete
-
-
+
- Get the collection of values to be used as arguments
+ Our settings, specified when loading the assembly
-
+
- Construct a set of doubles from 0.0 to 1.0,
- specifying only the count.
+ The top level WorkItem created for the assembly as a whole
-
-
+
- Construct a set of doubles from min to max
+ The TestExecutionContext for the top level WorkItem
-
-
-
-
+
- Construct a set of ints from min to max
+ Loads the tests found in an Assembly
-
-
-
+ File name of the assembly to load
+ Dictionary of option settings for loading the assembly
+ True if the load was successful
-
+
- Get the collection of values to be used as arguments
+ Loads the tests found in an Assembly
+ The assembly to load
+ Dictionary of option settings for loading the assembly
+ True if the load was successful
-
+
- RangeAttribute is used to supply a range of values to an
- individual parameter of a parameterized test.
+ Count Test Cases using a filter
+ The filter to apply
+ The number of test cases found
-
+
- Construct a range of ints using default step of 1
+ Run selected tests and return a test result. The test is run synchronously,
+ and the listener interface is notified as it progresses.
-
-
+ Interface to receive EventListener notifications.
+ A test filter used to select tests to be run
+
-
+
- Construct a range of ints specifying the step size
+ Run selected tests asynchronously, notifying the listener interface as it progresses.
-
-
-
+ Interface to receive EventListener notifications.
+ A test filter used to select tests to be run
+
+ RunAsync is a template method, calling various abstract and
+ virtual methods to be overridden by derived classes.
+
-
+
- Construct a range of longs
+ Wait for the ongoing run to complete.
-
-
-
+ Time to wait in milliseconds
+ True if the run completed, otherwise false
-
+
- Construct a range of doubles
+ Signal any test run that is in process to stop. Return without error if no test is running.
-
-
-
+ If true, kill any tests that are currently running
-
+
- Construct a range of floats
+ Initiate the test run.
-
-
-
-
+
- RepeatAttribute may be applied to test case in order
- to run it multiple times.
+ Create the initial TestExecutionContext used to run tests
+ The ITestListener specified in the RunAsync call
-
+
- Construct a RepeatAttribute
+ Handle the the Completed event for the top level work item
- The number of times to run the test
-
+
- RequiredAddinAttribute may be used to indicate the names of any addins
- that must be present in order to run some or all of the tests in an
- assembly. If the addin is not loaded, the entire assembly is marked
- as NotRunnable.
+ The Assert class contains a collection of static methods that
+ implement the most common assertions used in NUnit.
-
-
- Initializes a new instance of the class.
+ The Assert class contains a collection of static methods that
+ implement the most common assertions used in NUnit.
- The required addin.
-
+
- Gets the name of required addin.
+ Verifies that the first int is greater than the second
+ int. If it is not, then an
+ is thrown.
- The required addin name.
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
-
+
- Summary description for SetCultureAttribute.
+ Verifies that the first int is greater than the second
+ int. If it is not, then an
+ is thrown.
+ The first value, expected to be greater
+ The second value, expected to be less
-
+
- Construct given the name of a culture
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
-
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
-
+
- Summary description for SetUICultureAttribute.
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+ The first value, expected to be greater
+ The second value, expected to be less
-
+
- Construct given the name of a culture
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
-
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
-
+
- SetUpAttribute is used in a TestFixture to identify a method
- that is called immediately before each test is run. It is
- also used in a SetUpFixture to identify the method that is
- called once, before any of the subordinate tests are run.
-
-
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null
then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null
then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null
then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null
then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null
then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null
then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null
then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null
then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the double that is passed in is an NaN
value.
+ If the object is not NaN
then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the double that is passed in is an NaN
value.
+ If the object is not NaN
then an
+ is thrown.
+
+ The value that is to be tested
+
+
+
+ Verifies that the double that is passed in is an NaN
value.
+ If the object is not NaN
then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the double that is passed in is an NaN
value.
+ If the object is not NaN
then an
+ is thrown.
+
+ The value that is to be tested
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+
+
+
+ Asserts that an int is zero.
+
+ The number to be examined
+
+
+
+ Asserts that an int is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned int is zero.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned int is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a Long is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a Long is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned Long is zero.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned Long is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a decimal is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a decimal is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a double is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a double is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a float is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a float is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an int is not zero.
+
+ The number to be examined
+
+
+
+ Asserts that an int is not zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned int is not zero.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned int is not zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a Long is not zero.
+
+ The number to be examined
+
+
+
+ Asserts that a Long is not zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned Long is not zero.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned Long is not zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a decimal is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a decimal is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a double is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a double is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a float is zero.
+
+ The number to be examined
+
+
+
+ Asserts that a float is zero.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an int is negative.
+
+ The number to be examined
+
+
+
+ Asserts that an int is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned int is negative.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned int is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a Long is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a Long is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned Long is negative.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned Long is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a decimal is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a decimal is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a double is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a double is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a float is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a float is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an int is negative.
+
+ The number to be examined
+
+
+
+ Asserts that an int is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned int is negative.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned int is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a Long is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a Long is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an unsigned Long is negative.
+
+ The number to be examined
+
+
+
+ Asserts that an unsigned Long is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a decimal is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a decimal is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a double is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a double is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a float is negative.
+
+ The number to be examined
+
+
+
+ Asserts that a float is negative.
+
+ The number to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ The Equals method throws an InvalidOperationException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an InvalidOperationException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+ The message to initialize the with.
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This is used by the other Assert functions.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This is used by the other Assert functions.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This is used by the other Assert functions.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This causes the test to be reported as ignored.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This causes the test to be reported as ignored.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This causes the test to be reported as ignored.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This causes the test to be reported as inconclusive.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This causes the test to be reported as inconclusive.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This causes the test to be reported as Inconclusive.
+
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+
+
+
+ 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 equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ 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 equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+
+
+
+ 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 equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ 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 equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+
+
+
+ Helper for Assert.AreEqual(double expected, double actual, ...)
+ allowing code generation to work consistently.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+
+
+
+ Verifies that an async delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestDelegate
+
+
+
+ Verifies that an async delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestDelegate
+
+
+
+ Verifies that an async delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+
+
+
+ Verifies that an async delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+
+
+
+ Verifies that an async delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ A TestDelegate
+
+
+
+ Verifies that an async delegate does not throw an exception
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that an async delegate does not throw an exception.
+
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ A TestDelegate
+
+
+
+ Verifies that a delegate does not throw an exception
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate does not throw an exception.
+
+ A TestDelegate
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ A function to build the message included with the Exception
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ A lambda that returns a Boolean
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ A lambda that returns a Boolean
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ A lambda that returns a Boolean
+ A function to build the message included with the Exception
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ The Type being compared.
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ The Type being compared.
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ The Type being compared.
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ A function to build the message included with the Exception
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+ A function to build the message included with the Exception
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ The Type being compared.
+ The actual value to test
+ A Constraint to be applied
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ The Type being compared.
+ The actual value to test
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ The Type being compared.
+ The actual value to test
+ A Constraint expression to be applied
+ A function to build the message included with the Exception
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+ Used as a synonym for That in rare cases where a private setter
+ causes a Visual Basic compilation error.
+
+ The actual value to test
+ A Constraint to be applied
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+ Used as a synonym for That in rare cases where a private setter
+ causes a Visual Basic compilation error.
+
+
+ This method is provided for use by VB developers needing to test
+ the value of properties with private setters.
+
+ The actual value to test
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Delegate used by tests that execute code and
+ capture any thrown exception.
+
+
+
+
+ Delegate used by tests that execute async code and
+ capture any thrown exception.
+
+
+
+
+ AssertionHelper is an optional base class for user tests,
+ allowing the use of shorter ids for constraints and
+ asserts and avoiding conflict with the definition of
+ , from which it inherits much of its
+ behavior, in certain mock object frameworks.
+
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to
+ .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to .
+
+ The evaluated condition
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Returns a ListMapper based on a collection.
+
+ The original collection
+
+
+
+
+ Provides static methods to express the assumptions
+ that must be met for a test to give a meaningful
+ result. If an assumption is not met, the test
+ should produce an inconclusive result.
+
+
+
+
+ The Equals method throws an InvalidOperationException. This is done
+ to make sure there is no mistake by calling this function.
+
+ The left object.
+ The right object.
+ Not applicable
+
+
+
+ override the default ReferenceEquals to throw an InvalidOperationException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+ The left object.
+ The right object.
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ The Type being compared.
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ The Type being compared.
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ The Type being compared.
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ A function to build the message included with the Exception
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the
+ method throws an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ A function to build the message included with the Exception
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ A lambda that returns a Boolean
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ A lambda that returns a Boolean
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ A lambda that returns a Boolean
+ A function to build the message included with the Exception
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ The Type being compared.
+ The actual value to test
+ A Constraint to be applied
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ The Type being compared.
+ The actual value to test
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ The Type being compared.
+ The actual value to test
+ A Constraint to be applied
+ A function to build the message included with the Exception
+
+
+
+ Marks a test that must run in a particular threading apartment state, causing it
+ to run in a separate thread if necessary.
+
+
+
+
+ Construct an ApartmentAttribute
+
+ The apartment state that this test must be run under. You must pass in a valid apartment state.
+
+
+
+ Provides the Author of a test or test fixture.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name of the author.
+
+
+
+ Initializes a new instance of the class.
+
+ The name of the author.
+ The email address of the author.
+
+
+
+ Attribute used to apply a category to a test
+
+
+
+
+ The name of the category
+
+
+
+
+ Construct attribute for a given category based on
+ a name. The name may not contain the characters ',',
+ '+', '-' or '!'. However, this is not checked in the
+ constructor since it would cause an error to arise at
+ as the test was loaded without giving a clear indication
+ of where the problem is located. The error is handled
+ in NUnitFramework.cs by marking the test as not
+ runnable.
+
+ The name of the category
+
+
+
+ Protected constructor uses the Type name as the name
+ of the category.
+
+
+
+
+ The name of the category
+
+
+
+
+ Modifies a test by adding a category to it.
+
+ The test to modify
+
+
+
+ Marks a test to use a combinatorial join of any argument
+ data provided. Since this is the default, the attribute is
+ optional.
+
+
+
+
+ Default constructor
+
+
+
+
+ Marks a test to use a particular CombiningStrategy to join
+ any parameter data provided. Since this is the default, the
+ attribute is optional.
+
+
+
+
+ Construct a CombiningStrategyAttribute incorporating an
+ ICombiningStrategy and an IParamterDataProvider.
+
+ Combining strategy to be used in combining data
+ An IParameterDataProvider to supply data
+
+
+
+ Construct a CombiningStrategyAttribute incorporating an object
+ that implements ICombiningStrategy and an IParameterDataProvider.
+ This constructor is provided for CLS compliance.
+
+ Combining strategy to be used in combining data
+ An IParameterDataProvider to supply data
+
+
+
+ Construct one or more TestMethods from a given MethodInfo,
+ using available parameter data.
+
+ The MethodInfo for which tests are to be constructed.
+ The suite to which the tests will be added.
+ One or more TestMethods
+
+
+
+ Modify the test by adding the name of the combining strategy
+ to the properties.
+
+ The test to modify
+
+
+
+ CultureAttribute is used to mark a test fixture or an
+ individual method as applying to a particular Culture only.
+
+
+
+
+ Constructor with no cultures specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more cultures
+
+ Comma-deliminted list of cultures
+
+
+
+ Causes a test to be skipped if this CultureAttribute is not satisfied.
+
+ The test to modify
+
+
+
+ Tests to determine if the current culture is supported
+ based on the properties of this attribute.
+
+ True, if the current culture is supported
+
+
+
+ Test to determine if the a particular culture or comma-
+ delimited set of cultures is in use.
+
+ Name of the culture or comma-separated list of culture ids
+ True if the culture is in use on the system
+
+
+
+ Test to determine if one of a collection of cultures
+ is being used currently.
+
+
+
+
+
+
+ The abstract base class for all data-providing attributes
+ defined by NUnit. Used to select all data sources for a
+ method, class or parameter.
+
+
+
+
+ Default constructor
+
+
+
+
+ Used to mark a field for use as a datapoint when executing a theory
+ within the same fixture that requires an argument of the field's Type.
+
+
+
+
+ Used to mark a field, property or method providing a set of datapoints to
+ be used in executing any theories within the same fixture that require an
+ argument of the Type provided. The data source may provide an array of
+ the required Type or an .
+ Synonymous with DatapointSourceAttribute.
+
+
+
+
+ Used to mark a field, property or method providing a set of datapoints to
+ be used in executing any theories within the same fixture that require an
+ argument of the Type provided. The data source may provide an array of
+ the required Type or an .
+ Synonymous with DatapointsAttribute.
+
+
+
+
+ Attribute used to provide descriptive text about a
+ test case or fixture.
+
+
+
+
+ Construct a description Attribute
+
+ The text of the description
+
+
+
+ ExplicitAttribute marks a test or test fixture so that it will
+ only be run if explicitly executed from the gui or command line
+ or if it is included by use of a filter. The test will not be
+ run simply because an enclosing suite is run.
+
+
+
+
+ Default constructor
+
+
+
+
+ Constructor with a reason
+
+ The reason test is marked explicit
+
+
+
+ Modifies a test by marking it as explicit.
+
+ The test to modify
+
+
+
+ Attribute used to mark a test that is to be ignored.
+ Ignored tests result in a warning message when the
+ tests are run.
+
+
+
+
+ Constructs the attribute giving a reason for ignoring the test
+
+ The reason for ignoring the test
+
+
+
+ The date in the future to stop ignoring the test as a string in UTC time.
+ For example for a date and time, "2014-12-25 08:10:00Z" or for just a date,
+ "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC.
+
+
+ Once the ignore until date has passed, the test will be marked
+ as runnable. Tests with an ignore until date will have an IgnoreUntilDate
+ property set which will appear in the test results.
+
+ The string does not contain a valid string representation of a date and time.
+
+
+
+ Modifies a test by marking it as Ignored.
+
+ The test to modify
+
+
+
+ Abstract base for Attributes that are used to include tests
+ in the test run based on environmental settings.
+
+
+
+
+ Constructor with no included items specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more included items
+
+ Comma-delimited list of included items
+
+
+
+ Name of the item that is needed in order for
+ a test to run. Multiple items may be given,
+ separated by a comma.
+
+
+
+
+ Name of the item to be excluded. Multiple items
+ may be given, separated by a comma.
+
+
+
+
+ The reason for including or excluding the test
+
+
+
+
+ SingleThreadedAttribute applies to a test fixture and indicates
+ that all the child tests must be run on the same thread as the
+ OneTimeSetUp and OneTimeTearDown. It sets a flag in the
+ TestExecutionContext and forces all tests to be run sequentially
+ on the current thread. Any ParallelScope setting is ignored.
+
+
+
+
+ Apply changes to the TestExecutionContext
+
+ The TestExecutionContext
+
+
+
+ TestAssemblyDirectoryResolveAttribute is used to mark a test assembly as needing a
+ special assembly resolution hook that will explicitly search the test assembly's
+ directory for dependent assemblies. This works around a conflict between mixed-mode
+ assembly initialization and tests running in their own AppDomain in some cases.
+
+
+
+
+ LevelOfParallelismAttribute is used to set the number of worker threads
+ that may be allocated by the framework for running tests.
+
+
+
+
+ Construct a LevelOfParallelismAttribute.
+
+ The number of worker threads to be created by the framework.
+
+
+
+ Summary description for MaxTimeAttribute.
+
+
+
+
+ Construct a MaxTimeAttribute, given a time in milliseconds.
+
+ The maximum elapsed time in milliseconds
+
+
+
+ The abstract base class for all custom attributes defined by NUnit.
+
+
+
+
+ Default constructor
+
+
+
+
+ Attribute used to identify a method that is called once
+ to perform setup before any child tests are run.
+
+
+
+
+ Attribute used to identify a method that is called once
+ after all the child tests have run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ Defines the order that the test will run in
+
+
+
+
+ Defines the order that the test will run in
+
+
+
+
+ Defines the order that the test will run in
+
+
+
+
+
+ Modifies a test as defined for the specific attribute.
+
+ The test to modify
+
+
+
+ Marks a test to use a pairwise join of any argument
+ data provided. Arguments will be combined in such a
+ way that all possible pairs of arguments are used.
+
+
+
+
+ Default constructor
+
+
+
+
+ ParallelizableAttribute is used to mark tests that may be run in parallel.
+
+
+
+
+ Construct a ParallelizableAttribute using default ParallelScope.Self.
+
+
+
+
+ Construct a ParallelizableAttribute with a specified scope.
+
+ The ParallelScope associated with this attribute.
+
+
+
+ Modify the context to be used for child tests
+
+ The current TestExecutionContext
+
+
+
+ The ParallelScope enumeration permits specifying the degree to
+ which a test and its descendants may be run in parallel.
+
+
+
+
+ No Parallelism is permitted
+
+
+
+
+ The test itself may be run in parallel with others at the same level
+
+
+
+
+ Descendants of the test may be run in parallel with one another
+
+
+
+
+ Descendants of the test down to the level of TestFixtures may be run in parallel
+
+
+
+
+ PlatformAttribute is used to mark a test fixture or an
+ individual method as applying to a particular platform only.
+
+
+
+
+ Constructor with no platforms specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more platforms
+
+ Comma-delimited list of platforms
+
+
+
+ Causes a test to be skipped if this PlatformAttribute is not satisfied.
+
+ The test to modify
+
+
+
+ PropertyAttribute is used to attach information to a test as a name/value pair..
+
+
+
+
+ Construct a PropertyAttribute with a name and string value
+
+ The name of the property
+ The property value
+
+
+
+ Construct a PropertyAttribute with a name and int value
+
+ The name of the property
+ The property value
+
+
+
+ Construct a PropertyAttribute with a name and double value
+
+ The name of the property
+ The property value
+
+
+
+ Constructor for derived classes that set the
+ property dictionary directly.
+
+
+
+
+ Constructor for use by derived classes that use the
+ name of the type as the property name. Derived classes
+ must ensure that the Type of the property value is
+ a standard type supported by the BCL. Any custom
+ types will cause a serialization Exception when
+ in the client.
+
+
+
+
+ Gets the property dictionary for this attribute
+
+
+
+
+ Modifies a test by adding properties to it.
+
+ The test to modify
+
+
+
+ RandomAttribute is used to supply a set of random _values
+ to a single parameter of a parameterized test.
+
+
+
+
+ Construct a random set of values appropriate for the Type of the
+ parameter on which the attribute appears, specifying only the count.
+
+
+
+
+
+ Construct a set of ints within a specified range
+
+
+
+
+ Construct a set of unsigned ints within a specified range
+
+
+
+
+ Construct a set of longs within a specified range
+
+
+
+
+ Construct a set of unsigned longs within a specified range
+
+
+
+
+ Construct a set of shorts within a specified range
+
+
+
+
+ Construct a set of unsigned shorts within a specified range
+
+
+
+
+ Construct a set of doubles within a specified range
+
+
+
+
+ Construct a set of floats within a specified range
+
+
+
+
+ Construct a set of bytes within a specified range
+
+
+
+
+ Construct a set of sbytes within a specified range
+
+
+
+
+ Get the collection of _values to be used as arguments.
+
+
+
+
+ RangeAttribute is used to supply a range of _values to an
+ individual parameter of a parameterized test.
+
+
+
+
+ Construct a range of ints using default step of 1
+
+
+
+
+
+
+ Construct a range of ints specifying the step size
+
+
+
+
+
+
+
+ Construct a range of unsigned ints using default step of 1
+
+
+
+
+
+
+ Construct a range of unsigned ints specifying the step size
+
+
+
+
+
+
+
+ Construct a range of longs using a default step of 1
+
+
+
+
+
+
+ Construct a range of longs
+
+
+
+
+
+
+
+ Construct a range of unsigned longs using default step of 1
+
+
+
+
+
+
+ Construct a range of unsigned longs specifying the step size
+
+
+
+
+
+
+
+ Construct a range of doubles
+
+
+
+
+
+
+
+ Construct a range of floats
+
+
+
+
+
+
+
+ RepeatAttribute may be applied to test case in order
+ to run it multiple times.
+
+
+
+
+ Construct a RepeatAttribute
+
+ The number of times to run the test
+
+
+
+ Wrap a command and return the result.
+
+ The command to be wrapped
+ The wrapped command
+
+
+
+ The test command for the RepeatAttribute
+
+
+
+
+ Initializes a new instance of the class.
+
+ The inner command.
+ The number of repetitions
+
+
+
+ Runs the test, saving a TestResult in the supplied TestExecutionContext.
+
+ The context in which the test should run.
+ A TestResult
+
+
+
+ Marks a test that must run in the MTA, causing it
+ to run in a separate thread if necessary.
+
+ On methods, you may also use MTAThreadAttribute
+ to serve the same purpose.
+
+
+
+
+ Construct a RequiresMTAAttribute
+
+
+
+
+ Marks a test that must run in the STA, causing it
+ to run in a separate thread if necessary.
+
+
+
+
+ Construct a RequiresSTAAttribute
+
+
+
+
+ Marks a test that must run on a separate thread.
+
+
+
+
+ Construct a RequiresThreadAttribute
+
+
+
+
+ Construct a RequiresThreadAttribute, specifying the apartment
+
+
+
+
+ RepeatAttribute may be applied to test case in order
+ to run it multiple times.
+
+
+
+
+ Construct a RepeatAttribute
+
+ The number of times to run the test
+
+
+
+ Wrap a command and return the result.
+
+ The command to be wrapped
+ The wrapped command
+
+
+
+ The test command for the RetryAttribute
+
+
+
+
+ Initializes a new instance of the class.
+
+ The inner command.
+ The number of repetitions
+
+
+
+ Runs the test, saving a TestResult in the supplied TestExecutionContext.
+
+ The context in which the test should run.
+ A TestResult
+
+
+
+ Marks a test to use a Sequential join of any argument
+ data provided. Arguments will be combined into test cases,
+ taking the next value of each argument until all are used.
+
+
+
+
+ Default constructor
+
+
+
+
+ Summary description for SetCultureAttribute.
+
+
+
+
+ Construct given the name of a culture
+
+
+
+
+
+ Summary description for SetUICultureAttribute.
+
+
+
+
+ Construct given the name of a culture
+
+
+
+
+
+ Attribute used to mark a class that contains one-time SetUp
+ and/or TearDown methods that apply to all the tests in a
+ namespace or an assembly.
+
+
+
+
+ Attribute used to mark a class that contains one-time SetUp
+ and/or TearDown methods that apply to all the tests in a
+ namespace or an assembly.
+
+
+
+
+ Attribute used to mark a class that contains one-time SetUp
+ and/or TearDown methods that apply to all the tests in a
+ namespace or an assembly.
+
+
- Attribute used to mark a class that contains one-time SetUp
- and/or TearDown methods that apply to all the tests in a
- namespace or an assembly.
+ SetUpFixtureAttribute is used to identify a SetUpFixture
+
+
+
+
+ Build a SetUpFixture from type provided. Normally called for a Type
+ on which the attribute has been placed.
+
+ The type info of the fixture to be used.
+ A SetUpFixture object as a TestSuite.
+
+
+
+ Attribute used to identify a method that is called
+ immediately after each test is run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ Provide actions to execute before and after tests.
+
+
+
+
+ Executed before each test is run
+
+ The test that is going to be run.
+
+
+
+ Executed after each test is run
+
+ The test that has just been run.
+
+
+
+ Provides the target for the action attribute
+
+
+
+
+ Adding this attribute to a method within a
+ class makes the method callable from the NUnit test runner. There is a property
+ called Description which is optional which you can provide a more detailed test
+ description. This class cannot be inherited.
+
+
+
+ [TestFixture]
+ public class Fixture
+ {
+ [Test]
+ public void MethodToTest()
+ {}
+
+ [Test(Description = "more detailed description")]
+ public void TestDescriptionMethod()
+ {}
+ }
+
+
+
+
+
+ Descriptive text for this test
+
+
+
+
+ The author of this test
+
+
+
+
+ The type that this test is testing
+
+
+
+
+ Modifies a test by adding a description, if not already set.
+
+ The test to modify
+
+
+
+ Gets or sets the expected result.
+
+ The result.
+
+
+
+ Returns true if an expected result has been set
+
+
+
+
+ Construct a TestMethod from a given method.
+
+ The method for which a test is to be constructed.
+ The suite to which the test will be added.
+ A TestMethod
+
+
+
+ TestCaseAttribute is used to mark parameterized test cases
+ and provide them with their arguments.
+
+
+
+
+ Construct a TestCaseAttribute with a list of arguments.
+ This constructor is not CLS-Compliant
+
+
+
+
+
+ Construct a TestCaseAttribute with a single argument
+
+
+
+
+
+ Construct a TestCaseAttribute with a two arguments
+
+
+
+
+
+
+ Construct a TestCaseAttribute with a three arguments
+
+
+
+
+
+
+
+ Gets or sets the name of the test.
+
+ The name of the test.
+
+
+
+ Gets or sets the RunState of this test case.
+
+
+
+
+ Gets the list of arguments to a test case
+
+
+
+
+ Gets the properties of the test case
+
+
+
+
+ Gets or sets the expected result.
+
+ The result.
+
+
+
+ Returns true if the expected result has been set
+
+
+
+
+ Gets or sets the description.
+
+ The description.
+
+
+
+ The author of this test
+
+
+
+
+ The type that this test is testing
+
+
+
+
+ Gets or sets the reason for ignoring the test
+
+
+
+
+ Gets or sets a value indicating whether this is explicit.
+
+
+ true if explicit; otherwise, false.
+
+
+
+
+ Gets or sets the reason for not running the test.
+
+ The reason.
+
+
+
+ Gets or sets the ignore reason. When set to a non-null
+ non-empty value, the test is marked as ignored.
+
+ The ignore reason.
+
+
+
+ Comma-delimited list of platforms to run the test for
+
+
+
+
+ Comma-delimited list of platforms to not run the test for
+
+
+
+
+ Gets and sets the category for this test case.
+ May be a comma-separated list of categories.
+
+
+
+
+ Performs several special conversions allowed by NUnit in order to
+ permit arguments with types that cannot be used in the constructor
+ of an Attribute such as TestCaseAttribute or to simplify their use.
+
+ The arguments to be converted
+ The ParameterInfo array for the method
+
+
+
+ Construct one or more TestMethods from a given MethodInfo,
+ using available parameter data.
+
+ The MethodInfo for which tests are to be constructed.
+ The suite to which the tests will be added.
+ One or more TestMethods
+
+
+
+ TestCaseSourceAttribute indicates the source to be used to
+ provide test cases for a test method.
+
+
+
+
+ Construct with the name of the method, property or field that will provide data
+
+ The name of a static method, property or field that will provide data.
+
+
+
+ Construct with a Type and name
+
+ The Type that will provide data
+ The name of a static method, property or field that will provide data.
+ A set of parameters passed to the method, works only if the Source Name is a method.
+ If the source name is a field or property has no effect.
+
+
+
+ Construct with a Type and name
+
+ The Type that will provide data
+ The name of a static method, property or field that will provide data.
+
+
+
+ Construct with a Type
+
+ The type that will provide data
+
+
+
+ A set of parameters passed to the method, works only if the Source Name is a method.
+ If the source name is a field or property has no effect.
+
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ Gets or sets the category associated with every fixture created from
+ this attribute. May be a single category or a comma-separated list.
+
+
+
+
+ Construct one or more TestMethods from a given MethodInfo,
+ using available parameter data.
+
+ The IMethod for which tests are to be constructed.
+ The suite to which the tests will be added.
+ One or more TestMethods
+
+
+
+ Returns a set of ITestCaseDataItems for use as arguments
+ to a parameterized test method.
+
+ The method for which data is needed.
+
+
+
+
+ TestFixtureAttribute is used to mark a class that represents a TestFixture.
+
+
+
+
+ Default constructor
+
+
+
+
+ Construct with a object[] representing a set of arguments.
+ In .NET 2.0, the arguments may later be separated into
+ type arguments and constructor arguments.
+
+
+
+
+
+ Gets or sets the name of the test.
+
+ The name of the test.
+
+
+
+ Gets or sets the RunState of this test fixture.
+
+
+
+
+ The arguments originally provided to the attribute
+
+
+
+
+ Properties pertaining to this fixture
+
+
+
+
+ Get or set the type arguments. If not set
+ explicitly, any leading arguments that are
+ Types are taken as type arguments.
+
+
+
+
+ Descriptive text for this fixture
+
+
+
+
+ The author of this fixture
+
+
+
+
+ The type that this fixture is testing
+
+
+
+
+ Gets or sets the ignore reason. May set RunState as a side effect.
+
+ The ignore reason.
+
+
+
+ Gets or sets the reason for not running the fixture.
+
+ The reason.
+
+
+
+ Gets or sets the ignore reason. When set to a non-null
+ non-empty value, the test is marked as ignored.
+
+ The ignore reason.
+
+
+
+ Gets or sets a value indicating whether this is explicit.
+
+
+ true if explicit; otherwise, false.
+
+
+
+
+ Gets and sets the category for this fixture.
+ May be a comma-separated list of categories.
+
+
+
+
+ Build a fixture from type provided. Normally called for a Type
+ on which the attribute has been placed.
+
+ The type info of the fixture to be used.
+ A an IEnumerable holding one TestFixture object.
+
+
+
+ Attribute used to identify a method that is
+ called before any tests in a fixture are run.
+
+
+
+
+ TestCaseSourceAttribute indicates the source to be used to
+ provide test fixture instances for a test class.
+
+
+
+
+ Error message string is public so the tests can use it
+
+
+
+
+ Construct with the name of the method, property or field that will provide data
+
+ The name of a static method, property or field that will provide data.
+
+
+
+ Construct with a Type and name
+
+ The Type that will provide data
+ The name of a static method, property or field that will provide data.
+
+
+
+ Construct with a Type
+
+ The type that will provide data
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ Gets or sets the category associated with every fixture created from
+ this attribute. May be a single category or a comma-separated list.
+
+
+
+
+ Construct one or more TestFixtures from a given Type,
+ using available parameter data.
+
+ The TypeInfo for which fixures are to be constructed.
+ One or more TestFixtures as TestSuite
+
+
+
+ Returns a set of ITestFixtureData items for use as arguments
+ to a parameterized test fixture.
+
+ The type for which data is needed.
+
+
+
+
+ Attribute used to identify a method that is called after
+ all the tests in a fixture have run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ Indicates which class the test or test fixture is testing
+
+
+
+
+ Initializes a new instance of the class.
+
+ The type that is being tested.
+
+
+
+ Initializes a new instance of the class.
+
+ The type that is being tested.
+
+
+
+ Adding this attribute to a method within a
+ class makes the method callable from the NUnit test runner. There is a property
+ called Description which is optional which you can provide a more detailed test
+ description. This class cannot be inherited.
+
+
+
+ [TestFixture]
+ public class Fixture
+ {
+ [Test]
+ public void MethodToTest()
+ {}
+
+ [Test(Description = "more detailed description")]
+ public void TestDescriptionMethod()
+ {}
+ }
+
+
+
+
+
+ Construct the attribute, specifying a combining strategy and source of parameter data.
+
+
+
+
+ Used on a method, marks the test with a timeout value in milliseconds.
+ The test will be run in a separate thread and is cancelled if the timeout
+ is exceeded. Used on a class or assembly, sets the default timeout
+ for all contained test methods.
+
+
+
+
+ Construct a TimeoutAttribute given a time in milliseconds
+
+ The timeout value in milliseconds
+
+
+
+ ValuesAttribute is used to provide literal arguments for
+ an individual parameter of a test.
+
+
+
+
+ The collection of data to be returned. Must
+ be set by any derived attribute classes.
+ We use an object[] so that the individual
+ elements may have their type changed in GetData
+ if necessary
+
+
+
+
+ Constructs for use with an Enum parameter. Will pass every enum
+ value in to the test.
+
+
+
+
+ Construct with one argument
+
+
+
+
+
+ Construct with two arguments
+
+
+
+
+
+
+ Construct with three arguments
+
+
+
+
+
+
+
+ Construct with an array of arguments
+
+
+
+
+
+ Get the collection of _values to be used as arguments
+
+
+
+
+ ValueSourceAttribute indicates the source to be used to
+ provide data for one parameter of a test method.
+
+
+
+
+ Construct with the name of the factory - for use with languages
+ that don't support params arrays.
+
+ The name of a static method, property or field that will provide data.
+
+
+
+ Construct with a Type and name - for use with languages
+ that don't support params arrays.
+
+ The Type that will provide data
+ The name of a static method, property or field that will provide data.
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ Gets an enumeration of data items for use as arguments
+ for a test method parameter.
+
+ The parameter for which data is needed
+
+ An enumeration containing individual data items
+
+
+
+
+ A set of Assert methods operating on one or more collections
+
+
+
+
+ The Equals method throws an InvalidOperationException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an InvalidOperationException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable containing objects to be considered
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the superset does not contain the subset
+
+ The IEnumerable subset to be considered
+ The IEnumerable superset to be considered
+
+
+
+ Asserts that the superset does not contain the subset
+
+ The IEnumerable subset to be considered
+ The IEnumerable superset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the superset contains the subset.
+
+ The IEnumerable subset to be considered
+ The IEnumerable superset to be considered
+
+
+
+ Asserts that the superset contains the subset.
+
+ The IEnumerable subset to be considered
+ The IEnumerable superset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the subset does not contain the superset
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+
+
+
+ Asserts that the subset does not contain the superset
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the subset contains the superset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+
+
+
+ Asserts that the subset contains the superset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array,list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array,list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+
+
+
+ AllItemsConstraint applies another constraint to each
+ item in a collection, succeeding if they all succeed.
+
+
+
+
+ Construct an AllItemsConstraint on top of an existing constraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ failing if any item fails.
+
+
+
+
+
+
+ AndConstraint succeeds only if both members succeed.
+
+
+
+
+ Create an AndConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ Gets text describing a constraint
+
+
+
+
+ Apply both member constraints to an actual value, succeeding
+ succeeding only if both of them succeed.
+
+ The actual value
+ True if the constraints both succeeded
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ AssignableFromConstraint is used to test that an object
+ can be assigned from a given Type.
+
+
+
+
+ Construct an AssignableFromConstraint for the type provided
+
+
+
+
+
+ Apply the constraint to an actual value, returning true if it succeeds
+
+ The actual argument
+ True if the constraint succeeds, otherwise false.
+
+
+
+ AssignableToConstraint is used to test that an object
+ can be assigned to a given Type.
+
+
+
+
+ Construct an AssignableToConstraint for the type provided
+
+
+
+
+
+ Apply the constraint to an actual value, returning true if it succeeds
+
+ The actual argument
+ True if the constraint succeeds, otherwise false.
+
+
+
+ AttributeConstraint tests that a specified attribute is present
+ on a Type or other provider and that the value of the attribute
+ satisfies some other constraint.
+
+
+
+
+ Constructs an AttributeConstraint for a specified attribute
+ Type and base constraint.
+
+
+
+
+
+
+ Determines whether the Type or other provider has the
+ expected attribute and if its value matches the
+ additional constraint specified.
+
+
+
+
+ Returns a string representation of the constraint.
+
+
+
+
+ AttributeExistsConstraint tests for the presence of a
+ specified attribute on a Type.
+
+
+
+
+ Constructs an AttributeExistsConstraint for a specific attribute Type
+
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Tests whether the object provides the expected attribute.
+
+ A Type, MethodInfo, or other ICustomAttributeProvider
+ True if the expected attribute is present, otherwise false
+
+
+
+ BinaryConstraint is the abstract base of all constraints
+ that combine two other constraints in some fashion.
+
+
+
+
+ The first constraint being combined
+
+
+
+
+ The second constraint being combined
+
+
+
+
+ Construct a BinaryConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ BinarySerializableConstraint tests whether
+ an object is serializable in binary format.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Returns the string representation
+
+
+
+
+ CollectionConstraint is the abstract base class for
+ constraints that operate on collections.
+
+
+
+
+ Construct an empty CollectionConstraint
+
+
+
+
+ Construct a CollectionConstraint
+
+
+
+
+
+ Determines whether the specified enumerable is empty.
+
+ The enumerable.
+
+ true if the specified enumerable is empty; otherwise, false.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Protected method to be implemented by derived classes
+
+
+
+
+
+
+ CollectionContainsConstraint is used to test whether a collection
+ contains an expected object as a member.
+
+
+
+
+ Construct a CollectionContainsConstraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Gets the expected object
+
+
+
+
+ Test whether the expected item is contained in the collection
+
+
+
+
+
+
+ Flag the constraint to use the supplied predicate function
+
+ The comparison function to use.
+ Self.
+
+
+
+ CollectionEquivalentConstraint is used to determine whether two
+ collections are equivalent.
+
+
+
+
+ Construct a CollectionEquivalentConstraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether two collections are equivalent
+
+
+
+
+
+
+ Flag the constraint to use the supplied predicate function
+
+ The comparison function to use.
+ Self.
+
+
+
+ CollectionItemsEqualConstraint is the abstract base class for all
+ collection constraints that apply some notion of item equality
+ as a part of their operation.
+
+
+
+
+ Construct an empty CollectionConstraint
+
+
+
+
+ Construct a CollectionConstraint
+
+
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied Comparison object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Compares two collection members for equality
+
+
+
+
+ Return a new CollectionTally for use in making tests
+
+ The collection to be included in the tally
+
+
+
+ CollectionOrderedConstraint is used to test whether a collection is ordered.
+
+
+
+
+ Construct a CollectionOrderedConstraint
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ If used performs a default ascending comparison
+
+
+
+
+ If used performs a reverse comparison
+
+
+
+
+ Modifies the constraint to use an and returns self.
+
+
+
+
+ Modifies the constraint to use an and returns self.
+
+
+
+
+ Modifies the constraint to use a and returns self.
+
+
+
+
+ Modifies the constraint to test ordering by the value of
+ a specified property and returns self.
+
+
+
+
+ Then signals a break between two ordering steps
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the collection is ordered
+
+
+
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ An OrderingStep represents one stage of the sort
+
+
+
+
+ CollectionSubsetConstraint is used to determine whether
+ one collection is a subset of another
+
+
+
+
+ Construct a CollectionSubsetConstraint
+
+ The collection that the actual value is expected to be a subset of
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the actual collection is a subset of
+ the expected collection provided.
+
+
+
+
+
+
+ Flag the constraint to use the supplied predicate function
+
+ The comparison function to use.
+ Self.
+
+
+
+ CollectionSupersetConstraint is used to determine whether
+ one collection is a superset of another
+
+
+
+
+ Construct a CollectionSupersetConstraint
+
+ The collection that the actual value is expected to be a superset of
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the actual collection is a superset of
+ the expected collection provided.
+
+
+
+
+
+
+ Flag the constraint to use the supplied predicate function
+
+ The comparison function to use.
+ Self.
+
+
+
+ CollectionTally counts (tallies) the number of
+ occurrences of each object in one or more enumerations.
+
+
+
+
+ Construct a CollectionTally object from a comparer and a collection
+
+
+
+
+ The number of objects remaining in the tally
+
+
+
+
+ Try to remove an object from the tally
+
+ The object to remove
+ True if successful, false if the object was not found
+
+
+
+ Try to remove a set of objects from the tally
+
+ The objects to remove
+ True if successful, false if any object was not found
+
+
+
+ ComparisonAdapter class centralizes all comparisons of
+ _values in NUnit, adapting to the use of any provided
+ ,
+ or .
+
+
+
+
+ Gets the default ComparisonAdapter, which wraps an
+ NUnitComparer object.
+
+
+
+
+ Returns a ComparisonAdapter that wraps an
+
+
+
+
+ Returns a ComparisonAdapter that wraps an
+
+
+
+
+ Returns a ComparisonAdapter that wraps a
+
+
+
+
+ Compares two objects
+
+
+
+
+ Construct a default ComparisonAdapter
+
+
+
+
+ Construct a ComparisonAdapter for an
+
+
+
+
+ Compares two objects
+
+
+
+
+
+
+
+ ComparerAdapter extends and
+ allows use of an or
+ to actually perform the comparison.
+
+
+
+
+ Construct a ComparisonAdapter for an
+
+
+
+
+ Compare a Type T to an object
+
+
+
+
+ Construct a ComparisonAdapter for a
+
+
+
+
+ Compare a Type T to an object
+
+
+
+
+ Abstract base class for constraints that compare _values to
+ determine if one is greater than, equal to or less than
+ the other.
+
+
+
+
+ The value against which a comparison is to be made
+
+
+
+
+ If true, less than returns success
+
+
+
+
+ if true, equal returns success
+
+
+
+
+ if true, greater than returns success
+
+
+
+
+ ComparisonAdapter to be used in making the comparison
+
+
+
+
+ Initializes a new instance of the class.
+
+ The value against which to make a comparison.
+ if set to true less succeeds.
+ if set to true equal succeeds.
+ if set to true greater succeeds.
+ String used in describing the constraint.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Modifies the constraint to use an and returns self
+
+ The comparer used for comparison tests
+ A constraint modified to use the given comparer
+
+
+
+ Modifies the constraint to use an and returns self
+
+ The comparer used for comparison tests
+ A constraint modified to use the given comparer
+
+
+
+ Modifies the constraint to use a and returns self
+
+ The comparer used for comparison tests
+ A constraint modified to use the given comparer
+
+
+
+ Delegate used to delay evaluation of the actual value
+ to be used in evaluating a constraint
+
+
+
+
+ The Constraint class is the base of all built-in constraints
+ within NUnit. It provides the operator overloads used to combine
+ constraints.
+
+
+
+
+ Construct a constraint with optional arguments
+
+ Arguments to be saved
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Arguments provided to this Constraint, for use in
+ formatting the description.
+
+
+
+
+ The ConstraintBuilder holding this constraint
+
+
+
+
+ Applies the constraint to an actual value, returning a ConstraintResult.
+
+ The value to be tested
+ A ConstraintResult
+
+
+
+ Applies the constraint to an ActualValueDelegate that returns
+ the value to be tested. The default implementation simply evaluates
+ the delegate but derived classes may override it to provide for
+ delayed processing.
+
+ An ActualValueDelegate
+ A ConstraintResult
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ The default implementation simply dereferences the value but
+ derived classes may override it to provide for delayed processing.
+
+ A reference to the value to be tested
+ A ConstraintResult
+
+
+
+ Retrieves the value to be tested from an ActualValueDelegate.
+ The default implementation simply evaluates the delegate but derived
+ classes may override it to provide for delayed processing.
+
+ An ActualValueDelegate
+ Delegate evaluation result
+
+
+
+ Default override of ToString returns the constraint DisplayName
+ followed by any arguments within angle brackets.
+
+
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ This operator creates a constraint that is satisfied only if both
+ argument constraints are satisfied.
+
+
+
+
+ This operator creates a constraint that is satisfied if either
+ of the argument constraints is satisfied.
+
+
+
+
+ This operator creates a constraint that is satisfied if the
+ argument constraint is not satisfied.
+
+
+
+
+ Returns a ConstraintExpression by appending And
+ to the current constraint.
+
+
+
+
+ Returns a ConstraintExpression by appending And
+ to the current constraint.
+
+
+
+
+ Returns a ConstraintExpression by appending Or
+ to the current constraint.
+
+
+
+
+ Returns a DelayedConstraint with the specified delay time.
+
+ The delay in milliseconds.
+
+
+
+
+ Returns a DelayedConstraint with the specified delay time
+ and polling interval.
+
+ The delay in milliseconds.
+ The interval at which to test the constraint.
+
+
+
+
+ Resolves any pending operators and returns the resolved constraint.
+
+
+
+
+ ConstraintBuilder maintains the stacks that are used in
+ processing a ConstraintExpression. An OperatorStack
+ is used to hold operators that are waiting for their
+ operands to be reorganized. a ConstraintStack holds
+ input constraints as well as the results of each
+ operator applied.
+
+
+
+
+ OperatorStack is a type-safe stack for holding ConstraintOperators
+
+
+
+
+ Initializes a new instance of the class.
+
+ The ConstraintBuilder using this stack.
+
+
+
+ Gets a value indicating whether this is empty.
+
+ true if empty; otherwise, false.
+
+
+
+ Gets the topmost operator without modifying the stack.
+
+
+
+
+ Pushes the specified operator onto the stack.
+
+ The operator to put onto the stack.
+
+
+
+ Pops the topmost operator from the stack.
+
+ The topmost operator on the stack
+
+
+
+ ConstraintStack is a type-safe stack for holding Constraints
+
+
+
+
+ Initializes a new instance of the class.
+
+ The ConstraintBuilder using this stack.
+
+
+
+ Gets a value indicating whether this is empty.
+
+ true if empty; otherwise, false.
+
+
+
+ Pushes the specified constraint. As a side effect,
+ the constraint's Builder field is set to the
+ ConstraintBuilder owning this stack.
+
+ The constraint to put onto the stack
+
+
+
+ Pops this topmost constraint from the stack.
+ As a side effect, the constraint's Builder
+ field is set to null.
+
+ The topmost contraint on the stack
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Appends the specified operator to the expression by first
+ reducing the operator stack and then pushing the new
+ operator on the stack.
+
+ The operator to push.
+
+
+
+ Appends the specified constraint to the expression by pushing
+ it on the constraint stack.
+
+ The constraint to push.
+
+
+
+ Sets the top operator right context.
+
+ The right context.
+
+
+
+ Reduces the operator stack until the topmost item
+ precedence is greater than or equal to the target precedence.
+
+ The target precedence.
+
+
+
+ Resolves this instance, returning a Constraint. If the Builder
+ is not currently in a resolvable state, an exception is thrown.
+
+ The resolved constraint
+
+
+
+ Gets a value indicating whether this instance is resolvable.
+
+
+ true if this instance is resolvable; otherwise, false.
+
+
+
+
+ ConstraintExpression represents a compound constraint in the
+ process of being constructed from a series of syntactic elements.
+
+ Individual elements are appended to the expression as they are
+ reorganized. When a constraint is appended, it is returned as the
+ value of the operation so that modifiers may be applied. However,
+ any partially built expression is attached to the constraint for
+ later resolution. When an operator is appended, the partial
+ expression is returned. If it's a self-resolving operator, then
+ a ResolvableConstraintExpression is returned.
+
+
+
+
+ The ConstraintBuilder holding the elements recognized so far
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the
+ class passing in a ConstraintBuilder, which may be pre-populated.
+
+ The builder.
+
+
+
+ Returns a string representation of the expression as it
+ currently stands. This should only be used for testing,
+ since it has the side-effect of resolving the expression.
+
+
+
+
+
+ Appends an operator to the expression and returns the
+ resulting expression itself.
+
+
+
+
+ Appends a self-resolving operator to the expression and
+ returns a new ResolvableConstraintExpression.
+
+
+
+
+ Appends a constraint to the expression and returns that
+ constraint, which is associated with the current state
+ of the expression being built. Note that the constraint
+ is not reduced at this time. For example, if there
+ is a NotOperator on the stack we don't reduce and
+ return a NotConstraint. The original constraint must
+ be returned because it may support modifiers that
+ are yet to be applied.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding only if a specified number of them succeed.
+
+
+
+
+ Returns a new PropertyConstraintExpression, which will either
+ test for the existence of the named property on the object
+ being tested or apply any following constraint to that property.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ With is currently a NOP - reserved for future use.
+
+
+
+
+ Returns the constraint provided as an argument - used to allow custom
+ custom constraints to easily participate in the syntax.
+
+
+
+
+ Returns the constraint provided as an argument - used to allow custom
+ custom constraints to easily participate in the syntax.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for a positive value
+
+
+
+
+ Returns a constraint that tests for a negative value
+
+
+
+
+ Returns a constraint that tests if item is equal to zero
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a superset of the collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new ContainsConstraint. This constraint
+ will, in turn, make use of the appropriate second-level
+ constraint, depending on the type of the actual argument.
+ This overload is only used if the item sought is a string,
+ since any other type implies that we are looking for a
+ collection member.
+
+
+
+
+ Returns a new ContainsConstraint. This constraint
+ will, in turn, make use of the appropriate second-level
+ constraint, depending on the type of the actual argument.
+ This overload is only used if the item sought is a string,
+ since any other type implies that we are looking for a
+ collection member.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the a subpath of the expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a constraint that succeeds if the value
+ is a file or directory and it exists.
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding only if a specified number of them succeed.
+
+
+
+
+ Returns a new PropertyConstraintExpression, which will either
+ test for the existence of the named property on the object
+ being tested or apply any following constraint to that property.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for a positive value
+
+
+
+
+ Returns a constraint that tests for a negative value
+
+
+
+
+ Returns a constraint that tests for equality with zero
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the supplied argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a superset of the collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new ContainsConstraint. This constraint
+ will, in turn, make use of the appropriate second-level
+ constraint, depending on the type of the actual argument.
+ This overload is only used if the item sought is a string,
+ since any other type implies that we are looking for a
+ collection member.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value matches the pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is a subpath of the expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ ConstraintStatus represents the status of a ConstraintResult
+ returned by a Constraint being applied to an actual value.
+
+
+
+
+ The status has not yet been set
+
+
+
+
+ The constraint succeeded
+
+
+
+
+ The constraint failed
+
+
+
+
+ An error occured in applying the constraint (reserved for future use)
+
+
+
+
+ Contain the result of matching a against an actual value.
+
+
+
+
+ Constructs a for a particular .
+
+ The Constraint to which this result applies.
+ The actual value to which the Constraint was applied.
+
+
+
+ Constructs a for a particular .
+
+ The Constraint to which this result applies.
+ The actual value to which the Constraint was applied.
+ The status of the new ConstraintResult.
+
+
+
+ Constructs a for a particular .
+
+ The Constraint to which this result applies.
+ The actual value to which the Constraint was applied.
+ If true, applies a status of Success to the result, otherwise Failure.
+
+
+
+ The actual value that was passed to the method.
+
+
+
+
+ Gets and sets the ResultStatus for this result.
+
+
+
+
+ True if actual value meets the Constraint criteria otherwise false.
+
+
+
+
+ Display friendly name of the constraint.
+
+
+
+
+ Description of the constraint may be affected by the state the constraint had
+ when was performed against the actual value.
+
+
+
+
+ Write the failure message to the MessageWriter provided
+ as an argument. The default implementation simply passes
+ the result and the actual value to the writer, which
+ then displays the constraint description and the value.
+
+ Constraints that need to provide additional details,
+ such as where the error occured can override this.
+
+ The MessageWriter on which to display the message
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ ContainsConstraint tests a whether a string contains a substring
+ or a collection contains an object. It postpones the decision of
+ which test to use until the type of the actual argument is known.
+ This allows testing whether a string is contained in a collection
+ or as a substring of another string using the same syntax.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The _expected.
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Applies a delay to the match so that a match can be evaluated in the future.
+
+
+
+
+ Creates a new DelayedConstraint
+
+ The inner constraint to decorate
+ The time interval after which the match is performed
+ If the value of is less than 0
+
+
+
+ Creates a new DelayedConstraint
+
+ The inner constraint to decorate
+ The time interval after which the match is performed, in milliseconds
+ The time interval used for polling, in milliseconds
+ If the value of is less than 0
+
+
+
+ Gets text describing a constraint
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Test whether the constraint is satisfied by a delegate
+
+ The delegate whose value is to be tested
+ A ConstraintResult
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ Overridden to wait for the specified delay period before
+ calling the base constraint with the dereferenced value.
+
+ A reference to the value to be tested
+ True for success, false for failure
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+ Adjusts a Timestamp by a given TimeSpan
+
+
+
+
+
+
+
+ Returns the difference between two Timestamps as a TimeSpan
+
+
+
+
+
+
+
+ DictionaryContainsKeyConstraint is used to test whether a dictionary
+ contains an expected object as a key.
+
+
+
+
+ Construct a DictionaryContainsKeyConstraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the expected key is contained in the dictionary
+
+
+
+
+ DictionaryContainsValueConstraint is used to test whether a dictionary
+ contains an expected object as a value.
+
+
+
+
+ Construct a DictionaryContainsValueConstraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the expected value is contained in the dictionary
+
+
+
+
+ EmptyCollectionConstraint tests whether a collection is empty.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Check that the collection is empty
+
+
+
+
+
+
+ EmptyConstraint tests a whether a string or collection is empty,
+ postponing the decision about which test is applied until the
+ type of the actual argument is known.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ EmptyDirectoryConstraint is used to test that a directory is empty
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ EmptyStringConstraint tests whether a string is empty.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ EndsWithConstraint can test whether a string ends
+ with an expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected string
+
+
+
+ Test whether the constraint is matched by the actual value.
+ This is a template method, which calls the IsMatch method
+ of the derived class.
+
+
+
+
+
+
+ EqualConstraint is able to compare an actual value with the
+ expected value provided in its constructor. Two objects are
+ considered equal if both are null, or if both have the same
+ value. NUnit has special semantics for some object types.
+
+
+
+
+ NUnitEqualityComparer used to test equality.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Gets the tolerance for this comparison.
+
+
+ The tolerance.
+
+
+
+
+ Gets a value indicating whether to compare case insensitive.
+
+
+ true if comparing case insensitive; otherwise, false.
+
+
+
+
+ Gets a value indicating whether or not to clip strings.
+
+
+ true if set to clip strings otherwise, false.
+
+
+
+
+ Gets the failure points.
+
+
+ The failure points.
+
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ Flag the constraint to suppress string clipping
+ and return self.
+
+
+
+
+ Flag the constraint to compare arrays as collections
+ and return self.
+
+
+
+
+ Flag the constraint to use a tolerance when determining equality.
+
+ Tolerance value to be used
+ Self.
+
+
+
+ Flags the constraint to include
+ property in comparison of two values.
+
+
+ Using this modifier does not allow to use the
+ constraint modifier.
+
+
+
+
+ Switches the .Within() modifier to interpret its tolerance as
+ a distance in representable _values (see remarks).
+
+ Self.
+
+ Ulp stands for "unit in the last place" and describes the minimum
+ amount a given value can change. For any integers, an ulp is 1 whole
+ digit. For floating point _values, the accuracy of which is better
+ for smaller numbers and worse for larger numbers, an ulp depends
+ on the size of the number. Using ulps for comparison of floating
+ point results instead of fixed tolerances is safer because it will
+ automatically compensate for the added inaccuracy of larger numbers.
+
+
+
+
+ Switches the .Within() modifier to interpret its tolerance as
+ a percentage that the actual _values is allowed to deviate from
+ the expected value.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in days.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in hours.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in minutes.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in seconds.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in milliseconds.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in clock ticks.
+
+ Self
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied Comparison object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ EqualityAdapter class handles all equality comparisons
+ that use an ,
+ or a .
+
+
+
+
+ Compares two objects, returning true if they are equal
+
+
+
+
+ Returns true if the two objects can be compared by this adapter.
+ The base adapter cannot handle IEnumerables except for strings.
+
+
+
+
+ Returns an that wraps an .
+
+
+
+
+ that wraps an .
+
+
+
+
+ Returns an that wraps an .
+
+
+
+
+ Returns an EqualityAdapter that uses a predicate function for items comparison.
+
+
+
+
+
+
+
+
+ Returns true if the two objects can be compared by this adapter.
+ The base adapter cannot handle IEnumerables except for strings.
+
+
+
+
+ Compares two objects, returning true if they are equal
+
+
+
+
+ Returns true if the two objects can be compared by this adapter.
+ Generic adapter requires objects of the specified type.
+
+
+
+
+ Returns an that wraps an .
+
+
+
+
+ Returns an that wraps an .
+
+
+
+
+ that wraps an .
+
+
+
+
+ Returns an that wraps a .
+
+
+
+
+ ExactTypeConstraint is used to test that an object
+ is of the exact type provided in the constructor
+
+
+
+
+ Construct an ExactTypeConstraint for a given Type
+
+ The expected Type.
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Apply the constraint to an actual value, returning true if it succeeds
+
+ The actual argument
+ True if the constraint succeeds, otherwise false.
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Applies the constraint to an actual value, returning a ConstraintResult.
+
+ The value to be tested
+ A ConstraintResult
+
+
+
+ FalseConstraint tests that the actual value is false
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ FileExistsConstraint is used to determine if a file exists
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ FileOrDirectoryExistsConstraint is used to determine if a file or directory exists
+
+
+
+
+ If true, the constraint will only check if files exist, not directories
+
+
+
+
+ If true, the constraint will only check if directories exist, not files
+
+
+
+
+ Initializes a new instance of the class that
+ will check files and directories.
+
+
+
+
+ Initializes a new instance of the class that
+ will only check files if ignoreDirectories is true.
+
+ if set to true [ignore directories].
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Applies the constraint to an actual value, returning a ConstraintResult.
+
+ The value to be tested
+ A ConstraintResult
+
+
+ Helper routines for working with floating point numbers
+
+
+ The floating point comparison code is based on this excellent article:
+ http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
+
+
+ "ULP" means Unit in the Last Place and in the context of this library refers to
+ the distance between two adjacent floating point numbers. IEEE floating point
+ numbers can only represent a finite subset of natural numbers, with greater
+ accuracy for smaller numbers and lower accuracy for very large numbers.
+
+
+ If a comparison is allowed "2 ulps" of deviation, that means the _values are
+ allowed to deviate by up to 2 adjacent floating point _values, which might be
+ as low as 0.0000001 for small numbers or as high as 10.0 for large numbers.
+
+
+
+
+ Union of a floating point variable and an integer
+
+
+ The union's value as a floating point variable
+
+
+ The union's value as an integer
+
+
+ The union's value as an unsigned integer
+
+
+ Union of a double precision floating point variable and a long
+
+
+ The union's value as a double precision floating point variable
+
+
+ The union's value as a long
+
+
+ The union's value as an unsigned long
+
+
+ Compares two floating point _values for equality
+ First floating point value to be compared
+ Second floating point value t be compared
+
+ Maximum number of representable floating point _values that are allowed to
+ be between the left and the right floating point _values
+
+ True if both numbers are equal or close to being equal
+
+
+ Floating point _values can only represent a finite subset of natural numbers.
+ For example, the _values 2.00000000 and 2.00000024 can be stored in a float,
+ but nothing inbetween them.
+
+
+ This comparison will count how many possible floating point _values are between
+ the left and the right number. If the number of possible _values between both
+ numbers is less than or equal to maxUlps, then the numbers are considered as
+ being equal.
+
+
+ Implementation partially follows the code outlined here:
+ http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/
+
+
+
+
+ Compares two double precision floating point _values for equality
+ First double precision floating point value to be compared
+ Second double precision floating point value t be compared
+
+ Maximum number of representable double precision floating point _values that are
+ allowed to be between the left and the right double precision floating point _values
+
+ True if both numbers are equal or close to being equal
+
+
+ Double precision floating point _values can only represent a limited series of
+ natural numbers. For example, the _values 2.0000000000000000 and 2.0000000000000004
+ can be stored in a double, but nothing inbetween them.
+
+
+ This comparison will count how many possible double precision floating point
+ _values are between the left and the right number. If the number of possible
+ _values between both numbers is less than or equal to maxUlps, then the numbers
+ are considered as being equal.
+
+
+ Implementation partially follows the code outlined here:
+ http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/
+
+
+
+
+
+ Reinterprets the memory contents of a floating point value as an integer value
+
+
+ Floating point value whose memory contents to reinterpret
+
+
+ The memory contents of the floating point value interpreted as an integer
+
+
+
+
+ Reinterprets the memory contents of a double precision floating point
+ value as an integer value
+
+
+ Double precision floating point value whose memory contents to reinterpret
+
+
+ The memory contents of the double precision floating point value
+ interpreted as an integer
+
+
+
+
+ Reinterprets the memory contents of an integer as a floating point value
+
+ Integer value whose memory contents to reinterpret
+
+ The memory contents of the integer value interpreted as a floating point value
+
+
+
+
+ Reinterprets the memory contents of an integer value as a double precision
+ floating point value
+
+ Integer whose memory contents to reinterpret
+
+ The memory contents of the integer interpreted as a double precision
+ floating point value
+
+
+
+
+ Tests whether a value is greater than the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is greater than or equal to the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Interface for all constraints
+
+
+
+
+ The display name of this Constraint for use by ToString().
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Arguments provided to this Constraint, for use in
+ formatting the description.
+
+
+
+
+ The ConstraintBuilder holding this constraint
+
+
+
+
+ Applies the constraint to an actual value, returning a ConstraintResult.
+
+ The value to be tested
+ A ConstraintResult
+
+
+
+ Applies the constraint to an ActualValueDelegate that returns
+ the value to be tested. The default implementation simply evaluates
+ the delegate but derived classes may override it to provide for
+ delayed processing.
+
+ An ActualValueDelegate
+ A ConstraintResult
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ The default implementation simply dereferences the value but
+ derived classes may override it to provide for delayed processing.
+
+ A reference to the value to be tested
+ A ConstraintResult
+
+
+
+ InstanceOfTypeConstraint is used to test that an object
+ is of the same type provided or derived from it.
+
+
+
+
+ Construct an InstanceOfTypeConstraint for the type provided
+
+ The expected Type
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Apply the constraint to an actual value, returning true if it succeeds
+
+ The actual argument
+ True if the constraint succeeds, otherwise false.
+
+
+
+ The IResolveConstraint interface is implemented by all
+ complete and resolvable constraints and expressions.
+
+
+
+
+ Return the top-level constraint for this expression
+
+
+
+
+
+ Tests whether a value is less than the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is less than or equal to the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ MessageWriter is the abstract base for classes that write
+ constraint descriptions and messages in some form. The
+ class has separate methods for writing various components
+ of a message, allowing implementations to tailor the
+ presentation as needed.
+
+
+
+
+ Construct a MessageWriter given a culture
+
+
+
+
+ Abstract method to get the max line length
+
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message.
+
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message, at a givel
+ indentation level.
+
+ The indentation level of the message
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Display Expected and Actual lines for a constraint. This
+ is called by MessageWriter's default implementation of
+ WriteMessageTo and provides the generic two-line display.
+
+ The failing constraint result
+
+
+
+ Display Expected and Actual lines for given _values. This
+ method may be called by constraints that need more control over
+ the display of actual and expected _values than is provided
+ by the default implementation.
+
+ The expected value
+ The actual value causing the failure
+
+
+
+ Display Expected and Actual lines for given _values, including
+ a tolerance value on the Expected line.
+
+ The expected value
+ The actual value causing the failure
+ The tolerance within which the test was made
+
+
+
+ Display the expected and actual string _values on separate lines.
+ If the mismatch parameter is >=0, an additional line is displayed
+ line containing a caret that points to the mismatch point.
+
+ The expected string value
+ The actual string value
+ The point at which the strings don't match or -1
+ If true, case is ignored in locating the point where the strings differ
+ If true, the strings should be clipped to fit the line
+
+
+
+ Writes the text for an actual value.
+
+ The actual value.
+
+
+
+ Writes the text for a generalized value.
+
+ The value.
+
+
+
+ Writes the text for a collection value,
+ starting at a particular point, to a max length
+
+ The collection containing elements to write.
+ The starting point of the elements to write
+ The maximum number of elements to write
+
+
+
+ Custom value formatter function
+
+ The value
+
+
+
+
+ Custom value formatter factory function
+
+ The next formatter function
+ ValueFormatter
+ If the given formatter is unable to handle a certain format, it must call the next formatter in the chain
+
+
+
+ Static methods used in creating messages
+
+
+
+
+ Static string used when strings are clipped
+
+
+
+
+ Formatting strings used for expected and actual _values
+
+
+
+
+ Current head of chain of value formatters. Public for testing.
+
+
+
+
+ Add a formatter to the chain of responsibility.
+
+
+
+
+
+ Formats text to represent a generalized value.
+
+ The value
+ The formatted text
+
+
+
+ Formats text for a collection value,
+ starting at a particular point, to a max length
+
+ The collection containing elements to write.
+ The starting point of the elements to write
+ The maximum number of elements to write
+
+
+
+ Returns the representation of a type as used in NUnitLite.
+ This is the same as Type.ToString() except for arrays,
+ which are displayed with their declared sizes.
+
+
+
+
+
+
+ Converts any control characters in a string
+ to their escaped representation.
+
+ The string to be converted
+ The converted string
+
+
+
+ Converts any null characters in a string
+ to their escaped representation.
+
+ The string to be converted
+ The converted string
+
+
+
+ Return the a string representation for a set of indices into an array
+
+ Array of indices for which a string is needed
+
+
+
+ Get an array of indices representing the point in a collection or
+ array corresponding to a single int index into the collection.
+
+ The collection to which the indices apply
+ Index in the collection
+ Array of indices
+
+
+
+ Clip a string to a given length, starting at a particular offset, returning the clipped
+ string with ellipses representing the removed parts
+
+ The string to be clipped
+ The maximum permitted length of the result string
+ The point at which to start clipping
+ The clipped string
+
+
+
+ Clip the expected and actual strings in a coordinated fashion,
+ so that they may be displayed together.
+
+
+
+
+
+
+
+
+ Shows the position two strings start to differ. Comparison
+ starts at the start index.
+
+ The expected string
+ The actual string
+ The index in the strings at which comparison should start
+ Boolean indicating whether case should be ignored
+ -1 if no mismatch found, or the index where mismatch found
+
+
+
+ NaNConstraint tests that the actual value is a double or float NaN
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test that the actual value is an NaN
+
+
+
+
+
+
+ NoItemConstraint applies another constraint to each
+ item in a collection, failing if any of them succeeds.
+
+
+
+
+ Construct a SomeItemsConstraint on top of an existing constraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ failing if any item fails.
+
+
+
+
+
+
+ NotConstraint negates the effect of some other constraint
+
+
+
+
+ Initializes a new instance of the class.
+
+ The base constraint to be negated.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ NullConstraint tests that the actual value is null
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Applies the constraint to an actual value, returning a ConstraintResult.
+
+ The value to be tested
+ A ConstraintResult
+
+
+
+ The Numerics class contains common operations on numeric _values.
+
+
+
+
+ Checks the type of the object, returning true if
+ the object is a numeric type.
+
+ The object to check
+ true if the object is a numeric type
+
+
+
+ Checks the type of the object, returning true if
+ the object is a floating point numeric type.
+
+ The object to check
+ true if the object is a floating point numeric type
+
+
+
+ Checks the type of the object, returning true if
+ the object is a fixed point numeric type.
+
+ The object to check
+ true if the object is a fixed point numeric type
+
+
+
+ Test two numeric _values for equality, performing the usual numeric
+ conversions and using a provided or default tolerance. If the tolerance
+ provided is Empty, this method may set it to a default tolerance.
+
+ The expected value
+ The actual value
+ A reference to the tolerance in effect
+ True if the _values are equal
+
+
+
+ Compare two numeric _values, performing the usual numeric conversions.
+
+ The expected value
+ The actual value
+ The relationship of the _values to each other
+
+
+
+ NUnitComparer encapsulates NUnit's default behavior
+ in comparing two objects.
+
+
+
+
+ Returns the default NUnitComparer.
+
+
+
+
+ Compares two objects
+
+
+
+
+
+
+
+ NUnitEqualityComparer encapsulates NUnit's handling of
+ equality tests between objects.
+
+
+
+
+ If true, all string comparisons will ignore case
+
+
+
+
+ If true, arrays will be treated as collections, allowing
+ those of different dimensions to be compared
+
+
+
+
+ Comparison objects used in comparisons for some constraints.
+
+
+
+
+ List of points at which a failure occurred.
+
+
+
+
+ Returns the default NUnitEqualityComparer
+
+
+
+
+ Gets and sets a flag indicating whether case should
+ be ignored in determining equality.
+
+
+
+
+ Gets and sets a flag indicating that arrays should be
+ compared as collections, without regard to their shape.
+
+
+
+
+ Gets the list of external comparers to be used to
+ test for equality. They are applied to members of
+ collections, in place of NUnit's own logic.
+
+
+
+
+ Gets the list of failure points for the last Match performed.
+ The list consists of objects to be interpreted by the caller.
+ This generally means that the caller may only make use of
+ objects it has placed on the list at a particular depthy.
+
+
+
+
+ Flags the comparer to include
+ property in comparison of two values.
+
+
+ Using this modifier does not allow to use the
+ modifier.
+
+
+
+
+ Compares two objects for equality within a tolerance.
+
+
+
+
+ Helper method to compare two arrays
+
+
+
+
+ Method to compare two DirectoryInfo objects
+
+ first directory to compare
+ second directory to compare
+ true if equivalent, false if not
+
+
+
+ FailurePoint class represents one point of failure
+ in an equality test.
+
+
+
+
+ The location of the failure
+
+
+
+
+ The expected value
+
+
+
+
+ The actual value
+
+
+
+
+ Indicates whether the expected value is valid
+
+
+
+
+ Indicates whether the actual value is valid
+
+
+
+
+ Represents a constraint that succeeds if all the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ they all succeed.
+
+
+
+
+ Operator that requires both it's arguments to succeed
+
+
+
+
+ Construct an AndOperator
+
+
+
+
+ Apply the operator to produce an AndConstraint
+
+
+
+
+ Operator that tests for the presence of a particular attribute
+ on a type and optionally applies further tests to the attribute.
+
+
+
+
+ Construct an AttributeOperator for a particular Type
+
+ The Type of attribute tested
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+ Abstract base class for all binary operators
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Gets the left precedence of the operator
+
+
+
+
+ Gets the right precedence of the operator
+
+
+
+
+ Abstract method that produces a constraint by applying
+ the operator to its left and right constraint arguments.
+
+
+
+
+ Abstract base for operators that indicate how to
+ apply a constraint to items in a collection.
+
+
+
+
+ Constructs a CollectionOperator
+
+
+
+
+ The ConstraintOperator class is used internally by a
+ ConstraintBuilder to represent an operator that
+ modifies or combines constraints.
+
+ Constraint operators use left and right precedence
+ _values to determine whether the top operator on the
+ stack should be reduced before pushing a new operator.
+
+
+
+
+ The precedence value used when the operator
+ is about to be pushed to the stack.
+
+
+
+
+ The precedence value used when the operator
+ is on the top of the stack.
+
+
+
+
+ The syntax element preceding this operator
+
+
+
+
+ The syntax element following this operator
+
+
+
+
+ The precedence value used when the operator
+ is about to be pushed to the stack.
+
+
+
+
+ The precedence value used when the operator
+ is on the top of the stack.
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Represents a constraint that succeeds if none of the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ none of them succeed.
+
+
+
+
+ Negates the test of the constraint it wraps.
+
+
+
+
+ Constructs a new NotOperator
+
+
+
+
+ Returns a NotConstraint applied to its argument.
+
+
+
+
+ Operator that requires at least one of it's arguments to succeed
+
+
+
+
+ Construct an OrOperator
+
+
+
+
+ Apply the operator to produce an OrConstraint
+
+
+
+
+ PrefixOperator takes a single constraint and modifies
+ it's action in some way.
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Returns the constraint created by applying this
+ prefix to another constraint.
+
+
+
+
+
+
+ Operator used to test for the presence of a named Property
+ on an object and optionally apply further tests to the
+ value of that property.
+
+
+
+
+ Gets the name of the property to which the operator applies
+
+
+
+
+ Constructs a PropOperator for a particular named property
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Abstract base class for operators that are able to reduce to a
+ constraint whether or not another syntactic element follows.
+
+
+
+
+ Represents a constraint that succeeds if any of the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ any of them succeed.
+
+
+
+
+ Operator that tests that an exception is thrown and
+ optionally applies further tests to the exception.
+
+
+
+
+ Construct a ThrowsOperator
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+ Represents a constraint that simply wraps the
+ constraint provided as an argument, without any
+ further functionality, but which modifies the
+ order of evaluation because of its precedence.
+
+
+
+
+ Constructor for the WithOperator
+
+
+
+
+ Returns a constraint that wraps its argument
+
+
+
+
+ OrConstraint succeeds if either member succeeds
+
+
+
+
+ Create an OrConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ Gets text describing a constraint
+
+
+
+
+ Apply the member constraints to an actual value, succeeding
+ succeeding as soon as one of them succeeds.
+
+ The actual value
+ True if either constraint succeeded
+
+
+
+ PathConstraint serves as the abstract base of constraints
+ that operate on paths and provides several helper methods.
+
+
+
+
+ Construct a PathConstraint for a give expected path
+
+ The expected path
+
+
+
+ Modifies the current instance to be case-sensitive
+ and returns it.
+
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ Canonicalize the provided path
+
+
+ The path in standardized form
+
+
+
+ Test whether one path in canonical form is a subpath of another path
+
+ The first path - supposed to be the parent path
+ The second path - supposed to be the child path
+
+
+
+
+ Predicate constraint wraps a Predicate in a constraint,
+ returning success if the predicate is true.
+
+
+
+
+ Construct a PredicateConstraint from a predicate
+
+
+
+
+ Gets text describing a constraint
+
+
+
+
+ Determines whether the predicate succeeds when applied
+ to the actual value.
+
+
+
+
+ Abstract base class used for prefixes
+
+
+
+
+ The base constraint
+
+
+
+
+ Prefix used in forming the constraint description
+
+
+
+
+ Construct given a base constraint
+
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ PropertyConstraint extracts a named property and uses
+ its value as the actual value for a chained constraint.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name.
+ The constraint to apply to the property.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ PropertyExistsConstraint tests that a named property
+ exists on the object provided through Match.
+
+ Originally, PropertyConstraint provided this feature
+ in addition to making optional tests on the value
+ of the property. The two constraints are now separate.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name of the property.
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the property exists for a given object
+
+ The object to be tested
+ True for success, false for failure
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ RangeConstraint tests whether two _values are within a
+ specified range.
+
+
+
+
+ Initializes a new instance of the class.
+
+ from must be less than or equal to true
+ Inclusive beginning of the range. Must be less than or equal to to.
+ Inclusive end of the range. Must be greater than or equal to from.
+
+
+
+ Gets text describing a constraint
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Modifies the constraint to use an and returns self.
+
+
+
+
+ Modifies the constraint to use an and returns self.
+
+
+
+
+ Modifies the constraint to use a and returns self.
-
+
- Attribute used to mark a static (shared in VB) property
- that returns a list of tests.
+ RegexConstraint can test whether a string matches
+ the pattern provided.
-
+
- Attribute used in a TestFixture to identify a method that is
- called immediately after each test is run. It is also used
- in a SetUpFixture to identify the method that is called once,
- after all subordinate tests have run. In either case, the method
- is guaranteed to be called, even if an exception is thrown.
+ Initializes a new instance of the class.
+ The pattern.
-
+
- Provide actions to execute before and after tests.
+ Test whether the constraint is satisfied by a given value
+ The value to be tested
+ True for success, false for failure
-
+
- When implemented by an attribute, this interface implemented to provide actions to execute before and after tests.
+ ResolvableConstraintExpression is used to represent a compound
+ constraint being constructed at a point where the last operator
+ may either terminate the expression or may have additional
+ qualifying constraints added to it.
+
+ It is used, for example, for a Property element or for
+ an Exception element, either of which may be optionally
+ followed by constraints that apply to the property or
+ exception.
-
+
- Executed before each test is run
+ Create a new instance of ResolvableConstraintExpression
- Provides details about the test that is going to be run.
-
+
- Executed after each test is run
+ Create a new instance of ResolvableConstraintExpression,
+ passing in a pre-populated ConstraintBuilder.
- Provides details about the test that has just been run.
-
+
- Provides the target for the action attribute
+ Appends an And Operator to the expression
- The target for the action attribute
-
+
- Adding this attribute to a method within a
- class makes the method callable from the NUnit test runner. There is a property
- called Description which is optional which you can provide a more detailed test
- description. This class cannot be inherited.
+ Appends an Or operator to the expression.
+
+
+
+
+ Resolve the current expression to a Constraint
+
+
+
+
+ ReusableConstraint wraps a constraint expression after
+ resolving it so that it can be reused consistently.
+
+
+
+
+ Construct a ReusableConstraint from a constraint expression
+
+ The expression to be resolved and reused
+
+
+
+ Converts a constraint to a ReusableConstraint
+
+ The constraint to be converted
+ A ReusableConstraint
+
+
+
+ Returns a that represents this instance.
+
+
+ A that represents this instance.
+
+
+
+
+ Return the top-level constraint for this expression
+
+
+
+
+
+ SameAsConstraint tests whether an object is identical to
+ the object passed to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected object.
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Summary description for SamePathConstraint.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected path
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ SamePathOrUnderConstraint tests that one path is under another
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected path
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ SomeItemsConstraint applies another constraint to each
+ item in a collection, succeeding if any of them succeeds.
+
+
+
+
+ Construct a SomeItemsConstraint on top of an existing constraint
+
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ succeeding if any item succeeds.
+
+
+
+
+
+
+ The EqualConstraintResult class is tailored for formatting
+ and displaying the result of an EqualConstraint.
+
+
+
+
+ Construct an EqualConstraintResult
+
+
+
+
+ Write a failure message. Overridden to provide custom
+ failure messages for EqualConstraint.
+
+ The MessageWriter to write to
+
+
+
+ Display the failure information for two collections that did not match.
+
+ The MessageWriter on which to display
+ The expected collection.
+ The actual collection
+ The depth of this failure in a set of nested collections
+
+
+
+ Displays a single line showing the types and sizes of the expected
+ and actual collections or arrays. If both are identical, the value is
+ only shown once.
+
+ The MessageWriter on which to display
+ The expected collection or array
+ The actual collection or array
+ The indentation level for the message line
+
+
+
+ Displays a single line showing the point in the expected and actual
+ arrays at which the comparison failed. If the arrays have different
+ structures or dimensions, both _values are shown.
+
+ The MessageWriter on which to display
+ The expected array
+ The actual array
+ Index of the failure point in the underlying collections
+ The indentation level for the message line
+
+
+
+ Display the failure information for two IEnumerables that did not match.
+
+ The MessageWriter on which to display
+ The expected enumeration.
+ The actual enumeration
+ The depth of this failure in a set of nested collections
+
+
+
+ StartsWithConstraint can test whether a string starts
+ with an expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected string
+
+
+
+ Test whether the constraint is matched by the actual value.
+ This is a template method, which calls the IsMatch method
+ of the derived class.
+
+
+
+
+
+
+ StringConstraint is the abstract base for constraints
+ that operate on strings. It supports the IgnoreCase
+ modifier for string operations.
+
+
+
+
+ The expected value
+
+
+
+
+ Indicates whether tests should be case-insensitive
+
+
+
+
+ Description of this constraint
+
+
+
+
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
-
-
- [TestFixture]
- public class Fixture
- {
- [Test]
- public void MethodToTest()
- {}
-
- [Test(Description = "more detailed description")]
- publc void TestDescriptionMethod()
- {}
- }
-
-
-
+
- Descriptive text for this test
+ Constructs a StringConstraint without an expected value
-
+
- TestCaseAttribute is used to mark parameterized test cases
- and provide them with their arguments.
+ Constructs a StringConstraint given an expected value
+ The expected value
-
+
- The ITestCaseData interface is implemented by a class
- that is able to return complete testcases for use by
- a parameterized test method.
-
- NOTE: This interface is used in both the framework
- and the core, even though that results in two different
- types. However, sharing the source code guarantees that
- the various implementations will be compatible and that
- the core is able to reflect successfully over the
- framework implementations of ITestCaseData.
+ Modify the constraint to ignore case in matching.
-
+
- Gets the argument list to be provided to the test
+ Test whether the constraint is satisfied by a given value
+ The value to be tested
+ True for success, false for failure
-
+
- Gets the expected result
+ Test whether the constraint is satisfied by a given string
+ The string to be tested
+ True for success, false for failure
-
+
- Indicates whether a result has been specified.
- This is necessary because the result may be
- null, so it's value cannot be checked.
+ SubPathConstraint tests that the actual path is under the expected path
-
+
- Gets the expected exception Type
+ Initializes a new instance of the class.
+ The expected path
-
+
- Gets the FullName of the expected exception
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
-
+
- Gets the name to be used for the test
+ Test whether the constraint is satisfied by a given value
+ The value to be tested
+ True for success, false for failure
-
+
- Gets the description of the test
+ SubstringConstraint can test whether a string contains
+ the expected substring.
-
+
- Gets a value indicating whether this is ignored.
+ Initializes a new instance of the class.
- true if ignored; otherwise, false.
+ The expected.
-
+
- Gets a value indicating whether this is explicit.
+ Test whether the constraint is satisfied by a given value
- true if explicit; otherwise, false.
+ The value to be tested
+ True for success, false for failure
-
+
- Gets the ignore reason.
+ ThrowsConstraint is used to test the exception thrown by
+ a delegate by applying a constraint to it.
- The ignore reason.
-
+
- Construct a TestCaseAttribute with a list of arguments.
- This constructor is not CLS-Compliant
+ Initializes a new instance of the class,
+ using a constraint to be applied to the exception.
-
+ A constraint to apply to the caught exception.
-
+
- Construct a TestCaseAttribute with a single argument
+ Get the actual exception thrown - used by Assert.Throws.
-
-
+
- Construct a TestCaseAttribute with a two arguments
+ Gets text describing a constraint
-
-
-
+
- Construct a TestCaseAttribute with a three arguments
+ Executes the code of the delegate and captures any exception.
+ If a non-null base constraint was provided, it applies that
+ constraint to the exception.
-
-
-
+ A delegate representing the code to be tested
+ True if an exception is thrown and the constraint succeeds, otherwise false
-
+
- Gets the list of arguments to a test case
+ Converts an ActualValueDelegate to a TestDelegate
+ before calling the primary overload.
+
+
-
+
- Gets or sets the expected result.
+ Write the actual value for a failing constraint test to a
+ MessageWriter. This override only handles the special message
+ used when an exception is expected but none is thrown.
- The result.
+ The writer on which the actual value is displayed
-
+
- Gets the expected result.
+ ThrowsExceptionConstraint tests that an exception has
+ been thrown, without any further tests.
- The result.
-
+
- Gets a flag indicating whether an expected
- result has been set.
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
-
+
- Gets a list of categories associated with this test;
+ Executes the code and returns success if an exception is thrown.
+ A delegate representing the code to be tested
+ True if an exception is thrown, otherwise false
-
+
- Gets or sets the category associated with this test.
- May be a single category or a comma-separated list.
+ Returns the ActualValueDelegate itself as the value to be tested.
+ A delegate representing the code to be tested
+ The delegate itself
-
+
- Gets or sets the expected exception.
+ ThrowsNothingConstraint tests that a delegate does not
+ throw an exception.
- The expected exception.
-
+
- Gets or sets the name the expected exception.
+ Gets text describing a constraint
- The expected name of the exception.
-
+
- Gets or sets the expected message of the expected exception
+ Test whether the constraint is satisfied by a given value
- The expected message of the exception.
+ The value to be tested
+ True if no exception is thrown, otherwise false
-
+
- Gets or sets the type of match to be performed on the expected message
+ Applies the constraint to an ActualValueDelegate that returns
+ the value to be tested. The default implementation simply evaluates
+ the delegate but derived classes may override it to provide for
+ delayed processing.
+ An ActualValueDelegate
+ A ConstraintResult
-
+
- Gets or sets the description.
+ The Tolerance class generalizes the notion of a tolerance
+ within which an equality test succeeds. Normally, it is
+ used with numeric types, but it can be used with any
+ type that supports taking a difference between two
+ objects and comparing that difference to a value.
- The description.
-
+
- Gets or sets the name of the test.
+ Returns a default Tolerance object, equivalent to
+ specifying an exact match unless
+ is set, in which case, the
+ will be used.
- The name of the test.
-
+
- Gets or sets the ignored status of the test
+ Returns an empty Tolerance object, equivalent to
+ specifying an exact match even if
+ is set.
-
+
- Gets or sets the ignored status of the test
+ Constructs a linear tolerance of a specified amount
-
+
- Gets or sets the explicit status of the test
+ Constructs a tolerance given an amount and
-
+
- Gets or sets the reason for not running the test
+ Gets the for the current Tolerance
-
+
- Gets or sets the reason for not running the test.
- Set has the side effect of marking the test as ignored.
+ Tests that the current Tolerance is linear with a
+ numeric value, throwing an exception if it is not.
- The ignore reason.
-
+
- FactoryAttribute indicates the source to be used to
- provide test cases for a test method.
+ Gets the value of the current Tolerance instance.
-
+
- Construct with the name of the factory - for use with languages
- that don't support params arrays.
+ Returns a new tolerance, using the current amount as a percentage.
- An array of the names of the factories that will provide data
-
+
- Construct with a Type and name - for use with languages
- that don't support params arrays.
+ Returns a new tolerance, using the current amount in Ulps
- The Type that will provide data
- The name of the method, property or field that will provide data
-
+
- The name of a the method, property or fiend to be used as a source
+ Returns a new tolerance with a as the amount, using
+ the current amount as a number of days.
-
+
- A Type to be used as a source
+ Returns a new tolerance with a as the amount, using
+ the current amount as a number of hours.
-
+
- Gets or sets the category associated with this test.
- May be a single category or a comma-separated list.
+ Returns a new tolerance with a as the amount, using
+ the current amount as a number of minutes.
-
-
- [TestFixture]
- public class ExampleClass
- {}
-
+
+
+ Returns a new tolerance with a as the amount, using
+ the current amount as a number of seconds.
+
-
+
- Default constructor
+ Returns a new tolerance with a as the amount, using
+ the current amount as a number of milliseconds.
-
+
- Construct with a object[] representing a set of arguments.
- In .NET 2.0, the arguments may later be separated into
- type arguments and constructor arguments.
+ Returns a new tolerance with a as the amount, using
+ the current amount as a number of clock ticks.
-
-
+
- Descriptive text for this fixture
+ Returns true if the current tolerance has not been set or is using the .
-
+
- Gets and sets the category for this fixture.
- May be a comma-separated list of categories.
+ Modes in which the tolerance value for a comparison can be interpreted.
-
+
- Gets a list of categories for this fixture
+ The tolerance was created with a value, without specifying
+ how the value would be used. This is used to prevent setting
+ the mode more than once and is generally changed to Linear
+ upon execution of the test.
-
+
- The arguments originally provided to the attribute
+ The tolerance is used as a numeric range within which
+ two compared _values are considered to be equal.
-
+
- Gets or sets a value indicating whether this should be ignored.
+ Interprets the tolerance as the percentage by which
+ the two compared _values my deviate from each other.
- true if ignore; otherwise, false.
-
+
- Gets or sets the ignore reason. May set Ignored as a side effect.
+ Compares two _values based in their distance in
+ representable numbers.
- The ignore reason.
-
+
- Get or set the type arguments. If not set
- explicitly, any leading arguments that are
- Types are taken as type arguments.
+ TrueConstraint tests that the actual value is true
-
+
- Attribute used to identify a method that is
- called before any tests in a fixture are run.
+ Initializes a new instance of the class.
-
+
- Attribute used to identify a method that is called after
- all the tests in a fixture have run. The method is
- guaranteed to be called, even if an exception is thrown.
+ Test whether the constraint is satisfied by a given value
+ The value to be tested
+ True for success, false for failure
-
+
- Adding this attribute to a method within a
- class makes the method callable from the NUnit test runner. There is a property
- called Description which is optional which you can provide a more detailed test
- description. This class cannot be inherited.
+ TypeConstraint is the abstract base for constraints
+ that take a Type as their expected value.
-
-
- [TestFixture]
- public class Fixture
- {
- [Test]
- public void MethodToTest()
- {}
-
- [Test(Description = "more detailed description")]
- publc void TestDescriptionMethod()
- {}
- }
-
-
-
+
- Used on a method, marks the test with a timeout value in milliseconds.
- The test will be run in a separate thread and is cancelled if the timeout
- is exceeded. Used on a method or assembly, sets the default timeout
- for all contained test methods.
+ The expected Type used by the constraint
-
+
- Construct a TimeoutAttribute given a time in milliseconds
+ The type of the actual argument to which the constraint was applied
- The timeout value in milliseconds
-
+
- Marks a test that must run in the STA, causing it
- to run in a separate thread if necessary.
-
- On methods, you may also use STAThreadAttribute
- to serve the same purpose.
+ Construct a TypeConstraint for a given Type
+ The expected type for the constraint
+ Prefix used in forming the constraint description
-
+
- Construct a RequiresSTAAttribute
+ Applies the constraint to an actual value, returning a ConstraintResult.
+ The value to be tested
+ A ConstraintResult
-
+
- Marks a test that must run in the MTA, causing it
- to run in a separate thread if necessary.
-
- On methods, you may also use MTAThreadAttribute
- to serve the same purpose.
+ Apply the constraint to an actual value, returning true if it succeeds
+ The actual argument
+ True if the constraint succeeds, otherwise false.
-
+
- Construct a RequiresMTAAttribute
+ UniqueItemsConstraint tests whether all the items in a
+ collection are unique.
-
+
- Marks a test that must run on a separate thread.
+ The Description of what this constraint tests, for
+ use in messages and in the ConstraintResult.
-
+
- Construct a RequiresThreadAttribute
+ Check that all items are unique.
+
+
-
+
- Construct a RequiresThreadAttribute, specifying the apartment
+ XmlSerializableConstraint tests whether
+ an object is serializable in xml format.
-
+
- ValueSourceAttribute indicates the source to be used to
- provide data for one parameter of a test method.
+ Gets text describing a constraint
-
+
- Construct with the name of the factory - for use with languages
- that don't support params arrays.
+ Test whether the constraint is satisfied by a given value
- The name of the data source to be used
+ The value to be tested
+ True for success, false for failure
-
+
- Construct with a Type and name - for use with languages
- that don't support params arrays.
+ Returns the string representation of this constraint
- The Type that will provide data
- The name of the method, property or field that will provide data
-
+
- The name of a the method, property or fiend to be used as a source
+ ExactCountConstraint applies another constraint to each
+ item in a collection, succeeding only if a specified
+ number of items succeed.
-
+
- A Type to be used as a source
+ Construct an ExactCountConstraint on top of an existing constraint
+
+
-
+
- AttributeExistsConstraint tests for the presence of a
- specified attribute on a Type.
+ Apply the item constraint to each item in the collection,
+ succeeding only if the expected number of items pass.
+
+
-
+
- The Constraint class is the base of all built-in constraints
- within NUnit. It provides the operator overloads used to combine
- constraints.
+ Represents a constraint that succeeds if the specified
+ count of members of a collection match a base constraint.
-
+
- The IConstraintExpression interface is implemented by all
- complete and resolvable constraints and expressions.
+ Construct an ExactCountOperator for a specified count
+ The expected count
-
+
- Return the top-level constraint for this expression
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ none of them succeed.
-
-
+
- Static UnsetObject used to detect derived constraints
- failing to set the actual value.
+ ExceptionTypeConstraint is a special version of ExactTypeConstraint
+ used to provided detailed info about the exception thrown in
+ an error message.
-
+
- The actual value being tested against a constraint
+ Constructs an ExceptionTypeConstraint
-
+
- The display name of this Constraint for use by ToString()
+ Applies the constraint to an actual value, returning a ConstraintResult.
+ The value to be tested
+ A ConstraintResult
-
+
- Argument fields used by ToString();
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
-
+
- The builder holding this constraint
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
-
+
- Construct a constraint with no arguments
+ Returns a new DictionaryContainsKeyConstraint checking for the
+ presence of a particular key in the dictionary.
-
+
- Construct a constraint with one argument
+ Returns a new DictionaryContainsValueConstraint checking for the
+ presence of a particular value in the dictionary.
-
+
- Construct a constraint with two arguments
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
-
+
- Sets the ConstraintBuilder holding this constraint
+ Asserts on Directories
-
+
- Write the failure message to the MessageWriter provided
- as an argument. The default implementation simply passes
- the constraint and the actual value to the writer, which
- then displays the constraint description and the value.
-
- Constraints that need to provide additional details,
- such as where the error occured can override this.
+ The Equals method throws an InvalidOperationException. This is done
+ to make sure there is no mistake by calling this function.
- The MessageWriter on which to display the message
+
+
-
+
- Test whether the constraint is satisfied by a given value
+ override the default ReferenceEquals to throw an InvalidOperationException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
- The value to be tested
- True for success, false for failure
+
+
-
+
- Test whether the constraint is satisfied by an
- ActualValueDelegate that returns the value to be tested.
- The default implementation simply evaluates the delegate
- but derived classes may override it to provide for delayed
- processing.
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both point to the same directory.
+ If they are not equal an is thrown.
- An ActualValueDelegate
- True for success, false for failure
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if the directories are not equal
+ Arguments to be used in formatting the message
-
+
- Test whether the constraint is satisfied by a given reference.
- The default implementation simply dereferences the value but
- derived classes may override it to provide for delayed processing.
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both point to the same directory.
+ If they are not equal an is thrown.
- A reference to the value to be tested
- True for success, false for failure
+ A directory containing the value that is expected
+ A directory containing the actual value
-
+
- Write the constraint description to a MessageWriter
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
- The writer on which the description is displayed
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
-
+
- Write the actual value for a failing constraint test to a
- MessageWriter. The default implementation simply writes
- the raw value of actual, leaving it to the writer to
- perform any formatting.
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
- The writer on which the actual value is displayed
+ A directory containing the value that is expected
+ A directory containing the actual value
-
+
- Default override of ToString returns the constraint DisplayName
- followed by any arguments within angle brackets.
+ Asserts that the directory exists. If it does not exist
+ an is thrown.
-
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
-
+
- Returns the string representation of this constraint
+ Asserts that the directory exists. If it does not exist
+ an is thrown.
+ A directory containing the actual value
-
+
- This operator creates a constraint that is satisfied only if both
- argument constraints are satisfied.
+ Asserts that the directory exists. If it does not exist
+ an is thrown.
+ The path to a directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
-
+
- This operator creates a constraint that is satisfied if either
- of the argument constraints is satisfied.
+ Asserts that the directory exists. If it does not exist
+ an is thrown.
+ The path to a directory containing the actual value
-
+
- This operator creates a constraint that is satisfied if the
- argument constraint is not satisfied.
+ Asserts that the directory does not exist. If it does exist
+ an is thrown.
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
-
+
- Returns a DelayedConstraint with the specified delay time.
+ Asserts that the directory does not exist. If it does exist
+ an is thrown.
- The delay in milliseconds.
-
+ A directory containing the actual value
-
+
- Returns a DelayedConstraint with the specified delay time
- and polling interval.
+ Asserts that the directory does not exist. If it does exist
+ an is thrown.
- The delay in milliseconds.
- The interval at which to test the constraint.
-
+ The path to a directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
-
+
- The display name of this Constraint for use by ToString().
- The default value is the name of the constraint with
- trailing "Constraint" removed. Derived classes may set
- this to another name in their constructors.
+ Asserts that the directory does not exist. If it does exist
+ an is thrown.
+ The path to a directory containing the actual value
-
+
- Returns a ConstraintExpression by appending And
- to the current constraint.
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
-
+
- Returns a ConstraintExpression by appending And
- to the current constraint.
+ Returns a ConstraintExpression that negates any
+ following constraint.
-
+
- Returns a ConstraintExpression by appending Or
- to the current constraint.
+ Returns a constraint that succeeds if the value
+ is a file or directory and it exists.
-
+
- Class used to detect any derived constraints
- that fail to set the actual value in their
- Matches override.
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
-
+
- Constructs an AttributeExistsConstraint for a specific attribute Type
+ Returns a new ContainsConstraint. This constraint
+ will, in turn, make use of the appropriate second-level
+ constraint, depending on the type of the actual argument.
+ This overload is only used if the item sought is a string,
+ since any other type implies that we are looking for a
+ collection member.
-
-
+
- Tests whether the object provides the expected attribute.
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
- A Type, MethodInfo, or other ICustomAttributeProvider
- True if the expected attribute is present, otherwise false
-
+
- Writes the description of the constraint to the specified writer
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
-
+
- AttributeConstraint tests that a specified attribute is present
- on a Type or other provider and that the value of the attribute
- satisfies some other constraint.
+ Returns a constraint that succeeds if the actual
+ value matches the regular expression supplied as an argument.
-
+
- Abstract base class used for prefixes
+ Thrown when an assertion failed.
-
+
+ The error message that explains
+ the reason for the exception
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
- The base constraint
+ Serialization Constructor
-
+
- Construct given a base constraint
+ Gets the ResultState provided by this exception
-
-
+
- Constructs an AttributeConstraint for a specified attriute
- Type and base constraint.
+ Thrown when an assertion failed.
-
-
-
+
+
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
- Determines whether the Type or other provider has the
- expected attribute and if its value matches the
- additional constraint specified.
+ Serialization Constructor
-
+
- Writes a description of the attribute to the specified writer.
+ Gets the ResultState provided by this exception
-
+
- Writes the actual value supplied to the specified writer.
+ Thrown when a test executes inconclusively.
-
+
+ The error message that explains
+ the reason for the exception
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
- Returns a string representation of the constraint.
+ Serialization Constructor
-
+
- BasicConstraint is the abstract base for constraints that
- perform a simple comparison to a constant value.
+ Gets the ResultState provided by this exception
-
+
- Initializes a new instance of the class.
+ Abstract base for Exceptions that terminate a test and provide a ResultState.
- The expected.
- The description.
-
-
- Test whether the constraint is satisfied by a given value
-
- The value to be tested
- True for success, false for failure
+
+ The error message that explains
+ the reason for the exception
-
-
- Write the constraint description to a MessageWriter
-
- The writer on which the description is displayed
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
-
+
- NullConstraint tests that the actual value is null
+ Serialization Constructor
-
+
- Initializes a new instance of the class.
+ Gets the ResultState provided by this exception
-
+
- TrueConstraint tests that the actual value is true
+ Thrown when an assertion failed.
-
+
+
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
- Initializes a new instance of the class.
+ Serialization Constructor
-
+
- FalseConstraint tests that the actual value is false
+ Gets the ResultState provided by this exception
-
+
- Initializes a new instance of the class.
+ Asserts on Files
-
+
- NaNConstraint tests that the actual value is a double or float NaN
+ The Equals method throws an InvalidOperationException. This is done
+ to make sure there is no mistake by calling this function.
+
+
-
+
- Test that the actual value is an NaN
+ override the default ReferenceEquals to throw an InvalidOperationException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
-
-
+
+
-
+
- Write the constraint description to a specified writer
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
-
+ The expected Stream
+ The actual Stream
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- BinaryConstraint is the abstract base of all constraints
- that combine two other constraints in some fashion.
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+ The expected Stream
+ The actual Stream
-
+
- The first constraint being combined
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- The second constraint being combined
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+ A file containing the value that is expected
+ A file containing the actual value
-
+
- Construct a BinaryConstraint from two other constraints
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
- The first constraint
- The second constraint
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- AndConstraint succeeds only if both members succeed.
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
-
+
- Create an AndConstraint from two other constraints
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
- The first constraint
- The second constraint
+ The expected Stream
+ The actual Stream
+ The message to be displayed when the two Stream are the same.
+ Arguments to be used in formatting the message
-
+
- Apply both member constraints to an actual value, succeeding
- succeeding only if both of them succeed.
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
- The actual value
- True if the constraints both succeeded
+ The expected Stream
+ The actual Stream
-
+
- Write a description for this contraint to a MessageWriter
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
- The MessageWriter to receive the description
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- Write the actual value for a failing constraint test to a
- MessageWriter. The default implementation simply writes
- the raw value of actual, leaving it to the writer to
- perform any formatting.
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
- The writer on which the actual value is displayed
+ A file containing the value that is expected
+ A file containing the actual value
-
+
- OrConstraint succeeds if either member succeeds
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- Create an OrConstraint from two other constraints
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
- The first constraint
- The second constraint
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
-
+
- Apply the member constraints to an actual value, succeeding
- succeeding as soon as one of them succeeds.
+ Asserts that the file exists. If it does not exist
+ an is thrown.
- The actual value
- True if either constraint succeeded
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- Write a description for this contraint to a MessageWriter
+ Asserts that the file exists. If it does not exist
+ an is thrown.
- The MessageWriter to receive the description
+ A file containing the actual value
-
+
- CollectionConstraint is the abstract base class for
- constraints that operate on collections.
+ Asserts that the file exists. If it does not exist
+ an is thrown.
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- Construct an empty CollectionConstraint
+ Asserts that the file exists. If it does not exist
+ an is thrown.
+ The path to a file containing the actual value
-
+
- Construct a CollectionConstraint
+ Asserts that the file does not exist. If it does exist
+ an is thrown.
-
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- Determines whether the specified enumerable is empty.
+ Asserts that the file does not exist. If it does exist
+ an is thrown.
- The enumerable.
-
- true if the specified enumerable is empty; otherwise, false.
-
+ A file containing the actual value
-
+
- Test whether the constraint is satisfied by a given value
+ Asserts that the file does not exist. If it does exist
+ an is thrown.
- The value to be tested
- True for success, false for failure
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
-
+
- Protected method to be implemented by derived classes
+ Asserts that the file does not exist. If it does exist
+ an is thrown.
-
-
+ The path to a file containing the actual value
-
+
- CollectionItemsEqualConstraint is the abstract base class for all
- collection constraints that apply some notion of item equality
- as a part of their operation.
+ GlobalSettings is a place for setting default values used
+ by the framework in performing asserts. Anything set through
+ this class applies to the entire test run. It should not normally
+ be used from within a test, since it is not thread-safe.
-
+
- Construct an empty CollectionConstraint
+ Default tolerance for floating point equality
-
+
- Construct a CollectionConstraint
+ Class used to guard against unexpected argument values
+ or operations by throwing an appropriate exception.
-
-
+
- Flag the constraint to use the supplied IComparer object.
+ Throws an exception if an argument is null
- The IComparer object to use.
- Self.
+ The value to be tested
+ The name of the argument
-
+
- Flag the constraint to use the supplied IComparer object.
+ Throws an exception if a string argument is null or empty
- The IComparer object to use.
- Self.
+ The value to be tested
+ The name of the argument
-
+
- Flag the constraint to use the supplied Comparison object.
+ Throws an ArgumentOutOfRangeException if the specified condition is not met.
- The IComparer object to use.
- Self.
+ The condition that must be met
+ The exception message to be used
+ The name of the argument
-
+
- Flag the constraint to use the supplied IEqualityComparer object.
+ Throws an ArgumentException if the specified condition is not met.
- The IComparer object to use.
- Self.
+ The condition that must be met
+ The exception message to be used
+ The name of the argument
-
+
- Flag the constraint to use the supplied IEqualityComparer object.
+ Throws an InvalidOperationException if the specified condition is not met.
- The IComparer object to use.
- Self.
+ The condition that must be met
+ The exception message to be used
-
+
- Compares two collection members for equality
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
-
+
- Return a new CollectionTally for use in making tests
+ Returns a ConstraintExpression that negates any
+ following constraint.
- The collection to be included in the tally
-
+
- Flag the constraint to ignore case and return self.
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
-
+
- EmptyCollectionConstraint tests whether a collection is empty.
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
-
+
- Check that the collection is empty
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
-
-
-
+
- Write the constraint description to a MessageWriter
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding only if a specified number of them succeed.
-
-
+
- UniqueItemsConstraint tests whether all the items in a
- collection are unique.
+ Returns a new PropertyConstraintExpression, which will either
+ test for the existence of the named property on the object
+ being tested or apply any following constraint to that property.
-
+
- Check that all items are unique.
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
-
-
-
+