nunit-core team mailing list archive
-
nunit-core team
-
Mailing list archive
-
Message #00066
[Merge] lp:~charlie.poole/nunit-3.0/nunitlite into lp:nunit-3.0
Charlie Poole has proposed merging lp:~charlie.poole/nunit-3.0/nunitlite into lp:nunit-3.0.
Requested reviews:
NUnit Developers (nunit-dev)
This is the complete merge of all blueprints related to NUnitLite and milestone 2.9.2.
It's unfortunately rather large in scope so it may be just as easy to download the full branch as to look at the diffs.
Once we are past the initial framework design changes merges should get smaller.
--
https://code.launchpad.net/~charlie.poole/nunit-3.0/nunitlite/+merge/11814
Your team NUnit Developers is subscribed to branch lp:nunit-3.0.
=== modified file '.bzrignore'
--- .bzrignore 2009-08-24 20:40:58 +0000
+++ .bzrignore 2009-09-06 20:54:07 +0000
@@ -1,15 +1,12 @@
-build
-obj
-Constraints
-Syntax
-*.suo
-solutions/vs2008/bin
-solutions/vs2005/bin
-GeneratedAssemblyInfo.cs
-nunit.framework.xml
-*.user
-*.db
-bin
-package
-StyleCop.Cache
-*.StyleCop
+build
+obj
+*.suo
+solutions/**/*
+GeneratedAssemblyInfo.cs
+nunit.framework.xml
+*.user
+*.db
+bin
+package
+StyleCop.Cache
+*.StyleCop
=== modified file 'install/NUnit.Framework.Installer/NUnit.Framework.Installer.wixproj'
--- install/NUnit.Framework.Installer/NUnit.Framework.Installer.wixproj 2009-08-22 19:30:31 +0000
+++ install/NUnit.Framework.Installer/NUnit.Framework.Installer.wixproj 2009-09-15 17:40:49 +0000
@@ -5,7 +5,7 @@
<ProductVersion>3.0</ProductVersion>
<ProjectGuid>{b4f15755-c6ef-4864-a58e-e6384cfa73ba}</ProjectGuid>
<SchemaVersion>2.0</SchemaVersion>
- <OutputName>nunit.framework-2.9.1</OutputName>
+ <OutputName>nunit.framework-2.9.2</OutputName>
<OutputType>Package</OutputType>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' AND '$(MSBuildExtensionsPath32)' != '' ">$(MSBuildExtensionsPath32)\Microsoft\WiX\v3.0\Wix.targets</WixTargetsPath>
<WixTargetsPath Condition=" '$(WixTargetsPath)' == '' ">$(MSBuildExtensionsPath)\Microsoft\WiX\v3.0\Wix.targets</WixTargetsPath>
@@ -13,7 +13,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
- <DefineConstants>ProductVersion=2.9.1;NominalVersion=2.9.1;InstallImage=..\..\package\NUnit-2.9.1</DefineConstants>
+ <DefineConstants>ProductVersion=2.9.2;NominalVersion=2.9.2;InstallImage=..\..\package\NUnit-2.9.2</DefineConstants>
<WixVariables>
</WixVariables>
</PropertyGroup>
=== modified file 'nunit.build'
--- nunit.build 2009-08-27 04:03:09 +0000
+++ nunit.build 2009-09-15 17:41:09 +0000
@@ -6,13 +6,30 @@
* This script is used to build the NUnit Framework for any supported *
* runtime that is installed on the system. If you are unsure about which *
* runtimes are avaiable use the list-runtimes or dump-settings target. *
-* *
-* At least one of the supported runtimes and sdk must be installed. To *
-* run the test coverage target, NCover is required. In order to build *
-* the msi, WiX 3.0 and the WiX tasks for NAnt are required and you must *
-* be running on Windows. *
-* *
-* The script requires the NAnt 0.86 beta 1 release or a later version. *
+* At least one of the supported runtimes and sdk must be installed. *
+* *
+* Dependencies: *
+* *
+* The script requires the NAnt 0.86 beta 1 release or a later version. *
+* *
+* To build the windows installer, you must be running on Windows. *
+* WiX 3.0 and the WiX tasks for NAnt are required. For a standard WiX *
+* install, the script should be able to find WiX automatically. If *
+* this doesn't work, you should set the environment variable WIX *
+* or the poperty 'wix.dir' to the path where WiX is installed. *
+* *
+* Although NUnitLite tests may be run standalone, tests of the full *
+* framework must be executed under NUnit 2.5.2. Set the property *
+* 'nunit.dir' to the path where NUnit is installed. Later releases *
+* will be self-testing and will eliminate the need for NUnit 2.5.2. *
+* *
+* PartCover is required in addition to NUnit 2.5.2 in order to run *
+* the 'test-coverage' target. Set the property 'partcover.dir to the *
+* directory path where Partcover is installed. *
+* *
+* NOTE: You may set any of the properties mentioned above either at the *
+* command line using the NANT -D option or by creating a file called *
+* 'local.settings.include' and using property elements. *
**************************************************************************
</description>
@@ -24,12 +41,12 @@
<property name="project.name" value="NUnit"/>
<!-- NUnit Package Version - Three digits -->
- <property name="package.version" value="2.9.1"/>
+ <property name="package.version" value="2.9.2"/>
<!-- Nominal version used for install directory and program
files menu. Normally the same as the package version,
but may differ when we are in alpha or beta. -->
- <property name="nominal.version" value="2.9.1" />
+ <property name="nominal.version" value="2.9.2" />
<!-- Package Configuration (Release, Alpha, Beta, etc.) -->
<property name="package.configuration" value=""/>
@@ -43,7 +60,7 @@
The first .NET and Mono frameworks found are the
respective net and mono defaults. -->
<property name="supported.frameworks"
- value="net-2.0,net-1.1,net-1.0,mono-2.0,mono-1.0"/>
+ value="net-2.0,net-1.1,net-1.0,mono-2.0,mono-1.0,netcf-1.0,netcf-2.0"/>
<!-- Packages we normally create -->
<!--<property name="standard.packages" value="std,mono" />-->
@@ -83,6 +100,12 @@
<target name="net-2.0" depends="set-net-2.0-runtime-config"
description="Set runtime to .NET 2.0 for commands that follow"/>
+ <target name="netcf-1.0" depends="set-netcf-1.0-runtime-config"
+ description="Set runtime to CF 1.0 for commands that follow"/>
+
+ <target name="netcf-2.0" depends="set-netcf-2.0-runtime-config"
+ description="Set runtime to CF 2.0 for commands that follow"/>
+
<target name="mono" depends="set-default-mono-runtime-config"
description="Set runtime to default Mono version"/>
@@ -145,27 +168,9 @@
<!-- *** Targets that perform builds *** -->
<!-- ***************************************************************** -->
- <target name="all" depends="build-framework,build-tests"
- description="Build all targets using current runtime and config"/>
-
- <target name="build" depends="build-framework,build-tests"
- description="Build all targets using current runtime and config"/>
-
- <target name="build-framework" depends="gen-syntax, make-build-dir">
-
- <nant target="build" buildfile="src/framework/nunit.framework.build"/>
-
- </target>
-
- <target name="build-tests" depends="build-framework">
-
- <nant target="build" buildfile="src/tests/nunit.framework.tests.build"/>
-
- </target>
-
- <!-- Build current config for all available runtimes -->
- <target name="build-all-runtimes"
- description="Build current config for all available runtimes">
+ <target name="build-all"
+ description="Build everything, for all supported runtimes">
+
<foreach item="String" delim=","
property="framework" in="${installed.frameworks}">
@@ -177,6 +182,31 @@
</target>
+ <target name="build"
+ description="Build everything, for current runtime and config">
+
+ <call target="nunit" unless="${runtime.platform=='netcf'}"/>
+ <call target="nunitlite"/>
+
+ </target>
+
+ <target name="nunit" depends="gen-syntax, make-build-dir">
+
+ <fail if="${runtime.platform=='netcf'}"
+ message="The full NUnit framework may not be built for netcf"/>
+
+ <nant target="nunit" buildfile="src/framework/nunit.framework.build"/>
+ <nant target="nunit" buildfile="src/tests/nunit.framework.tests.build"/>
+
+ </target>
+
+ <target name="nunitlite" depends="gen-syntax,make-build-dir">
+
+ <nant target="nunitlite" buildfile="src/framework/nunit.framework.build"/>
+ <nant target="nunitlite" buildfile="src/tests/nunit.framework.tests.build"/>
+
+ </target>
+
<!-- ***************************************************************** -->
<!-- *** Targets for running tests *** -->
<!-- ***************************************************************** -->
@@ -184,6 +214,13 @@
<target name="test" depends="build,run-test"
description="Build and run tests for selected config and runtime"/>
+ <target name="run-test">
+
+ <call target="nunit-test" unless="${runtime.platform=='netcf'}"/>
+ <call target="nunitlite-test"/>
+
+ </target>
+
<target name="init-test" depends="set-build-dir">
<fail unless="${property::exists('nunit.dir')}">
@@ -213,11 +250,10 @@
</target>
- <target name="run-test" depends="init-test">
+ <target name="nunit-test" depends="init-test">
<echo message="*"/>
- <echo message="* Testing ${runtime.config} ${build.config} build"/>
- <echo message="* Running under ${nant.settings.currentframework}"/>
+ <echo message="* Testing the nunit.framework ${runtime.config} ${build.config} build"/>
<echo message="*"/>
<!-- We use exec rather than the nunit2 task because we are testing
@@ -231,6 +267,18 @@
</target>
+ <target name="nunitlite-test" depends="init-test">
+
+ <echo message="*"/>
+ <echo message="* Testing the NUnitLite ${runtime.config} ${build.config} build"/>
+ <echo message="*"/>
+
+ <exec basedir="${current.build.dir}"
+ program="nunitlite.tests.exe"
+ managed="strict" />
+
+ </target>
+
<target name="test-coverage" depends="build,init-test"
description="Run tests under PartCover to get coverage results">
@@ -268,66 +316,6 @@
</target>
- <target name="test-each-runtime" depends="build"
- description="Run tests for the current build under each runtime">
-
- <foreach item="String" delim=","
- property="framework" in="${supported.test.platforms}">
-
- <if test="${framework::exists( framework )}">
- <property name="nant.settings.currentframework"
- value="${framework}" />
- <call target="run-test" failonerror="false" />
- </if>
-
- </foreach>
-
- <property name="nant.settings.currentframework" value="${runtime.config}" />
-
- <echo message="*" />
- <echo message="* Restored runtime to ${nant.settings.currentframework}" />
- <echo message="*" />
-
- </target>
-
-<!--
- <target name="test-under-net-1.0">
- <if test="${framework::exists('net-1.0')}">
- <property name="nant.settings.currentframework" value="net-1.0"/>
- <call target="run-test"/>
- <property name="nant.settings.currentframework" value="${runtime.config}" />
- </if>
- </target>
-
- <target name="test-all-under-each"
- description="Build all runtimes and test the builds under each runtime.">
-
- <call target="set-release-build-config"/>
-
- <foreach item="String" delim=","
- property="framework" in="${installed.frameworks}">
-
- <call target="set-${framework}-runtime-config"/>
- <call target="test-each-runtime" failonerror="false"/>
-
- </foreach>
-
- </target>
--->
-
- <target name="nunit2-test" depends="build"
- description="Run tests for a build using the nunit2 task">
-
- <echo message="*"/>
- <echo message="* Starting ${runtime.config} ${build.config} test run"/>
- <echo message="*"/>
-
- <nunit2>
- <formatter type="Plain"/>
- <test assemblyname="${current.build.dir}/nunit.framework.tests.dll"/>
- </nunit2>
- </target>
-
<target name="gui-test" depends="build,init-test"
description="Run tests for a build using gui runner">
@@ -452,8 +440,8 @@
<fail message="MSI can only be built on the Win32 platform"
unless="${platform::is-win32()}"/>
- <fail message="MSI can only be built for a Win32 runtime"
- unless="${build.win32}"/>
+ <!--<fail message="MSI can only be built for a Microsoft runtime"
+ unless="${runtime.platform=='net'}"/>-->
<fail unless="${property::exists('wix.dir')}">
Unable to locate your WiX installation. Installing WiX normally sets
@@ -586,8 +574,10 @@
<copy todir="${package.bin.dir}/${runtime.config}">
<fileset basedir="${current.build.dir}">
<include name="*.dll"/>
+ <include name="*.exe"/>
<include name="*.pdb"/>
<include name="nunit.framework.xml"/>
+ <include name="nunitlite.xml"/>
</fileset>
</copy>
=== modified file 'nunit.common.include'
--- nunit.common.include 2009-08-21 19:49:56 +0000
+++ nunit.common.include 2009-09-15 17:41:09 +0000
@@ -190,11 +190,7 @@
<property name="runtime.config" value="net-1.0"/>
<property name="runtime.defines" value="MSNET,NET_1_0"/>
<property name="runtime.testproj" value="NUnitTests.v1.nunit"/>
- <property name="build.mono" value="false"/>
- <property name="build.win32" value="true"/>
<property name="nant.settings.currentframework" value="net-1.0"/>
- <property name="supported.test.platforms"
- value="net-1.0,net-1.1,net-2.0,mono-1.0,mono-2.0"/>
</target>
<target name="set-net-1.1-runtime-config">
@@ -205,12 +201,7 @@
<property name="runtime.version" value="1.1"/>
<property name="runtime.config" value="net-1.1"/>
<property name="runtime.defines" value="MSNET,NET_1_1"/>
- <property name="runtime.testproj" value="NUnitTests.v1.nunit"/>
- <property name="build.mono" value="false"/>
- <property name="build.win32" value="true"/>
<property name="nant.settings.currentframework" value="net-1.1"/>
- <property name="supported.test.platforms"
- value="net-1.0,net-1.1,net-2.0,mono-1.0,mono-2.0"/>
</target>
<target name="set-net-2.0-runtime-config">
@@ -221,11 +212,7 @@
<property name="runtime.version" value="2.0"/>
<property name="runtime.config" value="net-2.0"/>
<property name="runtime.defines" value="MSNET,NET_2_0"/>
- <property name="runtime.testproj" value="NUnitTests.v2.nunit"/>
- <property name="build.mono" value="false"/>
- <property name="build.win32" value="true"/>
<property name="nant.settings.currentframework" value="net-2.0"/>
- <property name="supported.test.platforms" value="net-2.0,mono-2.0"/>
</target>
<!--
@@ -237,11 +224,7 @@
<property name="runtime.version" value="3.0"/>
<property name="runtime.config" value="net-3.0"/>
<property name="runtime.defines" value="MSNET,NET_3_0"/>
- <property name="runtime.testproj" value="NUnitTests.v2.nunit"/>
- <property name="build.mono" value="false"/>
- <property name="build.win32" value="true"/>
<property name="nant.settings.currentframework" value="net-3.0"/>
- <property name="supported.test.platforms" value="net-2.0,mono-2.0"/>
</target>
<target name="set-net-3.5-runtime-config">
@@ -252,14 +235,32 @@
<property name="runtime.version" value="3.5"/>
<property name="runtime.config" value="net-3.5"/>
<property name="runtime.defines" value="MSNET,NET_3_5"/>
- <property name="runtime.testproj" value="NUnitTests.v2.nunit"/>
- <property name="build.mono" value="false"/>
- <property name="build.win32" value="true"/>
<property name="nant.settings.currentframework" value="net-3.5"/>
- <property name="supported.test.platforms" value="net-2.0,mono-2.0"/>
</target>
-->
+ <target name="set-netcf-1.0-runtime-config">
+ <fail unless="${framework::exists('netcf-1.0') and framework::sdk-exists('netcf-1.0')}"
+ message="The NETCF 1.0 SDK is not configured or not installed"/>
+
+ <property name="runtime.platform" value="netcf"/>
+ <property name="runtime.version" value="1.0"/>
+ <property name="runtime.config" value="netcf-1.0"/>
+ <property name="runtime.defines" value="NETCF,NETCF_1_0"/>
+ <property name="nant.settings.currentframework" value="netcf-1.0"/>
+ </target>
+
+ <target name="set-netcf-2.0-runtime-config">
+ <fail unless="${framework::exists('netcf-2.0') and framework::sdk-exists('netcf-2.0')}"
+ message="The NETCF 2.0 SDK is not configured or not installed"/>
+
+ <property name="runtime.platform" value="netcf"/>
+ <property name="runtime.version" value="2.0"/>
+ <property name="runtime.config" value="netcf-2.0"/>
+ <property name="runtime.defines" value="NETCF,NETCF_2_0"/>
+ <property name="nant.settings.currentframework" value="netcf-2.0"/>
+ </target>
+
<target name="set-mono-1.0-runtime-config">
<fail unless="${framework::exists('mono-1.0') and framework::sdk-exists('mono-1.0')}"
message="The Mono 1.0 SDK is not configured or not installed"/>
@@ -269,11 +270,7 @@
<property name="runtime.config" value="mono-1.0"/>
<property name="runtime.defines" value="MONO,NET_1_1"/>
<property name="runtime.testproj" value="NUnitTests.v1.nunit"/>
- <property name="build.mono" value="true"/>
- <property name="build.win32" value="false"/>
<property name="nant.settings.currentframework" value="mono-1.0"/>
- <property name="supported.test.platforms"
- value="mono-1.0,mono-2.0,net-1.0,net-1.1,net-2.0"/>
</target>
<target name="set-mono-2.0-runtime-config">
@@ -284,11 +281,8 @@
<property name="runtime.version" value="2.0"/>
<property name="runtime.config" value="mono-2.0"/>
<property name="runtime.defines" value="MONO,NET_2_0"/>
- <property name="build.mono" value="true"/>
<property name="runtime.testproj" value="NUnitTests.v2.nunit"/>
- <property name="build.win32" value="false"/>
<property name="nant.settings.currentframework" value="mono-2.0"/>
- <property name="supported.test.platforms" value="mono-2.0,net-2.0"/>
</target>
<!-- ***************************************************************** -->
@@ -305,7 +299,7 @@
<target name="set-std-package-config">
<property name="package.config" value="std"/>
- <property name="package.runtimes" value="net-1.1+net-2.0"/>
+ <property name="package.runtimes" value="net-1.1+net-2.0+netcf-1.0+netcf-2.0"/>
<property name="create.msi" value="true"/>
</target>
@@ -379,9 +373,6 @@
<echo> Build Dir: ${current.build.dir}</echo>
<echo> Defines: ${build.defines}</echo>
<echo></echo>
- <echo>Test Platforms for Current Build</echo>
- <echo> Supported: ${supported.test.platforms}</echo>
- <echo></echo>
<echo>Packaging</echo>
<echo> Name: ${package.name}</echo>
<echo> Version: ${package.version}</echo>
=== modified file 'solutions/vs2005/NUnitFramework.sln'
--- solutions/vs2005/NUnitFramework.sln 2009-07-16 19:37:36 +0000
+++ solutions/vs2005/NUnitFramework.sln 2009-09-08 05:53:41 +0000
@@ -5,6 +5,14 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit.framework", "framework\nunit.framework.csproj", "{816F2E66-2A25-4513-B5FA-8ECB4A5647CD}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite", "nunitlite\nunitlite.csproj", "{83A1B699-7177-4C00-BAAC-83A82571DC23}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite.tests", "nunitlite.tests\nunitlite.tests.csproj", "{0FE72EDD-8CDF-4AEA-9F5E-C0621839F44F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite_CF", "nunitlite_CF\nunitlite_CF.csproj", "{00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite_CF.tests", "nunitlite_CF.tests\nunitlite_CF.tests.csproj", "{7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -19,6 +27,24 @@
{816F2E66-2A25-4513-B5FA-8ECB4A5647CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{816F2E66-2A25-4513-B5FA-8ECB4A5647CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{816F2E66-2A25-4513-B5FA-8ECB4A5647CD}.Release|Any CPU.Build.0 = Release|Any CPU
+ {83A1B699-7177-4C00-BAAC-83A82571DC23}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {83A1B699-7177-4C00-BAAC-83A82571DC23}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {83A1B699-7177-4C00-BAAC-83A82571DC23}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {83A1B699-7177-4C00-BAAC-83A82571DC23}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0FE72EDD-8CDF-4AEA-9F5E-C0621839F44F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0FE72EDD-8CDF-4AEA-9F5E-C0621839F44F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0FE72EDD-8CDF-4AEA-9F5E-C0621839F44F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0FE72EDD-8CDF-4AEA-9F5E-C0621839F44F}.Release|Any CPU.Build.0 = Release|Any CPU
+ {00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}.Release|Any CPU.Deploy.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
=== modified file 'solutions/vs2005/framework/nunit.framework.csproj'
--- solutions/vs2005/framework/nunit.framework.csproj 2009-08-23 04:14:27 +0000
+++ solutions/vs2005/framework/nunit.framework.csproj 2009-09-11 21:12:38 +0000
@@ -7,12 +7,11 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{816F2E66-2A25-4513-B5FA-8ECB4A5647CD}</ProjectGuid>
<OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>nunit.framework</RootNamespace>
<AssemblyName>nunit.framework</AssemblyName>
<StartupObject>
</StartupObject>
- <SignAssembly>false</SignAssembly>
+ <SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>nunit.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -49,281 +48,287 @@
<Compile Include="..\..\..\src\framework\AssemblyInfo.cs">
<Link>AssemblyInfo.cs</Link>
</Compile>
- <Compile Include="..\..\..\src\framework\Assert.cs">
- <Link>Assert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\AssertionException.cs">
- <Link>AssertionException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\AssertionHelper.cs">
- <Link>AssertionHelper.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Assume.cs">
- <Link>Assume.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\CategoryAttribute.cs">
- <Link>CategoryAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\CollectionAssert.cs">
- <Link>CollectionAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\AttributeConstraints.cs">
- <Link>Constraints\AttributeConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\BasicConstraints.cs">
- <Link>Constraints\BasicConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\BinaryOperations.cs">
- <Link>Constraints\BinaryOperations.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\CollectionConstraints.cs">
- <Link>Constraints\CollectionConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ComparisonAdapter.cs">
- <Link>Constraints\ComparisonAdapter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ComparisonConstraints.cs">
- <Link>Constraints\ComparisonConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\Constraint.cs">
- <Link>Constraints\Constraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintBuilder.cs">
- <Link>Constraints\ConstraintBuilder.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintExpression.cs">
- <Link>Constraints\ConstraintExpression.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintExpressionBase.cs">
- <Link>Constraints\ConstraintExpressionBase.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintFactory.cs">
- <Link>Constraints\ConstraintFactory.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintOperators.cs">
- <Link>Constraints\ConstraintOperators.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ContainsConstraint.cs">
- <Link>Constraints\ContainsConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\DelayedConstraint.cs">
- <Link>Constraints\DelayedConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\DirectoryConstraints.cs">
- <Link>Constraints\DirectoryConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\EmptyConstraint.cs">
- <Link>Constraints\EmptyConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\EqualConstraint.cs">
- <Link>Constraints\EqualConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\EqualityAdapter.cs">
- <Link>Constraints\EqualityAdapter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\FloatingPointNumerics.cs">
- <Link>Constraints\FloatingPointNumerics.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\IResolveConstraint.cs">
- <Link>Constraints\IResolveConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\MessageWriter.cs">
- <Link>Constraints\MessageWriter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\MsgUtils.cs">
- <Link>Constraints\MsgUtils.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\Numerics.cs">
- <Link>Constraints\Numerics.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\NUnitComparer.cs">
- <Link>Constraints\NUnitComparer.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\NUnitEqualityComparer.cs">
- <Link>Constraints\NUnitEqualityComparer.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PathConstraints.cs">
- <Link>Constraints\PathConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PredicateConstraint.cs">
- <Link>Constraints\PredicateConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PrefixConstraints.cs">
- <Link>Constraints\PrefixConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PropertyConstraint.cs">
- <Link>Constraints\PropertyConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\RangeConstraint.cs">
- <Link>Constraints\RangeConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ResolvableConstraintExpression.cs">
- <Link>Constraints\ResolvableConstraintExpression.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\SameAsConstraint.cs">
- <Link>Constraints\SameAsConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\SerializableConstraints.cs">
- <Link>Constraints\SerializableConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\StringConstraints.cs">
- <Link>Constraints\StringConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ThrowsConstraint.cs">
- <Link>Constraints\ThrowsConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\Tolerance.cs">
- <Link>Constraints\Tolerance.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\TypeConstraints.cs">
- <Link>Constraints\TypeConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\DatapointAttributes.cs">
- <Link>DatapointAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\DescriptionAttribute.cs">
- <Link>DescriptionAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\DirectoryAssert.cs">
- <Link>DirectoryAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ExpectedExceptionAttribute.cs">
- <Link>ExpectedExceptionAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ExplicitAttribute.cs">
- <Link>ExplicitAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\FileAssert.cs">
- <Link>FileAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\GlobalSettings.cs">
- <Link>GlobalSettings.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Has.cs">
- <Link>Has.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IExpectException.cs">
- <Link>IExpectException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IgnoreAttribute.cs">
- <Link>IgnoreAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IgnoreException.cs">
- <Link>IgnoreException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IncludeExcludeAttributes.cs">
- <Link>IncludeExcludeAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\InconclusiveException.cs">
- <Link>InconclusiveException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Is.cs">
- <Link>Is.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ITestCaseData.cs">
- <Link>ITestCaseData.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Iz.cs">
- <Link>Iz.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\JoinTypeAttributes.cs">
- <Link>JoinTypeAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\List.cs">
- <Link>List.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ListMapper.cs">
- <Link>ListMapper.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\MaxTimeAttribute.cs">
- <Link>MaxTimeAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\PropertyAttribute.cs">
- <Link>PropertyAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RandomAttribute.cs">
- <Link>RandomAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Randomizer.cs">
- <Link>Randomizer.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RangeAttribute.cs">
- <Link>RangeAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RepeatAttribute.cs">
- <Link>RepeatAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RequiredAddinAttribute.cs">
- <Link>RequiredAddinAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetCultureAttribute.cs">
- <Link>SetCultureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetUICultureAttribute.cs">
- <Link>SetUICultureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetUpAttribute.cs">
- <Link>SetUpAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetUpFixtureAttribute.cs">
- <Link>SetUpFixtureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SpecialValue.cs">
- <Link>SpecialValue.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\StringAssert.cs">
- <Link>StringAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SuccessException.cs">
- <Link>SuccessException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SuiteAttribute.cs">
- <Link>SuiteAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TearDownAttribute.cs">
- <Link>TearDownAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestAttribute.cs">
- <Link>TestAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestCaseAttribute.cs">
- <Link>TestCaseAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestCaseData.cs">
- <Link>TestCaseData.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestCaseSourceAttribute.cs">
- <Link>TestCaseSourceAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestFixtureAttribute.cs">
- <Link>TestFixtureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestFixtureSetUpAttribute.cs">
- <Link>TestFixtureSetUpAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestFixtureTearDownAttribute.cs">
- <Link>TestFixtureTearDownAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Text.cs">
- <Link>Text.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TextMessageWriter.cs">
- <Link>TextMessageWriter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TheoryAttribute.cs">
- <Link>TheoryAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ThreadingAttributes.cs">
- <Link>ThreadingAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Throws.cs">
- <Link>Throws.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ValuesAttribute.cs">
- <Link>ValuesAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ValueSourceAttribute.cs">
- <Link>ValueSourceAttribute.cs</Link>
+ <Compile Include="..\..\..\src\framework\Env.cs">
+ <Link>Env.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Assume.cs">
+ <Link>NUnit\Framework\Assume.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\CategoryAttribute.cs">
+ <Link>NUnit\Framework\CategoryAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\CollectionAssert.cs">
+ <Link>NUnit\Framework\CollectionAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Constraints\DelayedConstraint.cs">
+ <Link>NUnit\Framework\Constraints\DelayedConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Constraints\DirectoryConstraints.cs">
+ <Link>NUnit\Framework\Constraints\DirectoryConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Constraints\PredicateConstraint.cs">
+ <Link>NUnit\Framework\Constraints\PredicateConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\DatapointAttributes.cs">
+ <Link>NUnit\Framework\DatapointAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\DirectoryAssert.cs">
+ <Link>NUnit\Framework\DirectoryAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ExplicitAttribute.cs">
+ <Link>NUnit\Framework\ExplicitAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\FileAssert.cs">
+ <Link>NUnit\Framework\FileAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\IgnoreException.cs">
+ <Link>NUnit\Framework\IgnoreException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\IncludeExcludeAttributes.cs">
+ <Link>NUnit\Framework\IncludeExcludeAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\InconclusiveException.cs">
+ <Link>NUnit\Framework\InconclusiveException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Iz.cs">
+ <Link>NUnit\Framework\Iz.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\JoinTypeAttributes.cs">
+ <Link>NUnit\Framework\JoinTypeAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\List.cs">
+ <Link>NUnit\Framework\List.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\MaxTimeAttribute.cs">
+ <Link>NUnit\Framework\MaxTimeAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RandomAttribute.cs">
+ <Link>NUnit\Framework\RandomAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Randomizer.cs">
+ <Link>NUnit\Framework\Randomizer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RangeAttribute.cs">
+ <Link>NUnit\Framework\RangeAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RepeatAttribute.cs">
+ <Link>NUnit\Framework\RepeatAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RequiredAddinAttribute.cs">
+ <Link>NUnit\Framework\RequiredAddinAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SetCultureAttribute.cs">
+ <Link>NUnit\Framework\SetCultureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SetUICultureAttribute.cs">
+ <Link>NUnit\Framework\SetUICultureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SetUpFixtureAttribute.cs">
+ <Link>NUnit\Framework\SetUpFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\StringAssert.cs">
+ <Link>NUnit\Framework\StringAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SuccessException.cs">
+ <Link>NUnit\Framework\SuccessException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SuiteAttribute.cs">
+ <Link>NUnit\Framework\SuiteAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\TestFixtureSetUpAttribute.cs">
+ <Link>NUnit\Framework\TestFixtureSetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\TestFixtureTearDownAttribute.cs">
+ <Link>NUnit\Framework\TestFixtureTearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Text.cs">
+ <Link>NUnit\Framework\Text.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\TheoryAttribute.cs">
+ <Link>NUnit\Framework\TheoryAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ThreadingAttributes.cs">
+ <Link>NUnit\Framework\ThreadingAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ValuesAttribute.cs">
+ <Link>NUnit\Framework\ValuesAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ValueSourceAttribute.cs">
+ <Link>NUnit\Framework\ValueSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Assert.cs">
+ <Link>Shared\Framework\Assert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionException.cs">
+ <Link>Shared\Framework\AssertionException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionHelper.cs">
+ <Link>Shared\Framework\AssertionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\AttributeConstraints.cs">
+ <Link>Shared\Framework\Constraints\AttributeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BasicConstraints.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinaryOperations.cs">
+ <Link>Shared\Framework\Constraints\BinaryOperations.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinarySerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\CollectionConstraints.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonAdapter.cs">
+ <Link>Shared\Framework\Constraints\ComparisonAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonConstraints.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Constraint.cs">
+ <Link>Shared\Framework\Constraints\Constraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintBuilder.cs">
+ <Link>Shared\Framework\Constraints\ConstraintBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpressionBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpressionBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintFactory.cs">
+ <Link>Shared\Framework\Constraints\ConstraintFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintOperators.cs">
+ <Link>Shared\Framework\Constraints\ConstraintOperators.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ContainsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ContainsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EmptyConstraint.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualConstraint.cs">
+ <Link>Shared\Framework\Constraints\EqualConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualityAdapter.cs">
+ <Link>Shared\Framework\Constraints\EqualityAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\FloatingPointNumerics.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\IResolveConstraint.cs">
+ <Link>Shared\Framework\Constraints\IResolveConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MessageWriter.cs">
+ <Link>Shared\Framework\Constraints\MessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MsgUtils.cs">
+ <Link>Shared\Framework\Constraints\MsgUtils.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Numerics.cs">
+ <Link>Shared\Framework\Constraints\Numerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitEqualityComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitEqualityComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PathConstraints.cs">
+ <Link>Shared\Framework\Constraints\PathConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PrefixConstraints.cs">
+ <Link>Shared\Framework\Constraints\PrefixConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PropertyConstraint.cs">
+ <Link>Shared\Framework\Constraints\PropertyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\RangeConstraint.cs">
+ <Link>Shared\Framework\Constraints\RangeConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ResolvableConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ResolvableConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\SameAsConstraint.cs">
+ <Link>Shared\Framework\Constraints\SameAsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\StringConstraints.cs">
+ <Link>Shared\Framework\Constraints\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ThrowsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Tolerance.cs">
+ <Link>Shared\Framework\Constraints\Tolerance.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\TypeConstraints.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\XmlSerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\DescriptionAttribute.cs">
+ <Link>Shared\Framework\DescriptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ExpectedExceptionAttribute.cs">
+ <Link>Shared\Framework\ExpectedExceptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\GlobalSettings.cs">
+ <Link>Shared\Framework\GlobalSettings.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Has.cs">
+ <Link>Shared\Framework\Has.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IExpectException.cs">
+ <Link>Shared\Framework\IExpectException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IgnoreAttribute.cs">
+ <Link>Shared\Framework\IgnoreAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Is.cs">
+ <Link>Shared\Framework\Is.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ITestCaseData.cs">
+ <Link>Shared\Framework\ITestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ListMapper.cs">
+ <Link>Shared\Framework\ListMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\PropertyAttribute.cs">
+ <Link>Shared\Framework\PropertyAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SetUpAttribute.cs">
+ <Link>Shared\Framework\SetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SpecialValue.cs">
+ <Link>Shared\Framework\SpecialValue.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TearDownAttribute.cs">
+ <Link>Shared\Framework\TearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestAttribute.cs">
+ <Link>Shared\Framework\TestAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseAttribute.cs">
+ <Link>Shared\Framework\TestCaseAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseData.cs">
+ <Link>Shared\Framework\TestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseSourceAttribute.cs">
+ <Link>Shared\Framework\TestCaseSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestFixtureAttribute.cs">
+ <Link>Shared\Framework\TestFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TextMessageWriter.cs">
+ <Link>Shared\Framework\TextMessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Throws.cs">
+ <Link>Shared\Framework\Throws.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
@@ -333,4 +338,9 @@
<ItemGroup>
<None Include="nunit.snk" />
</ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\framework\SyntaxElements.txt">
+ <Link>SyntaxElements.txt</Link>
+ </Content>
+ </ItemGroup>
</Project>
\ No newline at end of file
=== added directory 'solutions/vs2005/nunitlite'
=== added directory 'solutions/vs2005/nunitlite.tests'
=== added file 'solutions/vs2005/nunitlite.tests/nunitlite.tests.csproj'
--- solutions/vs2005/nunitlite.tests/nunitlite.tests.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2005/nunitlite.tests/nunitlite.tests.csproj 2009-09-11 21:12:38 +0000
@@ -0,0 +1,206 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{0FE72EDD-8CDF-4AEA-9F5E-C0621839F44F}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>nunitlite.tests</RootNamespace>
+ <AssemblyName>nunitlite.tests</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;NET_2_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NET_2_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Program.cs">
+ <Link>Program.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\AlwaysEqualComparer.cs">
+ <Link>Shared\Framework\AlwaysEqualComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFailureMessageFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFailureMessageFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayNotEqualFixture.cs">
+ <Link>Shared\Framework\ArrayNotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\CollectionAdapter.cs">
+ <Link>Shared\Framework\CollectionAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\AndTest.cs">
+ <Link>Shared\Framework\Constraints\AndTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BasicConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BinarySerializableTest.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\CollectionConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparerTests.cs">
+ <Link>Shared\Framework\Constraints\ComparerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparisonConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ConstraintTestBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintTestBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EmptyConstraintTest.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraintTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EqualTest.cs">
+ <Link>Shared\Framework\Constraints\EqualTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\FloatingPointNumericsTest.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\MsgUtilTests.cs">
+ <Link>Shared\Framework\Constraints\MsgUtilTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NotTest.cs">
+ <Link>Shared\Framework\Constraints\NotTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NumericsTest.cs">
+ <Link>Shared\Framework\Constraints\NumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\OrTest.cs">
+ <Link>Shared\Framework\Constraints\OrTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PathConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PropertyTests.cs">
+ <Link>Shared\Framework\Constraints\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\SameAsTest.cs">
+ <Link>Shared\Framework\Constraints\SameAsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\StringConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\StringConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ThrowsConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\TypeConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\XmlSerializableTest.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\MessageChecker.cs">
+ <Link>Shared\Framework\MessageChecker.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\CollectionTests.cs">
+ <Link>Shared\Framework\Syntax\CollectionTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ComparisonTests.cs">
+ <Link>Shared\Framework\Syntax\ComparisonTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\EqualityTests.cs">
+ <Link>Shared\Framework\Syntax\EqualityTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorOverrides.cs">
+ <Link>Shared\Framework\Syntax\OperatorOverrides.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorTests.cs">
+ <Link>Shared\Framework\Syntax\OperatorTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PathConstraintTests.cs">
+ <Link>Shared\Framework\Syntax\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PropertyTests.cs">
+ <Link>Shared\Framework\Syntax\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SerializableConstraints.cs">
+ <Link>Shared\Framework\Syntax\SerializableConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SimpleConstraints.cs">
+ <Link>Shared\Framework\Syntax\SimpleConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\StringConstraints.cs">
+ <Link>Shared\Framework\Syntax\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SyntaxTest.cs">
+ <Link>Shared\Framework\Syntax\SyntaxTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ThrowsTests.cs">
+ <Link>Shared\Framework\Syntax\ThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\TypeConstraints.cs">
+ <Link>Shared\Framework\Syntax\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestComparer.cs">
+ <Link>Shared\Framework\TestComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestDelegates.cs">
+ <Link>Shared\Framework\TestDelegates.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestFixtureAttributeTests.cs">
+ <Link>Shared\Framework\TestFixtureAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TextMessageWriterTests.cs">
+ <Link>Shared\Framework\TextMessageWriterTests.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\tests\TestImage1.jpg">
+ <Link>TestImage1.jpg</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestImage2.jpg">
+ <Link>TestImage2.jpg</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestText1.txt">
+ <Link>TestText1.txt</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestText2.txt">
+ <Link>TestText2.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\nunitlite\nunitlite.csproj">
+ <Project>{83A1B699-7177-4C00-BAAC-83A82571DC23}</Project>
+ <Name>nunitlite</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== added directory 'solutions/vs2005/nunitlite/NUnitLite'
=== added directory 'solutions/vs2005/nunitlite/NUnitLite/Runner'
=== added file 'solutions/vs2005/nunitlite/nunit.snk'
Binary files solutions/vs2005/nunitlite/nunit.snk 1970-01-01 00:00:00 +0000 and solutions/vs2005/nunitlite/nunit.snk 2009-09-06 16:12:27 +0000 differ
=== added file 'solutions/vs2005/nunitlite/nunitlite.csproj'
--- solutions/vs2005/nunitlite/nunitlite.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2005/nunitlite/nunitlite.csproj 2009-09-11 21:12:38 +0000
@@ -0,0 +1,302 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{83A1B699-7177-4C00-BAAC-83A82571DC23}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>nunitlite</RootNamespace>
+ <AssemblyName>nunitlite</AssemblyName>
+ <SignAssembly>true</SignAssembly>
+ <AssemblyOriginatorKeyFile>nunit.snk</AssemblyOriginatorKeyFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;NET_2_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\bin\Debug\nunitlite.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NET_2_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\bin\Release\nunitlite.XML</DocumentationFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\AssemblyInfo.cs">
+ <Link>AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Env.cs">
+ <Link>Env.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Framework\Contains.cs">
+ <Link>NUnitLite\Framework\Contains.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\ITest.cs">
+ <Link>NUnitLite\ITest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NullListener.cs">
+ <Link>NUnitLite\NullListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NUnitLiteException.cs">
+ <Link>NUnitLite\NUnitLiteException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Reflect.cs">
+ <Link>NUnitLite\Reflect.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\CommandLineOptions.cs">
+ <Link>NUnitLite\Runner\CommandLineOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ConsoleWriter.cs">
+ <Link>NUnitLite\Runner\ConsoleWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\DebugWriter.cs">
+ <Link>NUnitLite\Runner\DebugWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ResultSummary.cs">
+ <Link>NUnitLite\Runner\ResultSummary.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TcpWriter.cs">
+ <Link>NUnitLite\Runner\TcpWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestCaseBuilder.cs">
+ <Link>NUnitLite\Runner\TestCaseBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestFixtureBuilder.cs">
+ <Link>NUnitLite\Runner\TestFixtureBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestLoader.cs">
+ <Link>NUnitLite\Runner\TestLoader.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestRunner.cs">
+ <Link>NUnitLite\Runner\TestRunner.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TextUI.cs">
+ <Link>NUnitLite\Runner\TextUI.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\StackFilter.cs">
+ <Link>NUnitLite\StackFilter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestCase.cs">
+ <Link>NUnitLite\TestCase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestListener.cs">
+ <Link>NUnitLite\TestListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestResult.cs">
+ <Link>NUnitLite\TestResult.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestSuite.cs">
+ <Link>NUnitLite\TestSuite.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Assert.cs">
+ <Link>Shared\Framework\Assert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionException.cs">
+ <Link>Shared\Framework\AssertionException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionHelper.cs">
+ <Link>Shared\Framework\AssertionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\AttributeConstraints.cs">
+ <Link>Shared\Framework\Constraints\AttributeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BasicConstraints.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinaryOperations.cs">
+ <Link>Shared\Framework\Constraints\BinaryOperations.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinarySerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\CollectionConstraints.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonAdapter.cs">
+ <Link>Shared\Framework\Constraints\ComparisonAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonConstraints.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Constraint.cs">
+ <Link>Shared\Framework\Constraints\Constraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintBuilder.cs">
+ <Link>Shared\Framework\Constraints\ConstraintBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpressionBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpressionBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintFactory.cs">
+ <Link>Shared\Framework\Constraints\ConstraintFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintOperators.cs">
+ <Link>Shared\Framework\Constraints\ConstraintOperators.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ContainsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ContainsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EmptyConstraint.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualConstraint.cs">
+ <Link>Shared\Framework\Constraints\EqualConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualityAdapter.cs">
+ <Link>Shared\Framework\Constraints\EqualityAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\FloatingPointNumerics.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\IResolveConstraint.cs">
+ <Link>Shared\Framework\Constraints\IResolveConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MessageWriter.cs">
+ <Link>Shared\Framework\Constraints\MessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MsgUtils.cs">
+ <Link>Shared\Framework\Constraints\MsgUtils.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Numerics.cs">
+ <Link>Shared\Framework\Constraints\Numerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitEqualityComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitEqualityComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PathConstraints.cs">
+ <Link>Shared\Framework\Constraints\PathConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PrefixConstraints.cs">
+ <Link>Shared\Framework\Constraints\PrefixConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PropertyConstraint.cs">
+ <Link>Shared\Framework\Constraints\PropertyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\RangeConstraint.cs">
+ <Link>Shared\Framework\Constraints\RangeConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ResolvableConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ResolvableConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\SameAsConstraint.cs">
+ <Link>Shared\Framework\Constraints\SameAsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\StringConstraints.cs">
+ <Link>Shared\Framework\Constraints\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ThrowsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Tolerance.cs">
+ <Link>Shared\Framework\Constraints\Tolerance.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\TypeConstraints.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\XmlSerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\DescriptionAttribute.cs">
+ <Link>Shared\Framework\DescriptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ExpectedExceptionAttribute.cs">
+ <Link>Shared\Framework\ExpectedExceptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\GlobalSettings.cs">
+ <Link>Shared\Framework\GlobalSettings.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Has.cs">
+ <Link>Shared\Framework\Has.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IExpectException.cs">
+ <Link>Shared\Framework\IExpectException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IgnoreAttribute.cs">
+ <Link>Shared\Framework\IgnoreAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Is.cs">
+ <Link>Shared\Framework\Is.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ITestCaseData.cs">
+ <Link>Shared\Framework\ITestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ListMapper.cs">
+ <Link>Shared\Framework\ListMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\PropertyAttribute.cs">
+ <Link>Shared\Framework\PropertyAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SetUpAttribute.cs">
+ <Link>Shared\Framework\SetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SpecialValue.cs">
+ <Link>Shared\Framework\SpecialValue.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TearDownAttribute.cs">
+ <Link>Shared\Framework\TearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestAttribute.cs">
+ <Link>Shared\Framework\TestAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseAttribute.cs">
+ <Link>Shared\Framework\TestCaseAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseData.cs">
+ <Link>Shared\Framework\TestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseSourceAttribute.cs">
+ <Link>Shared\Framework\TestCaseSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestFixtureAttribute.cs">
+ <Link>Shared\Framework\TestFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TextMessageWriter.cs">
+ <Link>Shared\Framework\TextMessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Throws.cs">
+ <Link>Shared\Framework\Throws.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\framework\SyntaxElements.txt">
+ <Link>SyntaxElements.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="nunit.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== added directory 'solutions/vs2005/nunitlite_CF'
=== added directory 'solutions/vs2005/nunitlite_CF.tests'
=== added file 'solutions/vs2005/nunitlite_CF.tests/nunitlite_CF.tests.csproj'
--- solutions/vs2005/nunitlite_CF.tests/nunitlite_CF.tests.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2005/nunitlite_CF.tests/nunitlite_CF.tests.csproj 2009-09-11 21:12:38 +0000
@@ -0,0 +1,231 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{7291E7BB-EB32-4B5E-BB6E-25C7CC978D8B}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>nunitlite_CF.tests</RootNamespace>
+ <AssemblyName>nunitlite_CF.tests</AssemblyName>
+ <ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PlatformFamilyName>WindowsCE</PlatformFamilyName>
+ <PlatformID>E2BECB1F-8C8C-41ba-B736-9BE7D946A398</PlatformID>
+ <OSVersion>5.0</OSVersion>
+ <DeployDirSuffix>nunitlite_CF.tests</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;WindowsCE;NETCF;NUNITLITE</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="mscorlib" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Program.cs">
+ <Link>Program.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\AlwaysEqualComparer.cs">
+ <Link>Shared\Framework\AlwaysEqualComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFailureMessageFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFailureMessageFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayNotEqualFixture.cs">
+ <Link>Shared\Framework\ArrayNotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\CollectionAdapter.cs">
+ <Link>Shared\Framework\CollectionAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\AndTest.cs">
+ <Link>Shared\Framework\Constraints\AndTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BasicConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BinarySerializableTest.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\CollectionConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparerTests.cs">
+ <Link>Shared\Framework\Constraints\ComparerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparisonConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ConstraintTestBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintTestBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EmptyConstraintTest.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraintTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EqualTest.cs">
+ <Link>Shared\Framework\Constraints\EqualTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\FloatingPointNumericsTest.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\MsgUtilTests.cs">
+ <Link>Shared\Framework\Constraints\MsgUtilTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NotTest.cs">
+ <Link>Shared\Framework\Constraints\NotTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NumericsTest.cs">
+ <Link>Shared\Framework\Constraints\NumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\OrTest.cs">
+ <Link>Shared\Framework\Constraints\OrTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PathConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PropertyTests.cs">
+ <Link>Shared\Framework\Constraints\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\SameAsTest.cs">
+ <Link>Shared\Framework\Constraints\SameAsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\StringConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\StringConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ThrowsConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\TypeConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\XmlSerializableTest.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\MessageChecker.cs">
+ <Link>Shared\Framework\MessageChecker.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\CollectionTests.cs">
+ <Link>Shared\Framework\Syntax\CollectionTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ComparisonTests.cs">
+ <Link>Shared\Framework\Syntax\ComparisonTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\EqualityTests.cs">
+ <Link>Shared\Framework\Syntax\EqualityTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorOverrides.cs">
+ <Link>Shared\Framework\Syntax\OperatorOverrides.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorTests.cs">
+ <Link>Shared\Framework\Syntax\OperatorTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PathConstraintTests.cs">
+ <Link>Shared\Framework\Syntax\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PropertyTests.cs">
+ <Link>Shared\Framework\Syntax\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SerializableConstraints.cs">
+ <Link>Shared\Framework\Syntax\SerializableConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SimpleConstraints.cs">
+ <Link>Shared\Framework\Syntax\SimpleConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\StringConstraints.cs">
+ <Link>Shared\Framework\Syntax\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SyntaxTest.cs">
+ <Link>Shared\Framework\Syntax\SyntaxTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ThrowsTests.cs">
+ <Link>Shared\Framework\Syntax\ThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\TypeConstraints.cs">
+ <Link>Shared\Framework\Syntax\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestComparer.cs">
+ <Link>Shared\Framework\TestComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestDelegates.cs">
+ <Link>Shared\Framework\TestDelegates.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestFixtureAttributeTests.cs">
+ <Link>Shared\Framework\TestFixtureAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TextMessageWriterTests.cs">
+ <Link>Shared\Framework\TextMessageWriterTests.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\tests\TestImage1.jpg">
+ <Link>TestImage1.jpg</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestImage2.jpg">
+ <Link>TestImage2.jpg</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestText1.txt">
+ <Link>TestText1.txt</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestText2.txt">
+ <Link>TestText2.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\nunitlite_CF\nunitlite_CF.csproj">
+ <Project>{00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}</Project>
+ <Name>nunitlite_CF</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v1.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.v1.targets" />
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v2.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
+ <HostingProcess disable="1" />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== added file 'solutions/vs2005/nunitlite_CF/nunitlite_CF.csproj'
--- solutions/vs2005/nunitlite_CF/nunitlite_CF.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2005/nunitlite_CF/nunitlite_CF.csproj 2009-09-08 05:53:41 +0000
@@ -0,0 +1,319 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.50727</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{00A9536F-1A68-47B9-ADC5-A1224DFEA9AF}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <RootNamespace>NUnitLite</RootNamespace>
+ <AssemblyName>nunitlite</AssemblyName>
+ <ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PlatformFamilyName>PocketPC</PlatformFamilyName>
+ <PlatformID>3C41C503-53EF-4c2a-8DD4-A8217CAD115E</PlatformID>
+ <OSVersion>4.20</OSVersion>
+ <DeployDirSuffix>nunitlite_CF</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FormFactorID>
+ </FormFactorID>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;PocketPC;NETCF;NUNITLITE</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;PocketPC;NETCF;NUNITLITE</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="mscorlib" />
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\AssemblyInfo.cs">
+ <Link>AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Env.cs">
+ <Link>Env.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Framework\Contains.cs">
+ <Link>NUnitLite\Framework\Contains.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\ITest.cs">
+ <Link>NUnitLite\ITest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NullListener.cs">
+ <Link>NUnitLite\NullListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NUnitLiteException.cs">
+ <Link>NUnitLite\NUnitLiteException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Reflect.cs">
+ <Link>NUnitLite\Reflect.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\CommandLineOptions.cs">
+ <Link>NUnitLite\Runner\CommandLineOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ConsoleWriter.cs">
+ <Link>NUnitLite\Runner\ConsoleWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\DebugWriter.cs">
+ <Link>NUnitLite\Runner\DebugWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ResultSummary.cs">
+ <Link>NUnitLite\Runner\ResultSummary.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TcpWriter.cs">
+ <Link>NUnitLite\Runner\TcpWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestCaseBuilder.cs">
+ <Link>NUnitLite\Runner\TestCaseBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestFixtureBuilder.cs">
+ <Link>NUnitLite\Runner\TestFixtureBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestLoader.cs">
+ <Link>NUnitLite\Runner\TestLoader.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestRunner.cs">
+ <Link>NUnitLite\Runner\TestRunner.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TextUI.cs">
+ <Link>NUnitLite\Runner\TextUI.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\StackFilter.cs">
+ <Link>NUnitLite\StackFilter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestCase.cs">
+ <Link>NUnitLite\TestCase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestListener.cs">
+ <Link>NUnitLite\TestListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestResult.cs">
+ <Link>NUnitLite\TestResult.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestSuite.cs">
+ <Link>NUnitLite\TestSuite.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Assert.cs">
+ <Link>Shared\Framework\Assert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionException.cs">
+ <Link>Shared\Framework\AssertionException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionHelper.cs">
+ <Link>Shared\Framework\AssertionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\AttributeConstraints.cs">
+ <Link>Shared\Framework\Constraints\AttributeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BasicConstraints.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinaryOperations.cs">
+ <Link>Shared\Framework\Constraints\BinaryOperations.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinarySerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\CollectionConstraints.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonAdapter.cs">
+ <Link>Shared\Framework\Constraints\ComparisonAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonConstraints.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Constraint.cs">
+ <Link>Shared\Framework\Constraints\Constraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintBuilder.cs">
+ <Link>Shared\Framework\Constraints\ConstraintBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpressionBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpressionBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintFactory.cs">
+ <Link>Shared\Framework\Constra nts\ConstraintFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintOperators.cs">
+ <Link>Shared\Framework\Constraints\ConstraintOperators.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ContainsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ContainsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EmptyConstraint.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualConstraint.cs">
+ <Link>Shared\Framework\Constraints\EqualConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualityAdapter.cs">
+ <Link>Shared\Framework\Constraints\EqualityAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\FloatingPointNumerics.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\IResolveConstraint.cs">
+ <Link>Shared\Framework\Constraints\IResolveConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MessageWriter.cs">
+ <Link>Shared\Framework\Constraints\MessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MsgUtils.cs">
+ <Link>Shared\Framework\Constraints\MsgUtils.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Numerics.cs">
+ <Link>Shared\Framework\Constraints\Numerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitEqualityComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitEqualityComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PathConstraints.cs">
+ <Link>Shared\Framework\Constraints\PathConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PrefixConstraints.cs">
+ <Link>Shared\Framework\Constraints\PrefixConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PropertyConstraint.cs">
+ <Link>Shared\Framework\Constraints\PropertyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\RangeConstraint.cs">
+ <Link>Shared\Framework\Constraints\RangeConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ResolvableConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ResolvableConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\SameAsConstraint.cs">
+ <Link>Shared\Framework\Constraints\SameAsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\StringConstraints.cs">
+ <Link>Shared\Framework\Constraints\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ThrowsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Tolerance.cs">
+ <Link>Shared\Framework\Constraints\Tolerance.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\TypeConstraints.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\XmlSerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\DescriptionAttribute.cs">
+ <Link>Shared\Framework\DescriptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ExpectedExceptionAttribute.cs">
+ <Link>Shared\Framework\ExpectedExceptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\GlobalSettings.cs">
+ <Link>Shared\Framework\GlobalSettings.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Has.cs">
+ <Link>Shared\Framework\Has.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IExpectException.cs">
+ <Link>Shared\Framework\IExpectException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IgnoreAttribute.cs">
+ <Link>Shared\Framework\IgnoreAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Is.cs">
+ <Link>Shared\Framework\Is.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ITestCaseData.cs">
+ <Link>Shared\Framework\ITestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ListMapper.cs">
+ <Link>Shared\Framework\ListMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\PropertyAttribute.cs">
+ <Link>Shared\Framework\PropertyAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SetUpAttribute.cs">
+ <Link>Shared\Framework\SetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SpecialValue.cs">
+ <Link>Shared\Framework\SpecialValue.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TearDownAttribute.cs">
+ <Link>Shared\Framework\TearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestAttribute.cs">
+ <Link>Shared\Framework\TestAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseAttribute.cs">
+ <Link>Shared\Framework\TestCaseAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseData.cs">
+ <Link>Shared\Framework\TestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseSourceAttribute.cs">
+ <Link>Shared\Framework\TestCaseSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestFixtureAttribute.cs">
+ <Link>Shared\Framework\TestFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TextMessageWriter.cs">
+ <Link>Shared\Framework\TextMessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Throws.cs">
+ <Link>Shared\Framework\Throws.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\framework\SyntaxElements.txt">
+ <Link>SyntaxElements.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v1.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.v1.targets" />
+ <Import Condition="'$(TargetFrameworkVersion)' == 'v2.0'" Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
+ <HostingProcess disable="1" />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== modified file 'solutions/vs2005/tests/nunit.framework.tests.csproj'
--- solutions/vs2005/tests/nunit.framework.tests.csproj 2009-07-16 19:37:36 +0000
+++ solutions/vs2005/tests/nunit.framework.tests.csproj 2009-09-11 21:12:38 +0000
@@ -7,7 +7,6 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F6410C35-1348-46EA-BB1C-D8866C31458E}</ProjectGuid>
<OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NUnit.Framework.Tests</RootNamespace>
<AssemblyName>nunit.framework.tests</AssemblyName>
<StartupObject>
@@ -42,206 +41,215 @@
<Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
<Link>CommonAssemblyInfo.cs</Link>
</Compile>
- <Compile Include="..\..\..\src\tests\ArrayEqualsFailureMessageFixture.cs">
- <Link>ArrayEqualsFailureMessageFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ArrayEqualsFixture.cs">
- <Link>ArrayEqualsFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ArrayNotEqualFixture.cs">
- <Link>ArrayNotEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\AssertThrowsTests.cs">
- <Link>AssertThrowsTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\AssumeThatTests.cs">
- <Link>AssumeThatTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\CollectionAdapter.cs">
- <Link>CollectionAdapter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\CollectionAssertTest.cs">
- <Link>CollectionAssertTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ConditionAssertTests.cs">
- <Link>ConditionAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\AfterConstraintTests.cs">
- <Link>Constraints\AfterConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\AndTest.cs">
- <Link>Constraints\AndTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\BasicConstraintTests.cs">
- <Link>Constraints\BasicConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\CollectionConstraintTests.cs">
- <Link>Constraints\CollectionConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ComparerTests.cs">
- <Link>Constraints\ComparerTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ComparisonConstraintTests.cs">
- <Link>Constraints\ComparisonConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ConstraintTestBase.cs">
- <Link>Constraints\ConstraintTestBase.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\EmptyConstraintTest.cs">
- <Link>Constraints\EmptyConstraintTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\EqualTest.cs">
- <Link>Constraints\EqualTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\FloatingPointNumericsTest.cs">
- <Link>Constraints\FloatingPointNumericsTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\MsgUtilTests.cs">
- <Link>Constraints\MsgUtilTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\NotTest.cs">
- <Link>Constraints\NotTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\NumericsTest.cs">
- <Link>Constraints\NumericsTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\OrTest.cs">
- <Link>Constraints\OrTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\PathConstraintTests.cs">
- <Link>Constraints\PathConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\PropertyTests.cs">
- <Link>Constraints\PropertyTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\SameAsTest.cs">
- <Link>Constraints\SameAsTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\SerializableConstraintTest.cs">
- <Link>Constraints\SerializableConstraintTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\StringConstraintTests.cs">
- <Link>Constraints\StringConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ThrowsConstraintTests.cs">
- <Link>Constraints\ThrowsConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\TypeConstraintTests.cs">
- <Link>Constraints\TypeConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\DirectoryAssertTests.cs">
- <Link>DirectoryAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\EqualsFixture.cs">
- <Link>EqualsFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\FileAssertTests.cs">
- <Link>FileAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\GreaterEqualFixture.cs">
- <Link>GreaterEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\GreaterFixture.cs">
- <Link>GreaterFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\LessEqualFixture.cs">
- <Link>LessEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\LessFixture.cs">
- <Link>LessFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ListContentsTests.cs">
- <Link>ListContentsTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\MessageChecker.cs">
- <Link>MessageChecker.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\NotEqualFixture.cs">
- <Link>NotEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\NotSameFixture.cs">
- <Link>NotSameFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\NullableTypesTests.cs">
- <Link>NullableTypesTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\RandomizerTests.cs">
- <Link>RandomizerTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\RangeTests.cs">
- <Link>RangeTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\SameFixture.cs">
- <Link>SameFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\StringAssertTests.cs">
- <Link>StringAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\AfterTests.cs">
- <Link>Syntax\AfterTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\ArbitraryConstraintMatching.cs">
- <Link>Syntax\ArbitraryConstraintMatching.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\CollectionTests.cs">
- <Link>Syntax\CollectionTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\ComparisonTests.cs">
- <Link>Syntax\ComparisonTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\EqualityTests.cs">
- <Link>Syntax\EqualityTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\InvalidCodeTests.cs">
- <Link>Syntax\InvalidCodeTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\OperatorOverrides.cs">
- <Link>Syntax\OperatorOverrides.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\OperatorTests.cs">
- <Link>Syntax\OperatorTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\PathConstraintTests.cs">
- <Link>Syntax\PathConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\PropertyTests.cs">
- <Link>Syntax\PropertyTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\SerializableConstraints.cs">
- <Link>Syntax\SerializableConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\SimpleConstraints.cs">
- <Link>Syntax\SimpleConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\StringConstraints.cs">
- <Link>Syntax\StringConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\SyntaxTest.cs">
- <Link>Syntax\SyntaxTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\TestCompiler.cs">
- <Link>Syntax\TestCompiler.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\ThrowsTests.cs">
- <Link>Syntax\ThrowsTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\TypeConstraints.cs">
- <Link>Syntax\TypeConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TestDelegates.cs">
- <Link>TestDelegates.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TestFixtureAttributeTests.cs">
- <Link>TestFixtureAttributeTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TextMessageWriterTests.cs">
- <Link>TextMessageWriterTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TypeAssertTest.cs">
- <Link>TypeAssertTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ValuesAttributeTests.cs">
- <Link>ValuesAttributeTests.cs</Link>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\AssertThrowsTests.cs">
+ <Link>NUnit\Framework\AssertThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\AssumeThatTests.cs">
+ <Link>NUnit\Framework\AssumeThatTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\CollectionAssertTest.cs">
+ <Link>NUnit\Framework\CollectionAssertTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\ConditionAssertTests.cs">
+ <Link>NUnit\Framework\ConditionAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Constraints\AfterConstraintTests.cs">
+ <Link>NUnit\Framework\Constraints\AfterConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\DirectoryAssertTests.cs">
+ <Link>NUnit\Framework\DirectoryAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\EqualsFixture.cs">
+ <Link>NUnit\Framework\EqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\FileAssertTests.cs">
+ <Link>NUnit\Framework\FileAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\GreaterEqualFixture.cs">
+ <Link>NUnit\Framework\GreaterEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\GreaterFixture.cs">
+ <Link>NUnit\Framework\GreaterFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\LessEqualFixture.cs">
+ <Link>NUnit\Framework\LessEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\LessFixture.cs">
+ <Link>NUnit\Framework\LessFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\ListContentsTests.cs">
+ <Link>NUnit\Framework\ListContentsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\NotEqualFixture.cs">
+ <Link>NUnit\Framework\NotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\NotSameFixture.cs">
+ <Link>NUnit\Framework\NotSameFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\NullableTypesTests.cs">
+ <Link>NUnit\Framework\NullableTypesTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\RandomizerTests.cs">
+ <Link>NUnit\Framework\RandomizerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\RangeTests.cs">
+ <Link>NUnit\Framework\RangeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\SameFixture.cs">
+ <Link>NUnit\Framework\SameFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\StringAssertTests.cs">
+ <Link>NUnit\Framework\StringAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\AfterTests.cs">
+ <Link>NUnit\Framework\Syntax\AfterTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\ArbitraryConstraintMatching.cs">
+ <Link>NUnit\Framework\Syntax\ArbitraryConstraintMatching.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\InvalidCodeTests.cs">
+ <Link>NUnit\Framework\Syntax\InvalidCodeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\TestCompiler.cs">
+ <Link>NUnit\Framework\Syntax\TestCompiler.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\TypeAssertTest.cs">
+ <Link>NUnit\Framework\TypeAssertTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\ValuesAttributeTests.cs">
+ <Link>NUnit\Framework\ValuesAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\AlwaysEqualComparer.cs">
+ <Link>Shared\Framework\AlwaysEqualComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFailureMessageFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFailureMessageFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayNotEqualFixture.cs">
+ <Link>Shared\Framework\ArrayNotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\CollectionAdapter.cs">
+ <Link>Shared\Framework\CollectionAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\AndTest.cs">
+ <Link>Shared\Framework\Constraints\AndTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BasicConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BinarySerializableTest.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\CollectionConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparerTests.cs">
+ <Link>Shared\Framework\Constraints\ComparerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparisonConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ConstraintTestBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintTestBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EmptyConstraintTest.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraintTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EqualTest.cs">
+ <Link>Shared\Framework\Constraints\EqualTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\FloatingPointNumericsTest.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\MsgUtilTests.cs">
+ <Link>Shared\Framework\Constraints\MsgUtilTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NotTest.cs">
+ <Link>Shared\Framework\Constraints\NotTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NumericsTest.cs">
+ <Link>Shared\Framework\Constraints\NumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\OrTest.cs">
+ <Link>Shared\Framework\Constraints\OrTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PathConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PropertyTests.cs">
+ <Link>Shared\Framework\Constraints\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\SameAsTest.cs">
+ <Link>Shared\Framework\Constraints\SameAsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\StringConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\StringConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ThrowsConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\TypeConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\XmlSerializableTest.cs">
+ <Link>Shared\Framework\Constraints\XmlSeriazliableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\MessageChecker.cs">
+ <Link>Shared\Framework\MessageChecker.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\CollectionTests.cs">
+ <Link>Shared\Framework\Syntax\CollectionTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ComparisonTests.cs">
+ <Link>Shared\Framework\Syntax\ComparisonTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\EqualityTests.cs">
+ <Link>Shared\Framework\Syntax\EqualityTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorOverrides.cs">
+ <Link>Shared\Framework\Syntax\OperatorOverrides.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorTests.cs">
+ <Link>Shared\Framework\Syntax\OperatorTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PathConstraintTests.cs">
+ <Link>Shared\Framework\Syntax\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PropertyTests.cs">
+ <Link>Shared\Framework\Syntax\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SerializableConstraints.cs">
+ <Link>Shared\Framework\Syntax\SerializableConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SimpleConstraints.cs">
+ <Link>Shared\Framework\Syntax\SimpleConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\StringConstraints.cs">
+ <Link>Shared\Framework\Syntax\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SyntaxTest.cs">
+ <Link>Shared\Framework\Syntax\SyntaxTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ThrowsTests.cs">
+ <Link>Shared\Framework\Syntax\ThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\TypeConstraints.cs">
+ <Link>Shared\Framework\Syntax\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestComparer.cs">
+ <Link>Shared\Framework\TestComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestDelegates.cs">
+ <Link>Shared\Framework\TestDelegates.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestFixtureAttributeTests.cs">
+ <Link>Shared\Framework\TestFixtureAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TextMessageWriterTests.cs">
+ <Link>Shared\Framework\TextMessageWriterTests.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
=== modified file 'solutions/vs2008/NUnitFramework.sln'
--- solutions/vs2008/NUnitFramework.sln 2009-07-16 19:37:36 +0000
+++ solutions/vs2008/NUnitFramework.sln 2009-09-08 05:53:41 +0000
@@ -5,6 +5,16 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunit.framework.tests", "tests\nunit.framework.tests.csproj", "{EA9871E3-9972-4476-821E-3961C28125E8}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite", "nunitlite\nunitlite.csproj", "{0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite.tests", "nunitlite.tests\nunitlite.tests.csproj", "{0B5B1B19-D9D1-4E9C-80EE-37D4F56282C1}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NUnitLiteTests", "NUnitLiteTests\NUnitLiteTests.csproj", "{F57C72F6-080C-45ED-813A-92158FC09221}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite_CF.tests", "nunitlite_CF.tests\nunitlite_CF.tests.csproj", "{B9EE77F7-FCC2-468A-86D0-518CCFAB2843}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "nunitlite_CF", "nunitlite_CF\nunitlite_CF.csproj", "{463FC406-30E1-496E-9222-65DDE413CC84}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -19,6 +29,28 @@
{EA9871E3-9972-4476-821E-3961C28125E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{EA9871E3-9972-4476-821E-3961C28125E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EA9871E3-9972-4476-821E-3961C28125E8}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0B5B1B19-D9D1-4E9C-80EE-37D4F56282C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0B5B1B19-D9D1-4E9C-80EE-37D4F56282C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0B5B1B19-D9D1-4E9C-80EE-37D4F56282C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0B5B1B19-D9D1-4E9C-80EE-37D4F56282C1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F57C72F6-080C-45ED-813A-92158FC09221}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F57C72F6-080C-45ED-813A-92158FC09221}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F57C72F6-080C-45ED-813A-92158FC09221}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F57C72F6-080C-45ED-813A-92158FC09221}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B9EE77F7-FCC2-468A-86D0-518CCFAB2843}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B9EE77F7-FCC2-468A-86D0-518CCFAB2843}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B9EE77F7-FCC2-468A-86D0-518CCFAB2843}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {B9EE77F7-FCC2-468A-86D0-518CCFAB2843}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B9EE77F7-FCC2-468A-86D0-518CCFAB2843}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B9EE77F7-FCC2-468A-86D0-518CCFAB2843}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {463FC406-30E1-496E-9222-65DDE413CC84}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {463FC406-30E1-496E-9222-65DDE413CC84}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {463FC406-30E1-496E-9222-65DDE413CC84}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {463FC406-30E1-496E-9222-65DDE413CC84}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
=== modified file 'solutions/vs2008/framework/nunit.framework.csproj'
--- solutions/vs2008/framework/nunit.framework.csproj 2009-09-01 22:35:53 +0000
+++ solutions/vs2008/framework/nunit.framework.csproj 2009-09-08 05:53:41 +0000
@@ -8,7 +8,7 @@
<ProjectGuid>{12B66B03-90F1-4992-BD33-BDF3C69AE49E}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>NUnit.Framework</RootNamespace>
+ <RootNamespace>NUnit</RootNamespace>
<AssemblyName>nunit.framework</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
@@ -57,281 +57,287 @@
<Compile Include="..\..\..\src\framework\AssemblyInfo.cs">
<Link>AssemblyInfo.cs</Link>
</Compile>
- <Compile Include="..\..\..\src\framework\Assert.cs">
- <Link>Assert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\AssertionException.cs">
- <Link>AssertionException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\AssertionHelper.cs">
- <Link>AssertionHelper.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Assume.cs">
- <Link>Assume.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\CategoryAttribute.cs">
- <Link>CategoryAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\CollectionAssert.cs">
- <Link>CollectionAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\AttributeConstraints.cs">
- <Link>Constraints\AttributeConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\BasicConstraints.cs">
- <Link>Constraints\BasicConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\BinaryOperations.cs">
- <Link>Constraints\BinaryOperations.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\CollectionConstraints.cs">
- <Link>Constraints\CollectionConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ComparisonAdapter.cs">
- <Link>Constraints\ComparisonAdapter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ComparisonConstraints.cs">
- <Link>Constraints\ComparisonConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\Constraint.cs">
- <Link>Constraints\Constraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintBuilder.cs">
- <Link>Constraints\ConstraintBuilder.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintExpression.cs">
- <Link>Constraints\ConstraintExpression.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintExpressionBase.cs">
- <Link>Constraints\ConstraintExpressionBase.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintFactory.cs">
- <Link>Constraints\ConstraintFactory.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ConstraintOperators.cs">
- <Link>Constraints\ConstraintOperators.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ContainsConstraint.cs">
- <Link>Constraints\ContainsConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\DelayedConstraint.cs">
- <Link>Constraints\DelayedConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\DirectoryConstraints.cs">
- <Link>Constraints\DirectoryConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\EmptyConstraint.cs">
- <Link>Constraints\EmptyConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\EqualConstraint.cs">
- <Link>Constraints\EqualConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\EqualityAdapter.cs">
- <Link>Constraints\EqualityAdapter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\FloatingPointNumerics.cs">
- <Link>Constraints\FloatingPointNumerics.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\IResolveConstraint.cs">
- <Link>Constraints\IResolveConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\MessageWriter.cs">
- <Link>Constraints\MessageWriter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\MsgUtils.cs">
- <Link>Constraints\MsgUtils.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\Numerics.cs">
- <Link>Constraints\Numerics.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\NUnitComparer.cs">
- <Link>Constraints\NUnitComparer.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\NUnitEqualityComparer.cs">
- <Link>Constraints\NUnitEqualityComparer.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PathConstraints.cs">
- <Link>Constraints\PathConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PredicateConstraint.cs">
- <Link>Constraints\PredicateConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PrefixConstraints.cs">
- <Link>Constraints\PrefixConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\PropertyConstraint.cs">
- <Link>Constraints\PropertyConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\RangeConstraint.cs">
- <Link>Constraints\RangeConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ResolvableConstraintExpression.cs">
- <Link>Constraints\ResolvableConstraintExpression.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\SameAsConstraint.cs">
- <Link>Constraints\SameAsConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\SerializableConstraints.cs">
- <Link>Constraints\SerializableConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\StringConstraints.cs">
- <Link>Constraints\StringConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\ThrowsConstraint.cs">
- <Link>Constraints\ThrowsConstraint.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\Tolerance.cs">
- <Link>Constraints\Tolerance.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Constraints\TypeConstraints.cs">
- <Link>Constraints\TypeConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\DatapointAttributes.cs">
- <Link>DatapointAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\DescriptionAttribute.cs">
- <Link>DescriptionAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\DirectoryAssert.cs">
- <Link>DirectoryAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ExpectedExceptionAttribute.cs">
- <Link>ExpectedExceptionAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ExplicitAttribute.cs">
- <Link>ExplicitAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\FileAssert.cs">
- <Link>FileAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\GlobalSettings.cs">
- <Link>GlobalSettings.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Has.cs">
- <Link>Has.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IExpectException.cs">
- <Link>IExpectException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IgnoreAttribute.cs">
- <Link>IgnoreAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IgnoreException.cs">
- <Link>IgnoreException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\IncludeExcludeAttributes.cs">
- <Link>IncludeExcludeAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\InconclusiveException.cs">
- <Link>InconclusiveException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Is.cs">
- <Link>Is.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ITestCaseData.cs">
- <Link>ITestCaseData.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Iz.cs">
- <Link>Iz.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\JoinTypeAttributes.cs">
- <Link>JoinTypeAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\List.cs">
- <Link>List.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ListMapper.cs">
- <Link>ListMapper.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\MaxTimeAttribute.cs">
- <Link>MaxTimeAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\PropertyAttribute.cs">
- <Link>PropertyAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RandomAttribute.cs">
- <Link>RandomAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Randomizer.cs">
- <Link>Randomizer.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RangeAttribute.cs">
- <Link>RangeAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RepeatAttribute.cs">
- <Link>RepeatAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\RequiredAddinAttribute.cs">
- <Link>RequiredAddinAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetCultureAttribute.cs">
- <Link>SetCultureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetUICultureAttribute.cs">
- <Link>SetUICultureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetUpAttribute.cs">
- <Link>SetUpAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SetUpFixtureAttribute.cs">
- <Link>SetUpFixtureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SpecialValue.cs">
- <Link>SpecialValue.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\StringAssert.cs">
- <Link>StringAssert.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SuccessException.cs">
- <Link>SuccessException.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\SuiteAttribute.cs">
- <Link>SuiteAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TearDownAttribute.cs">
- <Link>TearDownAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestAttribute.cs">
- <Link>TestAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestCaseAttribute.cs">
- <Link>TestCaseAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestCaseData.cs">
- <Link>TestCaseData.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestCaseSourceAttribute.cs">
- <Link>TestCaseSourceAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestFixtureAttribute.cs">
- <Link>TestFixtureAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestFixtureSetUpAttribute.cs">
- <Link>TestFixtureSetUpAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TestFixtureTearDownAttribute.cs">
- <Link>TestFixtureTearDownAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Text.cs">
- <Link>Text.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TextMessageWriter.cs">
- <Link>TextMessageWriter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\TheoryAttribute.cs">
- <Link>TheoryAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ThreadingAttributes.cs">
- <Link>ThreadingAttributes.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\Throws.cs">
- <Link>Throws.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ValuesAttribute.cs">
- <Link>ValuesAttribute.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\framework\ValueSourceAttribute.cs">
- <Link>ValueSourceAttribute.cs</Link>
+ <Compile Include="..\..\..\src\framework\Env.cs">
+ <Link>Env.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Assume.cs">
+ <Link>NUnit\Framework\Assume.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\CategoryAttribute.cs">
+ <Link>NUnit\Framework\CategoryAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\CollectionAssert.cs">
+ <Link>NUnit\Framework\CollectionAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Constraints\DelayedConstraint.cs">
+ <Link>NUnit\Framework\Constraints\DelayedConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Constraints\DirectoryConstraints.cs">
+ <Link>NUnit\Framework\Constraints\DirectoryConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Constraints\PredicateConstraint.cs">
+ <Link>NUnit\Framework\Constraints\PredicateConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\DatapointAttributes.cs">
+ <Link>NUnit\Framework\DatapointAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\DirectoryAssert.cs">
+ <Link>NUnit\Framework\DirectoryAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ExplicitAttribute.cs">
+ <Link>NUnit\Framework\ExplicitAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\FileAssert.cs">
+ <Link>NUnit\Framework\FileAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\IgnoreException.cs">
+ <Link>NUnit\Framework\IgnoreException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\IncludeExcludeAttributes.cs">
+ <Link>NUnit\Framework\IncludeExcludeAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\InconclusiveException.cs">
+ <Link>NUnit\Framework\InconclusiveException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ITestCaseData.cs">
+ <Link>Shared\Framework\ITestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Iz.cs">
+ <Link>NUnit\Framework\Iz.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\JoinTypeAttributes.cs">
+ <Link>NUnit\Framework\JoinTypeAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\List.cs">
+ <Link>NUnit\Framework\List.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\MaxTimeAttribute.cs">
+ <Link>NUnit\Framework\MaxTimeAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RandomAttribute.cs">
+ <Link>NUnit\Framework\RandomAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Randomizer.cs">
+ <Link>NUnit\Framework\Randomizer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RangeAttribute.cs">
+ <Link>NUnit\Framework\RangeAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RepeatAttribute.cs">
+ <Link>NUnit\Framework\RepeatAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\RequiredAddinAttribute.cs">
+ <Link>NUnit\Framework\RequiredAddinAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SetCultureAttribute.cs">
+ <Link>NUnit\Framework\SetCultureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SetUICultureAttribute.cs">
+ <Link>NUnit\Framework\SetUICultureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SetUpFixtureAttribute.cs">
+ <Link>NUnit\Framework\SetUpFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\StringAssert.cs">
+ <Link>NUnit\Framework\StringAssert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SuccessException.cs">
+ <Link>NUnit\Framework\SuccessException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\SuiteAttribute.cs">
+ <Link>NUnit\Framework\SuiteAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\TestFixtureSetUpAttribute.cs">
+ <Link>NUnit\Framework\TestFixtureSetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\TestFixtureTearDownAttribute.cs">
+ <Link>NUnit\Framework\TestFixtureTearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\Text.cs">
+ <Link>NUnit\Framework\Text.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\TheoryAttribute.cs">
+ <Link>NUnit\Framework\TheoryAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ThreadingAttributes.cs">
+ <Link>NUnit\Framework\ThreadingAttributes.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ValuesAttribute.cs">
+ <Link>NUnit\Framework\ValuesAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnit\Framework\ValueSourceAttribute.cs">
+ <Link>NUnit\Framework\ValueSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Assert.cs">
+ <Link>Shared\Framework\Assert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionException.cs">
+ <Link>Shared\Framework\AssertionException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionHelper.cs">
+ <Link>Shared\Framework\AssertionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\AttributeConstraints.cs">
+ <Link>Shared\Framework\Constraints\AttributeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BasicConstraints.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinaryOperations.cs">
+ <Link>Shared\Framework\Constraints\BinaryOperations.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinarySerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\CollectionConstraints.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonAdapter.cs">
+ <Link>Shared\Framework\Constraints\ComparisonAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonConstraints.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Constraint.cs">
+ <Link>Shared\Framework\Constraints\Constraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintBuilder.cs">
+ <Link>Shared\Framework\Constraints\ConstraintBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpressionBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpressionBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintFactory.cs">
+ <Link>Shared\Framework\Constraints\ConstraintFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintOperators.cs">
+ <Link>Shared\Framework\Constraints\ConstraintOperators.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ContainsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ContainsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EmptyConstraint.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualConstraint.cs">
+ <Link>Shared\Framework\Constraints\EqualConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualityAdapter.cs">
+ <Link>Shared\Framework\Constraints\EqualityAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\FloatingPointNumerics.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\IResolveConstraint.cs">
+ <Link>Shared\Framework\Constraints\IResolveConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MessageWriter.cs">
+ <Link>Shared\Framework\Constraints\MessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MsgUtils.cs">
+ <Link>Shared\Framework\Constraints\MsgUtils.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Numerics.cs">
+ <Link>Shared\Framework\Constraints\Numerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitEqualityComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitEqualityComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PathConstraints.cs">
+ <Link>Shared\Framework\Constraints\PathConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PrefixConstraints.cs">
+ <Link>Shared\Framework\Constraints\PrefixConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PropertyConstraint.cs">
+ <Link>Shared\Framework\Constraints\PropertyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\RangeConstraint.cs">
+ <Link>Shared\Framework\Constraints\RangeConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ResolvableConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ResolvableConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\SameAsConstraint.cs">
+ <Link>Shared\Framework\Constraints\SameAsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\StringConstraints.cs">
+ <Link>Shared\Framework\Constraints\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ThrowsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Tolerance.cs">
+ <Link>Shared\Framework\Constraints\Tolerance.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\TypeConstraints.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\XmlSerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\DescriptionAttribute.cs">
+ <Link>Shared\Framework\DescriptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ExpectedExceptionAttribute.cs">
+ <Link>Shared\Framework\ExpectedExceptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\GlobalSettings.cs">
+ <Link>Shared\Framework\GlobalSettings.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Has.cs">
+ <Link>Shared\Framework\Has.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IExpectException.cs">
+ <Link>Shared\Framework\IExpectException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IgnoreAttribute.cs">
+ <Link>Shared\Framework\IgnoreAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Is.cs">
+ <Link>Shared\Framework\Is.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ListMapper.cs">
+ <Link>Shared\Framework\ListMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\PropertyAttribute.cs">
+ <Link>Shared\Framework\PropertyAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SetUpAttribute.cs">
+ <Link>Shared\Framework\SetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SpecialValue.cs">
+ <Link>Shared\Framework\SpecialValue.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TearDownAttribute.cs">
+ <Link>Shared\Framework\TearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestAttribute.cs">
+ <Link>Shared\Framework\TestAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseAttribute.cs">
+ <Link>Shared\Framework\TestCaseAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseData.cs">
+ <Link>Shared\Framework\TestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseSourceAttribute.cs">
+ <Link>Shared\Framework\TestCaseSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestFixtureAttribute.cs">
+ <Link>Shared\Framework\TestFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TextMessageWriter.cs">
+ <Link>Shared\Framework\TextMessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Throws.cs">
+ <Link>Shared\Framework\Throws.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
@@ -339,6 +345,8 @@
<Reference Include="System.XML" />
</ItemGroup>
<ItemGroup>
- <Content Include="XMLFile1.xml" />
+ <Content Include="..\..\..\src\framework\SyntaxElements.txt">
+ <Link>SyntaxElements.txt</Link>
+ </Content>
</ItemGroup>
</Project>
\ No newline at end of file
=== added directory 'solutions/vs2008/nunitlite'
=== added directory 'solutions/vs2008/nunitlite.tests'
=== added file 'solutions/vs2008/nunitlite.tests/nunitlite.tests.csproj'
--- solutions/vs2008/nunitlite.tests/nunitlite.tests.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2008/nunitlite.tests/nunitlite.tests.csproj 2009-09-11 21:12:38 +0000
@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{0B5B1B19-D9D1-4E9C-80EE-37D4F56282C1}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>NUnit.Framework.Tests</RootNamespace>
+ <AssemblyName>nunitlite.tests</AssemblyName>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkSubset>
+ </TargetFrameworkSubset>
+ <StartupObject>
+ </StartupObject>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;NET_2_0;CSHARP_3_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>
+ </DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NET_2_0;CSHARP_3_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\bin\Release\nunitlite.tests.XML</DocumentationFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Program.cs">
+ <Link>Program.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\AlwaysEqualComparer.cs">
+ <Link>Shared\Framework\AlwaysEqualComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFailureMessageFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFailureMessageFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayNotEqualFixture.cs">
+ <Link>Shared\Framework\ArrayNotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\CollectionAdapter.cs">
+ <Link>Shared\Framework\CollectionAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\AndTest.cs">
+ <Link>Shared\Framework\Constraints\AndTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BasicConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BinarySerializableTest.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\CollectionConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparerTests.cs">
+ <Link>Shared\Framework\Constraints\ComparerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparisonConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ConstraintTestBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintTestBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EmptyConstraintTest.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraintTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EqualTest.cs">
+ <Link>Shared\Framework\Constraints\EqualTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\FloatingPointNumericsTest.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\MsgUtilTests.cs">
+ <Link>Shared\Framework\Constraints\MsgUtilTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NotTest.cs">
+ <Link>Shared\Framework\Constraints\NotTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NumericsTest.cs">
+ <Link>Shared\Framework\Constraints\NumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\OrTest.cs">
+ <Link>Shared\Framework\Constraints\OrTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PathConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PropertyTests.cs">
+ <Link>Shared\Framework\Constraints\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\SameAsTest.cs">
+ <Link>Shared\Framework\Constraints\SameAsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\StringConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\StringConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ThrowsConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\TypeConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\XmlSerializableTest.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\MessageChecker.cs">
+ <Link>Shared\Framework\MessageChecker.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\CollectionTests.cs">
+ <Link>Shared\Framework\Syntax\CollectionTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ComparisonTests.cs">
+ <Link>Shared\Framework\Syntax\ComparisonTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\EqualityTests.cs">
+ <Link>Shared\Framework\Syntax\EqualityTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorOverrides.cs">
+ <Link>Shared\Framework\Syntax\OperatorOverrides.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorTests.cs">
+ <Link>Shared\Framework\Syntax\OperatorTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PathConstraintTests.cs">
+ <Link>Shared\Framework\Syntax\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PropertyTests.cs">
+ <Link>Shared\Framework\Syntax\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SerializableConstraints.cs">
+ <Link>Shared\Framework\Syntax\SerializableConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SimpleConstraints.cs">
+ <Link>Shared\Framework\Syntax\SimpleConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\StringConstraints.cs">
+ <Link>Shared\Framework\Syntax\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SyntaxTest.cs">
+ <Link>Shared\Framework\Syntax\SyntaxTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ThrowsTests.cs">
+ <Link>Shared\Framework\Syntax\ThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\TypeConstraints.cs">
+ <Link>Shared\Framework\Syntax\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestComparer.cs">
+ <Link>Shared\Framework\TestComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestDelegates.cs">
+ <Link>Shared\Framework\TestDelegates.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestFixtureAttributeTests.cs">
+ <Link>Shared\Framework\TestFixtureAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TextMessageWriterTests.cs">
+ <Link>Shared\Framework\TextMessageWriterTests.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\tests\TestImage1.jpg">
+ <Link>TestImage1.jpg</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestImage2.jpg">
+ <Link>TestImage2.jpg</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestText1.txt">
+ <Link>TestText1.txt</Link>
+ </Content>
+ <Content Include="..\..\..\src\tests\TestText2.txt">
+ <Link>TestText2.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\nunitlite\nunitlite.csproj">
+ <Project>{0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}</Project>
+ <Name>nunitlite</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== added directory 'solutions/vs2008/nunitlite/NUnitLite'
=== added directory 'solutions/vs2008/nunitlite/NUnitLite/Runner'
=== added file 'solutions/vs2008/nunitlite/nunit.snk'
Binary files solutions/vs2008/nunitlite/nunit.snk 1970-01-01 00:00:00 +0000 and solutions/vs2008/nunitlite/nunit.snk 2009-09-03 18:11:10 +0000 differ
=== added file 'solutions/vs2008/nunitlite/nunitlite.csproj'
--- solutions/vs2008/nunitlite/nunitlite.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2008/nunitlite/nunitlite.csproj 2009-09-08 05:53:41 +0000
@@ -0,0 +1,306 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{0BFA7F0A-BC15-40A5-863A-FA9B55AE2FD3}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>NUnit</RootNamespace>
+ <AssemblyName>nunitlite</AssemblyName>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkSubset>
+ </TargetFrameworkSubset>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;NET_2_0;CSHARP_3_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\bin\Debug\nunitlite.XML</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>..\bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NET_2_0;CSHARP_3_0;NUNITLITE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <DocumentationFile>..\bin\Release\nunitlite.XML</DocumentationFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\AssemblyInfo.cs">
+ <Link>AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Env.cs">
+ <Link>Env.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Framework\Contains.cs">
+ <Link>NUnitLite\Framework\Contains.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\ITest.cs">
+ <Link>NUnitLite\ITest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NullListener.cs">
+ <Link>NUnitLite\NullListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NUnitLiteException.cs">
+ <Link>NUnitLite\NUnitLiteException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Reflect.cs">
+ <Link>NUnitLite\Reflect.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\CommandLineOptions.cs">
+ <Link>NUnitLite\Runner\CommandLineOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ConsoleWriter.cs">
+ <Link>NUnitLite\Runner\ConsoleWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\DebugWriter.cs">
+ <Link>NUnitLite\Runner\DebugWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ResultSummary.cs">
+ <Link>NUnitLite\Runner\ResultSummary.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TcpWriter.cs">
+ <Link>NUnitLite\Runner\TcpWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestLoader.cs">
+ <Link>NUnitLite\Runner\TestLoader.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestRunner.cs">
+ <Link>NUnitLite\Runner\TestRunner.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TextUI.cs">
+ <Link>NUnitLite\Runner\TextUI.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\StackFilter.cs">
+ <Link>NUnitLite\StackFilter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestCase.cs">
+ <Link>NUnitLite\TestCase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestListener.cs">
+ <Link>NUnitLite\TestListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestResult.cs">
+ <Link>NUnitLite\TestResult.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestSuite.cs">
+ <Link>NUnitLite\TestSuite.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestCaseBuilder.cs">
+ <Link>NUnitLite\Runner\TestCaseBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestFixtureBuilder.cs">
+ <Link>NUnitLite\Runner\TestFixtureBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Assert.cs">
+ <Link>Shared\Framework\Assert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionException.cs">
+ <Link>Shared\Framework\AssertionException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionHelper.cs">
+ <Link>Shared\Framework\AssertionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\AttributeConstraints.cs">
+ <Link>Shared\Framework\Constraints\AttributeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BasicConstraints.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinaryOperations.cs">
+ <Link>Shared\Framework\Constraints\BinaryOperations.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinarySerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\CollectionConstraints.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonAdapter.cs">
+ <Link>Shared\Framework\Constraints\ComparisonAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonConstraints.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Constraint.cs">
+ <Link>Shared\Framework\Constraints\Constraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintBuilder.cs">
+ <Link>Shared\Framework\Constraints\ConstraintBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpressionBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpressionBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintFactory.cs">
+ <Link>Shared\Framework\Constraints\ConstraintFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintOperators.cs">
+ <Link>Shared\Framework\Constraints\ConstraintOperators.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ContainsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ContainsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EmptyConstraint.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualConstraint.cs">
+ <Link>Shared\Framework\Constraints\EqualConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualityAdapter.cs">
+ <Link>Shared\Framework\Constraints\EqualityAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\FloatingPointNumerics.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\IResolveConstraint.cs">
+ <Link>Shared\Framework\Constraints\IResolveConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MessageWriter.cs">
+ <Link>Shared\Framework\Constraints\MessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MsgUtils.cs">
+ <Link>Shared\Framework\Constraints\MsgUtils.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Numerics.cs">
+ <Link>Shared\Framework\Constraints\Numerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitEqualityComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitEqualityComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PathConstraints.cs">
+ <Link>Shared\Framework\Constraints\PathConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PrefixConstraints.cs">
+ <Link>Shared\Framework\Constraints\PrefixConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PropertyConstraint.cs">
+ <Link>Shared\Framework\Constraints\PropertyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\RangeConstraint.cs">
+ <Link>Shared\Framework\Constraints\RangeConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ResolvableConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ResolvableConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\SameAsConstraint.cs">
+ <Link>Shared\Framework\Constraints\SameAsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\StringConstraints.cs">
+ <Link>Shared\Framework\Constraints\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ThrowsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Tolerance.cs">
+ <Link>Shared\Framework\Constraints\Tolerance.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\TypeConstraints.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\XmlSerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\DescriptionAttribute.cs">
+ <Link>Shared\Framework\DescriptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ExpectedExceptionAttribute.cs">
+ <Link>Shared\Framework\ExpectedExceptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\GlobalSettings.cs">
+ <Link>Shared\Framework\GlobalSettings.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Has.cs">
+ <Link>Shared\Framework\Has.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IExpectException.cs">
+ <Link>Shared\Framework\IExpectException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IgnoreAttribute.cs">
+ <Link>Shared\Framework\IgnoreAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Is.cs">
+ <Link>Shared\Framework\Is.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ITestCaseData.cs">
+ <Link>Shared\Framework\ITestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ListMapper.cs">
+ <Link>Shared\Framework\ListMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\PropertyAttribute.cs">
+ <Link>Shared\Framework\PropertyAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SetUpAttribute.cs">
+ <Link>Shared\Framework\SetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SpecialValue.cs">
+ <Link>Shared\Framework\SpecialValue.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TearDownAttribute.cs">
+ <Link>Shared\Framework\TearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestAttribute.cs">
+ <Link>Shared\Framework\TestAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseAttribute.cs">
+ <Link>Shared\Framework\TestCaseAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseData.cs">
+ <Link>Shared\Framework\TestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseSourceAttribute.cs">
+ <Link>Shared\Framework\TestCaseSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestFixtureAttribute.cs">
+ <Link>Shared\Framework\TestFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TextMessageWriter.cs">
+ <Link>Shared\Framework\TextMessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Throws.cs">
+ <Link>Shared\Framework\Throws.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="nunit.snk" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\framework\SyntaxElements.txt">
+ <Link>SyntaxElements.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== added directory 'solutions/vs2008/nunitlite_CF'
=== added file 'solutions/vs2008/nunitlite_CF/nunitlite_CF.csproj'
--- solutions/vs2008/nunitlite_CF/nunitlite_CF.csproj 1970-01-01 00:00:00 +0000
+++ solutions/vs2008/nunitlite_CF/nunitlite_CF.csproj 2009-09-08 05:53:41 +0000
@@ -0,0 +1,323 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.30729</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{463FC406-30E1-496E-9222-65DDE413CC84}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>NUnitLite</RootNamespace>
+ <AssemblyName>nunitlite_CF</AssemblyName>
+ <ProjectTypeGuids>{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PlatformFamilyName>PocketPC</PlatformFamilyName>
+ <PlatformID>3C41C503-53EF-4c2a-8DD4-A8217CAD115E</PlatformID>
+ <OSVersion>4.20</OSVersion>
+ <DeployDirSuffix>nuntlite_CF</DeployDirSuffix>
+ <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+ <NativePlatformName>Pocket PC 2003</NativePlatformName>
+ <FormFactorID>
+ </FormFactorID>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;PocketPC;NETCF;NUNITLITE</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ <DocumentationFile>bin\Debug\nunitlite_CF.xml</DocumentationFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;$(PlatformFamilyName)</DefineConstants>
+ <NoStdLib>true</NoStdLib>
+ <NoConfig>true</NoConfig>
+ <ErrorReport>prompt</ErrorReport>
+ <FileAlignment>512</FileAlignment>
+ <WarningLevel>4</WarningLevel>
+ <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
+ <DocumentationFile>bin\Release\nunitlite_CF.xml</DocumentationFile>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="mscorlib" />
+ <Reference Include="System" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
+ <Link>CommonAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\AssemblyInfo.cs">
+ <Link>AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Env.cs">
+ <Link>Env.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Framework\Contains.cs">
+ <Link>NUnitLite\Framework\Contains.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\ITest.cs">
+ <Link>NUnitLite\ITest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NullListener.cs">
+ <Link>NUnitLite\NullListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\NUnitLiteException.cs">
+ <Link>NUnitLite\NUnitLiteException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Reflect.cs">
+ <Link>NUnitLite\Reflect.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\CommandLineOptions.cs">
+ <Link>NUnitLite\Runner\CommandLineOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ConsoleWriter.cs">
+ <Link>NUnitLite\Runner\ConsoleWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\DebugWriter.cs">
+ <Link>NUnitLite\Runner\DebugWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\ResultSummary.cs">
+ <Link>NUnitLite\Runner\ResultSummary.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TcpWriter.cs">
+ <Link>NUnitLite\Runner\TcpWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestCaseBuilder.cs">
+ <Link>NUnitLite\Runner\TestCaseBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestFixtureBuilder.cs">
+ <Link>NUnitLite\Runner\TestFixtureBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestLoader.cs">
+ <Link>NUnitLite\Runner\TestLoader.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TestRunner.cs">
+ <Link>NUnitLite\Runner\TestRunner.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\Runner\TextUI.cs">
+ <Link>NUnitLite\Runner\TextUI.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\StackFilter.cs">
+ <Link>NUnitLite\StackFilter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestCase.cs">
+ <Link>NUnitLite\TestCase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestListener.cs">
+ <Link>NUnitLite\TestListener.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestResult.cs">
+ <Link>NUnitLite\TestResult.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\NUnitLite\TestSuite.cs">
+ <Link>NUnitLite\TestSuite.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Assert.cs">
+ <Link>Shared\Framework\Assert.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionException.cs">
+ <Link>Shared\Framework\AssertionException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\AssertionHelper.cs">
+ <Link>Shared\Framework\AssertionHelper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\AttributeConstraints.cs">
+ <Link>Shared\Framework\Constraints\AttributeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BasicConstraints.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinaryOperations.cs">
+ <Link>Shared\Framework\Constraints\BinaryOperations.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\BinarySerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\CollectionConstraints.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonAdapter.cs">
+ <Link>Shared\Framework\Constraints\ComparisonAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ComparisonConstraints.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Constraint.cs">
+ <Link>Shared\Framework\Constraints\Constraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintBuilder.cs">
+ <Link>Shared\Framework\Constraints\ConstraintBuilder.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintExpressionBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintExpressionBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintFactory.cs">
+ <Link>Shared\Framework\Constraints\ConstraintFactory.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ConstraintOperators.cs">
+ <Link>Shared\Framework\Constraints\ConstraintOperators.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ContainsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ContainsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EmptyConstraint.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualConstraint.cs">
+ <Link>Shared\Framework\Constraints\EqualConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\EqualityAdapter.cs">
+ <Link>Shared\Framework\Constraints\EqualityAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\FloatingPointNumerics.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\IResolveConstraint.cs">
+ <Link>Shared\Framework\Constraints\IResolveConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MessageWriter.cs">
+ <Link>Shared\Framework\Constraints\MessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\MsgUtils.cs">
+ <Link>Shared\Framework\Constraints\MsgUtils.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Numerics.cs">
+ <Link>Shared\Framework\Constraints\Numerics.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\NUnitEqualityComparer.cs">
+ <Link>Shared\Framework\Constraints\NUnitEqualityComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PathConstraints.cs">
+ <Link>Shared\Framework\Constraints\PathConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PrefixConstraints.cs">
+ <Link>Shared\Framework\Constraints\PrefixConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\PropertyConstraint.cs">
+ <Link>Shared\Framework\Constraints\PropertyConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\RangeConstraint.cs">
+ <Link>Shared\Framework\Constraints\RangeConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ResolvableConstraintExpression.cs">
+ <Link>Shared\Framework\Constraints\ResolvableConstraintExpression.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\SameAsConstraint.cs">
+ <Link>Shared\Framework\Constraints\SameAsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\StringConstraints.cs">
+ <Link>Shared\Framework\Constraints\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\ThrowsConstraint.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\Tolerance.cs">
+ <Link>Shared\Framework\Constraints\Tolerance.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\TypeConstraints.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Constraints\XmlSerializableConstraint.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableConstraint.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\DescriptionAttribute.cs">
+ <Link>Shared\Framework\DescriptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ExpectedExceptionAttribute.cs">
+ <Link>Shared\Framework\ExpectedExceptionAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\GlobalSettings.cs">
+ <Link>Shared\Framework\GlobalSettings.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Has.cs">
+ <Link>Shared\Framework\Has.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IExpectException.cs">
+ <Link>Shared\Framework\IExpectException.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\IgnoreAttribute.cs">
+ <Link>Shared\Framework\IgnoreAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Is.cs">
+ <Link>Shared\Framework\Is.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ITestCaseData.cs">
+ <Link>Shared\Framework\ITestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\ListMapper.cs">
+ <Link>Shared\Framework\ListMapper.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\PropertyAttribute.cs">
+ <Link>Shared\Framework\PropertyAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SetUpAttribute.cs">
+ <Link>Shared\Framework\SetUpAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\SpecialValue.cs">
+ <Link>Shared\Framework\SpecialValue.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TearDownAttribute.cs">
+ <Link>Shared\Framework\TearDownAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestAttribute.cs">
+ <Link>Shared\Framework\TestAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseAttribute.cs">
+ <Link>Shared\Framework\TestCaseAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseData.cs">
+ <Link>Shared\Framework\TestCaseData.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestCaseSourceAttribute.cs">
+ <Link>Shared\Framework\TestCaseSourceAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TestFixtureAttribute.cs">
+ <Link>Shared\Framework\TestFixtureAttribute.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\TextMessageWriter.cs">
+ <Link>Shared\Framework\TextMessageWriter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\framework\Shared\Framework\Throws.cs">
+ <Link>Shared\Framework\Throws.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="..\..\..\src\framework\SyntaxElements.txt">
+ <Link>SyntaxElements.txt</Link>
+ </Content>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
+ <ProjectExtensions>
+ <VisualStudio>
+ <FlavorProperties GUID="{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}">
+ <HostingProcess disable="1" />
+ </FlavorProperties>
+ </VisualStudio>
+ </ProjectExtensions>
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
=== modified file 'solutions/vs2008/tests/nunit.framework.tests.csproj'
--- solutions/vs2008/tests/nunit.framework.tests.csproj 2009-09-01 22:35:53 +0000
+++ solutions/vs2008/tests/nunit.framework.tests.csproj 2009-09-11 21:12:38 +0000
@@ -56,206 +56,215 @@
<Compile Include="..\..\..\src\CommonAssemblyInfo.cs">
<Link>CommonAssemblyInfo.cs</Link>
</Compile>
- <Compile Include="..\..\..\src\tests\ArrayEqualsFailureMessageFixture.cs">
- <Link>ArrayEqualsFailureMessageFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ArrayEqualsFixture.cs">
- <Link>ArrayEqualsFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ArrayNotEqualFixture.cs">
- <Link>ArrayNotEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\AssertThrowsTests.cs">
- <Link>AssertThrowsTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\AssumeThatTests.cs">
- <Link>AssumeThatTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\CollectionAdapter.cs">
- <Link>CollectionAdapter.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\CollectionAssertTest.cs">
- <Link>CollectionAssertTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ConditionAssertTests.cs">
- <Link>ConditionAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\AfterConstraintTests.cs">
- <Link>Constraints\AfterConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\AndTest.cs">
- <Link>Constraints\AndTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\BasicConstraintTests.cs">
- <Link>Constraints\BasicConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\CollectionConstraintTests.cs">
- <Link>Constraints\CollectionConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ComparerTests.cs">
- <Link>Constraints\ComparerTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ComparisonConstraintTests.cs">
- <Link>Constraints\ComparisonConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ConstraintTestBase.cs">
- <Link>Constraints\ConstraintTestBase.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\EmptyConstraintTest.cs">
- <Link>Constraints\EmptyConstraintTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\EqualTest.cs">
- <Link>Constraints\EqualTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\FloatingPointNumericsTest.cs">
- <Link>Constraints\FloatingPointNumericsTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\MsgUtilTests.cs">
- <Link>Constraints\MsgUtilTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\NotTest.cs">
- <Link>Constraints\NotTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\NumericsTest.cs">
- <Link>Constraints\NumericsTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\OrTest.cs">
- <Link>Constraints\OrTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\PathConstraintTests.cs">
- <Link>Constraints\PathConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\PropertyTests.cs">
- <Link>Constraints\PropertyTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\SameAsTest.cs">
- <Link>Constraints\SameAsTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\SerializableConstraintTest.cs">
- <Link>Constraints\SerializableConstraintTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\StringConstraintTests.cs">
- <Link>Constraints\StringConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\ThrowsConstraintTests.cs">
- <Link>Constraints\ThrowsConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Constraints\TypeConstraintTests.cs">
- <Link>Constraints\TypeConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\DirectoryAssertTests.cs">
- <Link>DirectoryAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\EqualsFixture.cs">
- <Link>EqualsFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\FileAssertTests.cs">
- <Link>FileAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\GreaterEqualFixture.cs">
- <Link>GreaterEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\GreaterFixture.cs">
- <Link>GreaterFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\LessEqualFixture.cs">
- <Link>LessEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\LessFixture.cs">
- <Link>LessFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ListContentsTests.cs">
- <Link>ListContentsTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\MessageChecker.cs">
- <Link>MessageChecker.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\NotEqualFixture.cs">
- <Link>NotEqualFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\NotSameFixture.cs">
- <Link>NotSameFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\NullableTypesTests.cs">
- <Link>NullableTypesTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\RandomizerTests.cs">
- <Link>RandomizerTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\RangeTests.cs">
- <Link>RangeTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\SameFixture.cs">
- <Link>SameFixture.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\StringAssertTests.cs">
- <Link>StringAssertTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\AfterTests.cs">
- <Link>Syntax\AfterTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\ArbitraryConstraintMatching.cs">
- <Link>Syntax\ArbitraryConstraintMatching.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\CollectionTests.cs">
- <Link>Syntax\CollectionTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\ComparisonTests.cs">
- <Link>Syntax\ComparisonTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\EqualityTests.cs">
- <Link>Syntax\EqualityTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\InvalidCodeTests.cs">
- <Link>Syntax\InvalidCodeTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\OperatorOverrides.cs">
- <Link>Syntax\OperatorOverrides.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\OperatorTests.cs">
- <Link>Syntax\OperatorTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\PathConstraintTests.cs">
- <Link>Syntax\PathConstraintTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\PropertyTests.cs">
- <Link>Syntax\PropertyTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\SerializableConstraints.cs">
- <Link>Syntax\SerializableConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\SimpleConstraints.cs">
- <Link>Syntax\SimpleConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\StringConstraints.cs">
- <Link>Syntax\StringConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\SyntaxTest.cs">
- <Link>Syntax\SyntaxTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\TestCompiler.cs">
- <Link>Syntax\TestCompiler.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\ThrowsTests.cs">
- <Link>Syntax\ThrowsTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\Syntax\TypeConstraints.cs">
- <Link>Syntax\TypeConstraints.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TestDelegates.cs">
- <Link>TestDelegates.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TestFixtureAttributeTests.cs">
- <Link>TestFixtureAttributeTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TextMessageWriterTests.cs">
- <Link>TextMessageWriterTests.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\TypeAssertTest.cs">
- <Link>TypeAssertTest.cs</Link>
- </Compile>
- <Compile Include="..\..\..\src\tests\ValuesAttributeTests.cs">
- <Link>ValuesAttributeTests.cs</Link>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\AssertThrowsTests.cs">
+ <Link>NUnit\Framework\AssertThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\AssumeThatTests.cs">
+ <Link>NUnit\Framework\AssumeThatTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\CollectionAssertTest.cs">
+ <Link>NUnit\Framework\CollectionAssertTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\ConditionAssertTests.cs">
+ <Link>NUnit\Framework\ConditionAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Constraints\AfterConstraintTests.cs">
+ <Link>NUnit\Framework\Constraints\AfterConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\DirectoryAssertTests.cs">
+ <Link>NUnit\Framework\DirectoryAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\EqualsFixture.cs">
+ <Link>NUnit\Framework\EqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\FileAssertTests.cs">
+ <Link>NUnit\Framework\FileAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\GreaterEqualFixture.cs">
+ <Link>NUnit\Framework\GreaterEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\GreaterFixture.cs">
+ <Link>NUnit\Framework\GreaterFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\LessEqualFixture.cs">
+ <Link>NUnit\Framework\LessEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\LessFixture.cs">
+ <Link>NUnit\Framework\LessFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\ListContentsTests.cs">
+ <Link>NUnit\Framework\ListContentsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\NotEqualFixture.cs">
+ <Link>NUnit\Framework\NotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\NotSameFixture.cs">
+ <Link>NUnit\Framework\NotSameFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\NullableTypesTests.cs">
+ <Link>NUnit\Framework\NullableTypesTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\RandomizerTests.cs">
+ <Link>NUnit\Framework\RandomizerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\RangeTests.cs">
+ <Link>NUnit\Framework\RangeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\SameFixture.cs">
+ <Link>NUnit\Framework\SameFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\StringAssertTests.cs">
+ <Link>NUnit\Framework\StringAssertTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\AfterTests.cs">
+ <Link>NUnit\Framework\Syntax\AfterTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\ArbitraryConstraintMatching.cs">
+ <Link>NUnit\Framework\Syntax\ArbitraryConstraintMatching.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\InvalidCodeTests.cs">
+ <Link>NUnit\Framework\Syntax\InvalidCodeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\Syntax\TestCompiler.cs">
+ <Link>NUnit\Framework\Syntax\TestCompiler.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\TypeAssertTest.cs">
+ <Link>NUnit\Framework\TypeAssertTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\NUnit\Framework\ValuesAttributeTests.cs">
+ <Link>NUnit\Framework\ValuesAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\AlwaysEqualComparer.cs">
+ <Link>Shared\Framework\AlwaysEqualComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFailureMessageFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFailureMessageFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayEqualsFixture.cs">
+ <Link>Shared\Framework\ArrayEqualsFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\ArrayNotEqualFixture.cs">
+ <Link>Shared\Framework\ArrayNotEqualFixture.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\CollectionAdapter.cs">
+ <Link>Shared\Framework\CollectionAdapter.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\AndTest.cs">
+ <Link>Shared\Framework\Constraints\AndTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BasicConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\BasicConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\BinarySerializableTest.cs">
+ <Link>Shared\Framework\Constraints\BinarySerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\CollectionConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\CollectionConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparerTests.cs">
+ <Link>Shared\Framework\Constraints\ComparerTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ComparisonConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ComparisonConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ConstraintTestBase.cs">
+ <Link>Shared\Framework\Constraints\ConstraintTestBase.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EmptyConstraintTest.cs">
+ <Link>Shared\Framework\Constraints\EmptyConstraintTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\EqualTest.cs">
+ <Link>Shared\Framework\Constraints\EqualTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\FloatingPointNumericsTest.cs">
+ <Link>Shared\Framework\Constraints\FloatingPointNumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\MsgUtilTests.cs">
+ <Link>Shared\Framework\Constraints\MsgUtilTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NotTest.cs">
+ <Link>Shared\Framework\Constraints\NotTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\NumericsTest.cs">
+ <Link>Shared\Framework\Constraints\NumericsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\OrTest.cs">
+ <Link>Shared\Framework\Constraints\OrTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PathConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\PropertyTests.cs">
+ <Link>Shared\Framework\Constraints\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\SameAsTest.cs">
+ <Link>Shared\Framework\Constraints\SameAsTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\StringConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\StringConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\ThrowsConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\ThrowsConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\TypeConstraintTests.cs">
+ <Link>Shared\Framework\Constraints\TypeConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Constraints\XmlSerializableTest.cs">
+ <Link>Shared\Framework\Constraints\XmlSerializableTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\MessageChecker.cs">
+ <Link>Shared\Framework\MessageChecker.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\CollectionTests.cs">
+ <Link>Shared\Framework\Syntax\CollectionTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ComparisonTests.cs">
+ <Link>Shared\Framework\Syntax\ComparisonTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\EqualityTests.cs">
+ <Link>Shared\Framework\Syntax\EqualityTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorOverrides.cs">
+ <Link>Shared\Framework\Syntax\OperatorOverrides.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\OperatorTests.cs">
+ <Link>Shared\Framework\Syntax\OperatorTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PathConstraintTests.cs">
+ <Link>Shared\Framework\Syntax\PathConstraintTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\PropertyTests.cs">
+ <Link>Shared\Framework\Syntax\PropertyTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SerializableConstraints.cs">
+ <Link>Shared\Framework\Syntax\SerializableConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SimpleConstraints.cs">
+ <Link>Shared\Framework\Syntax\SimpleConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\StringConstraints.cs">
+ <Link>Shared\Framework\Syntax\StringConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\SyntaxTest.cs">
+ <Link>Shared\Framework\Syntax\SyntaxTest.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\ThrowsTests.cs">
+ <Link>Shared\Framework\Syntax\ThrowsTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\Syntax\TypeConstraints.cs">
+ <Link>Shared\Framework\Syntax\TypeConstraints.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestComparer.cs">
+ <Link>Shared\Framework\TestComparer.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestDelegates.cs">
+ <Link>Shared\Framework\TestDelegates.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TestFixtureAttributeTests.cs">
+ <Link>Shared\Framework\TestFixtureAttributeTests.cs</Link>
+ </Compile>
+ <Compile Include="..\..\..\src\tests\Shared\Framework\TextMessageWriterTests.cs">
+ <Link>Shared\Framework\TextMessageWriterTests.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
=== modified file 'src/CommonAssemblyInfo.cs'
--- src/CommonAssemblyInfo.cs 2009-08-11 21:52:42 +0000
+++ src/CommonAssemblyInfo.cs 2009-09-11 21:19:56 +0000
@@ -44,5 +44,5 @@
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
//
-[assembly: AssemblyVersion("2.9.1")]
-[assembly: AssemblyInformationalVersion("2.9.1")]
+[assembly: AssemblyVersion("2.9.2")]
+[assembly: AssemblyInformationalVersion("2.9.2")]
=== modified file 'src/framework/AssemblyInfo.cs'
--- src/framework/AssemblyInfo.cs 2009-08-11 21:52:42 +0000
+++ src/framework/AssemblyInfo.cs 2009-09-11 21:12:38 +0000
@@ -30,7 +30,8 @@
[assembly: CLSCompliant(true)]
-// We sign this way in order to compile on .NET 1.x
+#if NET_1_0 || NET_1_1
[assembly: AssemblyDelaySign(false)]
-[assembly: AssemblyKeyFile("../../nunit.snk")]
+[assembly: AssemblyKeyFile("../../../../nunit.snk")]
[assembly: AssemblyKeyName("")]
+#endif
\ No newline at end of file
=== removed directory 'src/framework/Constraints'
=== removed file 'src/framework/Constraints/SerializableConstraints.cs'
--- src/framework/Constraints/SerializableConstraints.cs 2009-07-16 20:05:38 +0000
+++ src/framework/Constraints/SerializableConstraints.cs 1970-01-01 00:00:00 +0000
@@ -1,187 +0,0 @@
-// ***********************************************************************
-// Copyright (c) 2008 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.
-// ***********************************************************************
-
-using System;
-using System.IO;
-#if !NETCF
-using System.Runtime.Serialization;
-using System.Runtime.Serialization.Formatters.Binary;
-#endif
-using System.Xml.Serialization;
-
-namespace NUnit.Framework.Constraints
-{
-#if !NETCF
- #region BinarySerializableConstraint
-
- /// <summary>
- /// BinarySerializableConstraint tests whether
- /// an object is serializable in binary format.
- /// </summary>
- public class BinarySerializableConstraint : Constraint
- {
- readonly BinaryFormatter serializer = new BinaryFormatter();
-
- /// <summary>
- /// Test whether the constraint is satisfied by a given value
- /// </summary>
- /// <param name="actual">The value to be tested</param>
- /// <returns>True for success, false for failure</returns>
- public override bool Matches(object actual)
- {
- this.actual = actual;
-
- if(actual == null)
- throw new ArgumentException();
-
- MemoryStream stream = new MemoryStream();
-
- try
- {
- serializer.Serialize(stream, actual);
-
- stream.Seek(0, SeekOrigin.Begin);
-
- object value = serializer.Deserialize(stream);
-
- return value != null;
- }
- catch (SerializationException)
- {
- return false;
- }
- }
-
- /// <summary>
- /// Write the constraint description to a MessageWriter
- /// </summary>
- /// <param name="writer">The writer on which the description is displayed</param>
- public override void WriteDescriptionTo(MessageWriter writer)
- {
- writer.Write("binary serializable");
- }
-
- /// <summary>
- /// 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.
- /// </summary>
- /// <param name="writer">The writer on which the actual value is displayed</param>
- public override void WriteActualValueTo(MessageWriter writer)
- {
- writer.Write("<{0}>", actual.GetType().Name);
- }
-
- /// <summary>
- /// Returns the string representation
- /// </summary>
- public override string ToString()
- {
- return "<binaryserializable>";
- }
- }
-
- #endregion
-#endif
-
-#if !NETCF_1_0
- #region XmlSerializableConstraint
-
- /// <summary>
- /// BinarySerializableConstraint tests whether
- /// an object is serializable in binary format.
- /// </summary>
- public class XmlSerializableConstraint : Constraint
- {
- private XmlSerializer serializer;
-
- /// <summary>
- /// Test whether the constraint is satisfied by a given value
- /// </summary>
- /// <param name="actual">The value to be tested</param>
- /// <returns>True for success, false for failure</returns>
- public override bool Matches(object actual)
- {
- this.actual = actual;
-
- if(actual == null)
- throw new ArgumentException();
-
- MemoryStream stream = new MemoryStream();
-
- try
- {
- serializer = new XmlSerializer(actual.GetType());
-
- serializer.Serialize(stream, actual);
-
- stream.Seek(0, SeekOrigin.Begin);
-
- object value = serializer.Deserialize(stream);
-
- return value != null;
- }
- catch (NotSupportedException)
- {
- return false;
- }
- catch (InvalidOperationException)
- {
- return false;
- }
- }
-
- /// <summary>
- /// Write the constraint description to a MessageWriter
- /// </summary>
- /// <param name="writer">The writer on which the description is displayed</param>
- public override void WriteDescriptionTo(MessageWriter writer)
- {
- writer.Write("xml serializable");
- }
-
- /// <summary>
- /// 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.
- /// </summary>
- /// <param name="writer">The writer on which the actual value is displayed</param>
- public override void WriteActualValueTo(MessageWriter writer)
- {
- writer.Write("<{0}>", actual.GetType().Name);
- }
-
- /// <summary>
- /// Returns the string representation of this constraint
- /// </summary>
- public override string ToString()
- {
- return "<xmlserializable>";
- }
- }
-
- #endregion
-#endif
-}
=== added file 'src/framework/Env.cs'
--- src/framework/Env.cs 1970-01-01 00:00:00 +0000
+++ src/framework/Env.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,56 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+using System;
+using System.Text;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// Env is a static class that provides some of the features of
+ /// System.Environment that are not available under all runtimes
+ /// </summary>
+ public class Env
+ {
+ // Define NewLine to be used for this system
+ // NOTE: Since this is done at compile time for .NET CF,
+ // these binaries are not yet currently portable.
+ /// <summary>
+ /// The newline sequence in the current environmemt.
+ /// </summary>
+#if PocketPC || WindowsCE || NETCF
+ public static readonly string NewLine = "\r\n";
+#else
+ public static readonly string NewLine = Environment.NewLine;
+#endif
+
+ /// <summary>
+ /// Path to the 'My Documents' folder
+ /// </summary>
+#if NETCF_1_0
+ public static string DocumentFolder = @"\My Documents";
+#else
+ public static string DocumentFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
+#endif
+ }
+}
=== removed file 'src/framework/ITestCaseData.cs'
--- src/framework/ITestCaseData.cs 2009-08-23 02:46:52 +0000
+++ src/framework/ITestCaseData.cs 1970-01-01 00:00:00 +0000
@@ -1,84 +0,0 @@
-// ***********************************************************************
-// Copyright (c) 2009 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.
-// ***********************************************************************
-
-using System;
-
-namespace NUnit.Framework
-{
- /// <summary>
- /// 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.
- /// </summary>
- public interface ITestCaseData
- {
- /// <summary>
- /// Gets the argument list to be provided to the test
- /// </summary>
- object[] Arguments { get; }
-
- /// <summary>
- /// Gets the expected result
- /// </summary>
- object Result { get; }
-
- /// <summary>
- /// Gets the expected exception Type
- /// </summary>
- Type ExpectedException { get; }
-
- /// <summary>
- /// Gets the FullName of the expected exception
- /// </summary>
- string ExpectedExceptionName { get; }
-
- /// <summary>
- /// Gets the name to be used for the test
- /// </summary>
- string TestName { get; }
-
- /// <summary>
- /// Gets the description of the test
- /// </summary>
- string Description { get; }
-
- /// <summary>
- /// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
- /// </summary>
- /// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
- bool Ignored { get; }
-
- /// <summary>
- /// Gets the ignore reason.
- /// </summary>
- /// <value>The ignore reason.</value>
- string IgnoreReason { get; }
- }
-}
=== added directory 'src/framework/NUnit'
=== added directory 'src/framework/NUnit/Framework'
=== renamed file 'src/framework/Assume.cs' => 'src/framework/NUnit/Framework/Assume.cs'
=== renamed file 'src/framework/CategoryAttribute.cs' => 'src/framework/NUnit/Framework/CategoryAttribute.cs'
=== renamed file 'src/framework/CollectionAssert.cs' => 'src/framework/NUnit/Framework/CollectionAssert.cs'
=== added directory 'src/framework/NUnit/Framework/Constraints'
=== renamed file 'src/framework/Constraints/DelayedConstraint.cs' => 'src/framework/NUnit/Framework/Constraints/DelayedConstraint.cs'
=== renamed file 'src/framework/Constraints/DirectoryConstraints.cs' => 'src/framework/NUnit/Framework/Constraints/DirectoryConstraints.cs'
=== renamed file 'src/framework/Constraints/PredicateConstraint.cs' => 'src/framework/NUnit/Framework/Constraints/PredicateConstraint.cs'
=== renamed file 'src/framework/DatapointAttributes.cs' => 'src/framework/NUnit/Framework/DatapointAttributes.cs'
=== renamed file 'src/framework/DirectoryAssert.cs' => 'src/framework/NUnit/Framework/DirectoryAssert.cs'
=== renamed file 'src/framework/ExplicitAttribute.cs' => 'src/framework/NUnit/Framework/ExplicitAttribute.cs'
=== renamed file 'src/framework/FileAssert.cs' => 'src/framework/NUnit/Framework/FileAssert.cs'
=== renamed file 'src/framework/IgnoreException.cs' => 'src/framework/NUnit/Framework/IgnoreException.cs'
--- src/framework/IgnoreException.cs 2009-07-16 19:37:36 +0000
+++ src/framework/NUnit/Framework/IgnoreException.cs 2009-09-06 20:54:07 +0000
@@ -24,8 +24,10 @@
namespace NUnit.Framework
{
using System;
+#if !NETCF
using System.Runtime.Serialization;
-
+#endif
+
/// <summary>
/// Thrown when an assertion failed.
/// </summary>
@@ -44,12 +46,13 @@
base(message, inner)
{}
+#if !NETCF
/// <summary>
/// Serialization Constructor
/// </summary>
protected IgnoreException(SerializationInfo info,
StreamingContext context) : base(info,context)
{}
-
+#endif
}
}
=== renamed file 'src/framework/IncludeExcludeAttributes.cs' => 'src/framework/NUnit/Framework/IncludeExcludeAttributes.cs'
=== renamed file 'src/framework/InconclusiveException.cs' => 'src/framework/NUnit/Framework/InconclusiveException.cs'
--- src/framework/InconclusiveException.cs 2009-07-16 19:37:36 +0000
+++ src/framework/NUnit/Framework/InconclusiveException.cs 2009-09-06 20:54:07 +0000
@@ -24,8 +24,9 @@
namespace NUnit.Framework
{
using System;
+#if !NETCF
using System.Runtime.Serialization;
-
+#endif
/// <summary>
/// Thrown when a test executes inconclusively.
/// </summary>
@@ -48,6 +49,7 @@
base(message, inner)
{ }
+#if !NETCF
/// <summary>
/// Serialization Constructor
/// </summary>
@@ -55,6 +57,6 @@
StreamingContext context)
: base(info, context)
{ }
-
+#endif
}
}
=== renamed file 'src/framework/Iz.cs' => 'src/framework/NUnit/Framework/Iz.cs'
=== renamed file 'src/framework/JoinTypeAttributes.cs' => 'src/framework/NUnit/Framework/JoinTypeAttributes.cs'
=== renamed file 'src/framework/List.cs' => 'src/framework/NUnit/Framework/List.cs'
=== renamed file 'src/framework/MaxTimeAttribute.cs' => 'src/framework/NUnit/Framework/MaxTimeAttribute.cs'
=== renamed file 'src/framework/RandomAttribute.cs' => 'src/framework/NUnit/Framework/RandomAttribute.cs'
=== renamed file 'src/framework/Randomizer.cs' => 'src/framework/NUnit/Framework/Randomizer.cs'
=== renamed file 'src/framework/RangeAttribute.cs' => 'src/framework/NUnit/Framework/RangeAttribute.cs'
=== renamed file 'src/framework/RepeatAttribute.cs' => 'src/framework/NUnit/Framework/RepeatAttribute.cs'
=== renamed file 'src/framework/RequiredAddinAttribute.cs' => 'src/framework/NUnit/Framework/RequiredAddinAttribute.cs'
=== renamed file 'src/framework/SetCultureAttribute.cs' => 'src/framework/NUnit/Framework/SetCultureAttribute.cs'
=== renamed file 'src/framework/SetUICultureAttribute.cs' => 'src/framework/NUnit/Framework/SetUICultureAttribute.cs'
=== renamed file 'src/framework/SetUpFixtureAttribute.cs' => 'src/framework/NUnit/Framework/SetUpFixtureAttribute.cs'
=== renamed file 'src/framework/StringAssert.cs' => 'src/framework/NUnit/Framework/StringAssert.cs'
=== renamed file 'src/framework/SuccessException.cs' => 'src/framework/NUnit/Framework/SuccessException.cs'
--- src/framework/SuccessException.cs 2009-07-16 19:37:36 +0000
+++ src/framework/NUnit/Framework/SuccessException.cs 2009-09-06 20:54:07 +0000
@@ -24,7 +24,9 @@
namespace NUnit.Framework
{
using System;
+#if !NETCF
using System.Runtime.Serialization;
+#endif
/// <summary>
/// Thrown when an assertion failed.
@@ -46,6 +48,7 @@
base(message, inner)
{ }
+#if !NETCF
/// <summary>
/// Serialization Constructor
/// </summary>
@@ -53,6 +56,6 @@
StreamingContext context)
: base(info, context)
{ }
-
+#endif
}
}
=== renamed file 'src/framework/SuiteAttribute.cs' => 'src/framework/NUnit/Framework/SuiteAttribute.cs'
=== renamed file 'src/framework/TestFixtureSetUpAttribute.cs' => 'src/framework/NUnit/Framework/TestFixtureSetUpAttribute.cs'
=== renamed file 'src/framework/TestFixtureTearDownAttribute.cs' => 'src/framework/NUnit/Framework/TestFixtureTearDownAttribute.cs'
=== renamed file 'src/framework/Text.cs' => 'src/framework/NUnit/Framework/Text.cs'
--- src/framework/Text.cs 2009-07-16 19:37:36 +0000
+++ src/framework/NUnit/Framework/Text.cs 2009-09-06 20:54:07 +0000
@@ -43,7 +43,7 @@
public class Text
{
#region All
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -54,11 +54,11 @@
{
get { return new ConstraintExpression().All; }
}
-
+
#endregion
-
+
#region Contains
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value contains the substring supplied as an argument.
@@ -68,11 +68,11 @@
{
return new SubstringConstraint(expected);
}
-
+
#endregion
-
+
#region DoesNotContain
-
+
/// <summary>
/// Returns a constraint that fails if the actual
/// value contains the substring supplied as an argument.
@@ -82,25 +82,11 @@
{
return new ConstraintExpression().Not.ContainsSubstring(expected);
}
-
- #endregion
-
- #region StartsWith
-
- /// <summary>
- /// Returns a constraint that succeeds if the actual
- /// value starts with the substring supplied as an argument.
- /// </summary>
- [Obsolete("Use Is.StringStarting")]
- public static StartsWithConstraint StartsWith(string expected)
- {
- return new StartsWithConstraint(expected);
- }
-
- #endregion
-
+
+ #endregion
+
#region DoesNotStartWith
-
+
/// <summary>
/// Returns a constraint that fails if the actual
/// value starts with the substring supplied as an argument.
@@ -109,11 +95,11 @@
{
return new ConstraintExpression().Not.StartsWith(expected);
}
-
+
#endregion
-
+
#region EndsWith
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value ends with the substring supplied as an argument.
@@ -123,11 +109,11 @@
{
return new EndsWithConstraint(expected);
}
-
+
#endregion
-
+
#region DoesNotEndWith
-
+
/// <summary>
/// Returns a constraint that fails if the actual
/// value ends with the substring supplied as an argument.
@@ -136,11 +122,12 @@
{
return new ConstraintExpression().Not.EndsWith(expected);
}
-
+
#endregion
-
+
#region Matches
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
@@ -150,11 +137,13 @@
{
return new RegexConstraint(pattern);
}
-
+#endif
+
#endregion
-
+
#region DoesNotMatch
-
+
+#if !NUNITLITE
/// <summary>
/// Returns a constraint that fails if the actual
/// value matches the pattern supplied as an argument.
@@ -164,8 +153,9 @@
{
return new ConstraintExpression().Not.Matches(pattern);
}
-
+#endif
+
#endregion
-
+
}
}
=== renamed file 'src/framework/TheoryAttribute.cs' => 'src/framework/NUnit/Framework/TheoryAttribute.cs'
=== renamed file 'src/framework/ThreadingAttributes.cs' => 'src/framework/NUnit/Framework/ThreadingAttributes.cs'
=== renamed file 'src/framework/ValueSourceAttribute.cs' => 'src/framework/NUnit/Framework/ValueSourceAttribute.cs'
=== renamed file 'src/framework/ValuesAttribute.cs' => 'src/framework/NUnit/Framework/ValuesAttribute.cs'
=== added directory 'src/framework/NUnitLite'
=== added directory 'src/framework/NUnitLite/Framework'
=== added file 'src/framework/NUnitLite/Framework/Contains.cs'
--- src/framework/NUnitLite/Framework/Contains.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Framework/Contains.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,38 @@
+// *****************************************************
+// Copyright 2009, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using System.Collections;
+using NUnit.Framework.Constraints;
+
+namespace NUnit.Framework
+{
+ /// <summary>
+ /// Static helper class used in the constraint-based syntax
+ /// </summary>
+ public class Contains
+ {
+ /// <summary>
+ /// Creates a new SubstringConstraint
+ /// </summary>
+ /// <param name="substring">The value of the substring</param>
+ /// <returns>A SubstringConstraint</returns>
+ public static Constraint Substring(string substring)
+ {
+ return new SubstringConstraint(substring);
+ }
+
+ /// <summary>
+ /// Creates a new CollectionContainsConstraint.
+ /// </summary>
+ /// <param name="item">The item that should be found.</param>
+ /// <returns>A new CollectionContainsConstraint</returns>
+ public static Constraint Item(object item)
+ {
+ return new CollectionContainsConstraint(item);
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/ITest.cs'
--- src/framework/NUnitLite/ITest.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/ITest.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,117 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// The RunState enum indicates whether a test
+ /// has been or can be executed.
+ /// </summary>
+ public enum RunState
+ {
+ /// <summary>
+ /// The test is not runnable
+ /// </summary>
+ NotRunnable,
+
+ /// <summary>
+ /// The test is runnable
+ /// </summary>
+ Runnable,
+
+ ///// <summary>
+ ///// The test can only be run explicitly
+ ///// </summary>
+ //Explicit,
+
+ ///// <summary>
+ ///// The test has been skipped
+ ///// </summary>
+ //Skipped,
+
+ /// <summary>
+ /// The test has been ignored
+ /// </summary>
+ Ignored
+
+ ///// <summary>
+ ///// The test has been executed
+ ///// </summary>
+ //Executed
+ }
+
+ /// <summary>
+ /// Interface representing a test
+ /// </summary>
+ public interface ITest
+ {
+ /// <summary>
+ /// Gets the name of the test.
+ /// </summary>
+ /// <value>The name.</value>
+ string Name { get; }
+
+ /// <summary>
+ /// Gets the full name of the test.
+ /// </summary>
+ /// <value>The full name.</value>
+ string FullName { get; }
+
+ /// <summary>
+ /// Gets or sets the run state of the test.
+ /// </summary>
+ /// <value>The state of the run.</value>
+ RunState RunState { get; set; }
+
+ /// <summary>
+ /// Gets or sets the ignore reason.
+ /// </summary>
+ /// <value>The ignore reason.</value>
+ string IgnoreReason { get; set; }
+
+ /// <summary>
+ /// Gets the test case count.
+ /// </summary>
+ /// <value>The test case count.</value>
+ int TestCaseCount { get; }
+
+ /// <summary>
+ /// Gets the properties of the test.
+ /// </summary>
+ /// <value>The properties dictionary.</value>
+ System.Collections.IDictionary Properties { get; }
+
+ /// <summary>
+ /// Runs this test.
+ /// </summary>
+ /// <returns>A TestResult</returns>
+ TestResult Run();
+
+ /// <summary>
+ /// Runs this test
+ /// </summary>
+ /// <param name="listener">A TestListener to handle test events</param>
+ /// <returns>A TestResult</returns>
+ TestResult Run(TestListener listener);
+ }
+}
=== added file 'src/framework/NUnitLite/NUnitLiteException.cs'
--- src/framework/NUnitLite/NUnitLiteException.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/NUnitLiteException.cs 2009-09-06 16:12:27 +0000
@@ -0,0 +1,21 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+
+namespace NUnit.Framework
+{
+ /// <summary>
+ /// This class is used to wrap other exceptions, in order
+ /// to preserve InnerException, including its stack trace
+ /// </summary>
+ //[Serializable]
+ class NUnitLiteException : Exception
+ {
+ public NUnitLiteException(string message, Exception inner)
+ : base(message, inner) { }
+ }
+}
=== added file 'src/framework/NUnitLite/NullListener.cs'
--- src/framework/NUnitLite/NullListener.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/NullListener.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,45 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+using System;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// NullListener is a TestListener that takes no action
+ /// </summary>
+ public class NullListener : TestListener
+ {
+ /// <summary>
+ /// Handles the TestStarted event.
+ /// </summary>
+ /// <param name="test">The test that just started.</param>
+ public void TestStarted(ITest test) { }
+
+ /// <summary>
+ /// Handles the TestFinished event
+ /// </summary>
+ /// <param name="result">The result of the test that just finished.</param>
+ public void TestFinished(TestResult result) { }
+ }
+}
=== added file 'src/framework/NUnitLite/Reflect.cs'
--- src/framework/NUnitLite/Reflect.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Reflect.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,232 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+using System;
+using System.Reflection;
+using NUnit.Framework;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// Static class that performs common reflection operations
+ /// </summary>
+ public class Reflect
+ {
+ #region Types
+ /// <summary>
+ /// An zero-length Type array - not provided by System.Type
+ /// for all CLR versioons we support.
+ /// </summary>
+ public static readonly Type[] EmptyTypes = new Type[0];
+
+ /// <summary>
+ /// Returns an array of types from an array of objects.
+ /// Used because the compact framework doesn't support
+ /// Type.GetTypeArray()
+ /// </summary>
+ /// <param name="objects">An array of objects</param>
+ /// <returns>An array of Types</returns>
+ public static Type[] GetTypeArray(object[] objects)
+ {
+ Type[] types = new Type[objects.Length];
+ int index = 0;
+ foreach (object o in objects)
+ types[index++] = o.GetType();
+ return types;
+ }
+ #endregion
+
+ #region Interfaces
+
+ /// <summary>
+ /// Check to see if a type implements an interface.
+ /// </summary>
+ /// <param name="type">The type to examine</param>
+ /// <param name="interfaceType">The interface type to check for</param>
+ /// <returns>True if the interface is implemented by the type</returns>
+ public static bool HasInterface(Type type, Type interfaceType)
+ {
+ // NOTE: IsAssignableForm fails so we look for the name
+ return HasInterface( type, interfaceType.FullName );
+ }
+
+ /// <summary>
+ /// Check to see if a type implements a named interface.
+ /// </summary>
+ /// <param name="fixtureType">The type to examine</param>
+ /// <param name="interfaceName">The FullName of the interface to check for</param>
+ /// <returns>True if the interface is implemented by the type</returns>
+ public static bool HasInterface(Type fixtureType, string interfaceName)
+ {
+ foreach (Type type in fixtureType.GetInterfaces())
+ if (type.FullName == interfaceName)
+ return true;
+ return false;
+ }
+ #endregion
+
+ #region Methods
+ /// <summary>
+ /// Gets the MethodInfo for a named method.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <param name="name">The methd name.</param>
+ /// <param name="argTypes">The arg types.</param>
+ /// <returns>A MethodInfo</returns>
+ public static MethodInfo GetMethod(Type type, string name, params Type[] argTypes)
+ {
+ if (argTypes == null) argTypes = Reflect.EmptyTypes;
+ return type.GetMethod(name, argTypes);
+ }
+
+ /// <summary>
+ /// Gets a method.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <param name="name">The name.</param>
+ /// <param name="flags">The flags.</param>
+ /// <param name="argTypes">The arg types.</param>
+ /// <returns></returns>
+ public static MethodInfo GetMethod(Type type, string name, BindingFlags flags, params Type[] argTypes)
+ {
+ if (argTypes == null) argTypes = Reflect.EmptyTypes;
+ return type.GetMethod(name, flags, null, argTypes, null);
+ }
+
+ /// <summary>
+ /// Invoke a method returning void on an object, converting any
+ /// TargetInvocatonException to an NUnitException.
+ /// </summary>
+ /// <param name="method">A MethodInfo for the method to be invoked</param>
+ /// <param name="fixture">The object on which to invoke the method</param>
+ /// <param name="args">Arguments to be passed to the method</param>
+ public static void InvokeMethod(MethodInfo method, object fixture, params object[] args)
+ {
+ if (method != null)
+ {
+ try
+ {
+ method.Invoke(fixture, args);
+ }
+ catch (Exception e)
+ {
+ if (e is TargetInvocationException)
+ throw new NUnitLiteException("Rethrown", e.InnerException);
+ else
+ throw new NUnitLiteException("Rethrown", e);
+ }
+ }
+ }
+ #endregion
+
+ #region Construction
+ /// <summary>
+ /// Determines whether the specified type has a constructor that takes the specified arg types.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <param name="argTypes">The arg types.</param>
+ /// <returns>
+ /// <c>true</c> if the specified type has such a constructor; otherwise, <c>false</c>.
+ /// </returns>
+ public static bool HasConstructor(Type type, params Type[] argTypes)
+ {
+ return GetConstructor(type, argTypes) != null;
+ }
+
+ /// <summary>
+ /// Gets the constructor for a type that takes the specified arg types.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <param name="argTypes">The arg types.</param>
+ /// <returns></returns>
+ public static ConstructorInfo GetConstructor(Type type, params Type[] argTypes)
+ {
+ if (argTypes == null) argTypes = Reflect.EmptyTypes;
+ return type.GetConstructor(argTypes);
+ }
+
+ /// <summary>
+ /// Constructs the specified type.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <param name="args">The args.</param>
+ /// <returns></returns>
+ public static object Construct(Type type, params object[] args)
+ {
+ Type[] argTypes;
+
+ if (args == null)
+ {
+ args = new object[0];
+ argTypes = Reflect.EmptyTypes;
+ }
+ else
+ {
+ argTypes = Reflect.GetTypeArray(args);
+ }
+
+ ConstructorInfo ctor = GetConstructor( type, argTypes );
+ return ctor.Invoke(args);
+ }
+ #endregion
+
+ #region Attributes
+ /// <summary>
+ /// Determines whether the specified member has a given attribute.
+ /// </summary>
+ /// <param name="member">The member.</param>
+ /// <param name="attr">The attribute type.</param>
+ /// <returns>
+ /// <c>true</c> if the specified member has attribute; otherwise, <c>false</c>.
+ /// </returns>
+ public static bool HasAttribute(MemberInfo member, Type attr)
+ {
+ return member.GetCustomAttributes(attr, true).Length > 0;
+ }
+
+ /// <summary>
+ /// Gets an attribute of a specified type.
+ /// </summary>
+ /// <param name="member">The member.</param>
+ /// <param name="attrType">Type of the attr.</param>
+ /// <returns></returns>
+ public static Attribute GetAttribute(MemberInfo member, Type attrType)
+ {
+ object[] attrs = member.GetCustomAttributes(attrType, false);
+ return attrs.Length == 0 ? null : attrs[0] as Attribute;
+ }
+ #endregion
+
+ #region Properties
+ /// <summary>
+ /// Gets the suite property.
+ /// </summary>
+ /// <param name="type">The type.</param>
+ /// <returns></returns>
+ public static PropertyInfo GetSuiteProperty(Type type)
+ {
+ return type.GetProperty("Suite", typeof(ITest), Reflect.EmptyTypes);
+ }
+ #endregion
+ }
+}
=== added directory 'src/framework/NUnitLite/Runner'
=== added file 'src/framework/NUnitLite/Runner/CommandLineOptions.cs'
--- src/framework/NUnitLite/Runner/CommandLineOptions.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/CommandLineOptions.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,223 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using System.Text;
+using System.Collections;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// The CommandLineOptions class parses and holds the values of
+ /// any options entered at the command line.
+ /// </summary>
+ public class CommandLineOptions
+ {
+ private string optionChars;
+
+ private bool wait = false;
+ private bool nologo = false;
+ private bool listprops = false;
+ private bool help = false;
+
+ private ArrayList tests = new ArrayList();
+
+ bool error = false;
+
+ ArrayList invalidOptions = new ArrayList();
+ ArrayList parameters = new ArrayList();
+
+ /// <summary>
+ /// Gets a value indicating whether the 'wait' option was used.
+ /// </summary>
+ public bool Wait
+ {
+ get { return wait; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the 'nologo' option was used.
+ /// </summary>
+ public bool Nologo
+ {
+ get { return nologo; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the 'listprops' option was used.
+ /// </summary>
+ public bool ListProperties
+ {
+ get { return listprops; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the 'help' option was used.
+ /// </summary>
+ public bool Help
+ {
+ get { return help; }
+ }
+
+ /// <summary>
+ /// Gets a list of all tests specified on the command line
+ /// </summary>
+ public string[] Tests
+ {
+ get { return (string[])tests.ToArray(typeof(string)); }
+ }
+
+ /// <summary>
+ /// Gets the test count
+ /// </summary>
+ public int TestCount
+ {
+ get { return tests.Count; }
+ }
+
+ /// <summary>
+ /// Construct a CommandLineOptions object using default option chars
+ /// </summary>
+ public CommandLineOptions()
+ {
+ this.optionChars = System.IO.Path.DirectorySeparatorChar == '/' ? "-" : "/-";
+ }
+
+ /// <summary>
+ /// Construct a CommandLineOptions object using specified option chars
+ /// </summary>
+ /// <param name="optionChars"></param>
+ public CommandLineOptions(string optionChars)
+ {
+ this.optionChars = optionChars;
+ }
+
+ /// <summary>
+ /// Parse command arguments and initialize option settings accordingly
+ /// </summary>
+ /// <param name="args">The argument list</param>
+ public void Parse(params string[] args)
+ {
+ foreach( string arg in args )
+ {
+ if (optionChars.IndexOf(arg[0]) >= 0 )
+ ProcessOption(arg);
+ else
+ ProcessParameter(arg);
+ }
+ }
+
+ /// <summary>
+ /// Gets the parameters provided on the commandline
+ /// </summary>
+ public string[] Parameters
+ {
+ get { return (string[])parameters.ToArray( typeof(string) ); }
+ }
+
+ private void ProcessOption(string opt)
+ {
+ int pos = opt.IndexOfAny( new char[] { ':', '=' } );
+ string val = string.Empty;
+
+ if (pos >= 0)
+ {
+ val = opt.Substring(pos + 1);
+ opt = opt.Substring(0, pos);
+ }
+
+ switch (opt.Substring(1))
+ {
+ case "wait":
+ wait = true;
+ break;
+ case "nologo":
+ nologo = true;
+ break;
+ case "help":
+ help = true;
+ break;
+ case "props":
+ listprops = true;
+ break;
+ case "test":
+ tests.Add(val);
+ break;
+ default:
+ error = true;
+ invalidOptions.Add(opt);
+ break;
+ }
+ }
+
+ private void ProcessParameter(string param)
+ {
+ parameters.Add(param);
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether there was an error in parsing the options.
+ /// </summary>
+ /// <value><c>true</c> if error; otherwise, <c>false</c>.</value>
+ public bool Error
+ {
+ get { return error; }
+ }
+
+ /// <summary>
+ /// Gets the error message.
+ /// </summary>
+ /// <value>The error message.</value>
+ public string ErrorMessage
+ {
+ get
+ {
+ StringBuilder sb = new StringBuilder();
+ foreach (string opt in invalidOptions)
+ sb.Append( "Invalid option: " + opt + Env.NewLine );
+ return sb.ToString();
+ }
+ }
+
+ /// <summary>
+ /// Gets the help text.
+ /// </summary>
+ /// <value>The help text.</value>
+ public string HelpText
+ {
+ get
+ {
+ StringBuilder sb = new StringBuilder();
+ string NL = Env.NewLine;
+
+#if PocketPC || WindowsCE || NETCF
+ string name = "NUnitLite";
+#else
+ string name = System.Reflection.Assembly.GetEntryAssembly().GetName().Name;
+#endif
+
+ sb.Append( NL + name + " [assemblies] [options]" + NL + NL );
+ sb.Append(" Runs a set of NUnitLite tests from the console." + NL + NL );
+ sb.Append("You may specify one or more test assemblies by name, without a path or" + NL);
+ sb.Append("extension. They must be in the same in the same directory as the exe + NL");
+ sb.Append("or on the probing path. If no assemblies are provided, tests in the + NL");
+ sb.Append("executing assembly itself are run. + NL + NL");
+ sb.Append("Options: + NL");
+ sb.Append(" -test:testname Provides the name of a test to run. This option may be + NL");
+ sb.Append(" repeated. If no test names are given, all tests are run. + NL + NL");
+ sb.Append(" -help Displays this help + NL + NL");
+ sb.Append(" -nologo Suppresses display of the initial message + NL + NL");
+ sb.Append(" -wait Waits for a key press before exiting + NL + NL");
+ if (System.IO.Path.DirectorySeparatorChar != '/')
+ sb.Append("On Windows, options may be prefixed by a '/' character if desired + NL + NL");
+ sb.Append("Options that take values may use an equal sign or a colon + NL");
+ sb.Append("to separate the option from its value. + NL + NL");
+
+ return sb.ToString();
+ }
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/ConsoleWriter.cs'
--- src/framework/NUnitLite/Runner/ConsoleWriter.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/ConsoleWriter.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,86 @@
+using System;
+using System.IO;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// Provide an alternative to Console.Out for
+ /// version 1.0 of the compact framework.
+ /// </summary>
+ public class ConsoleWriter : TextWriter
+ {
+ private static TextWriter writer;
+
+ /// <summary>
+ /// Gets the underlying TextWriter, creating it if it does not already exist.
+ /// </summary>
+ /// <value>The underlying TextWriter.</value>
+ public static TextWriter Out
+ {
+ get
+ {
+ if ( writer == null )
+ writer = new ConsoleWriter();
+
+ return writer;
+ }
+ }
+
+ /// <summary>
+ /// Writes a character to the text stream.
+ /// </summary>
+ /// <param name="value">The character to write to the text stream.</param>
+ /// <exception cref="T:System.ObjectDisposedException">
+ /// The <see cref="T:System.IO.TextWriter"/> is closed.
+ /// </exception>
+ /// <exception cref="T:System.IO.IOException">
+ /// An I/O error occurs.
+ /// </exception>
+ public override void Write(char value)
+ {
+ Console.Write(value);
+ }
+
+ /// <summary>
+ /// Writes a string to the text stream.
+ /// </summary>
+ /// <param name="value">The string to write.</param>
+ /// <exception cref="T:System.ObjectDisposedException">
+ /// The <see cref="T:System.IO.TextWriter"/> is closed.
+ /// </exception>
+ /// <exception cref="T:System.IO.IOException">
+ /// An I/O error occurs.
+ /// </exception>
+ public override void Write(string value)
+ {
+ Console.Write(value);
+ }
+
+ /// <summary>
+ /// Writes a string followed by a line terminator to the text stream.
+ /// </summary>
+ /// <param name="value">The string to write. If <paramref name="value"/> is null, only the line termination characters are written.</param>
+ /// <exception cref="T:System.ObjectDisposedException">
+ /// The <see cref="T:System.IO.TextWriter"/> is closed.
+ /// </exception>
+ /// <exception cref="T:System.IO.IOException">
+ /// An I/O error occurs.
+ /// </exception>
+ public override void WriteLine(string value)
+ {
+ Console.WriteLine(value);
+ }
+
+ /// <summary>
+ /// When overridden in a derived class, returns the <see cref="T:System.Text.Encoding"/> in which the output is written.
+ /// </summary>
+ /// <value></value>
+ /// <returns>
+ /// The Encoding in which the output is written.
+ /// </returns>
+ public override System.Text.Encoding Encoding
+ {
+ get { return System.Text.Encoding.Default; }
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/DebugWriter.cs'
--- src/framework/NUnitLite/Runner/DebugWriter.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/DebugWriter.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,88 @@
+using System;
+using System.Diagnostics;
+using System.IO;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// DebugWriter is a TextWriter that sends it's
+ /// output to Debug. We don't use Trace because
+ /// writing to it is not supported in CF.
+ /// </summary>
+ public class DebugWriter : TextWriter
+ {
+ private static TextWriter writer;
+
+ /// <summary>
+ /// Singleon instance of a DebugWriter.
+ /// </summary>
+ /// <value>The DebugWriter singleton.</value>
+ public static TextWriter Out
+ {
+ get
+ {
+ if (writer == null)
+ writer = new DebugWriter();
+
+ return writer;
+ }
+ }
+
+ /// <summary>
+ /// Writes a character to the text stream.
+ /// </summary>
+ /// <param name="value">The character to write to the text stream.</param>
+ /// <exception cref="T:System.ObjectDisposedException">
+ /// The <see cref="T:System.IO.TextWriter"/> is closed.
+ /// </exception>
+ /// <exception cref="T:System.IO.IOException">
+ /// An I/O error occurs.
+ /// </exception>
+ public override void Write(char value)
+ {
+ Debug.Write(value);
+ }
+
+ /// <summary>
+ /// Writes a string to the text stream.
+ /// </summary>
+ /// <param name="value">The string to write.</param>
+ /// <exception cref="T:System.ObjectDisposedException">
+ /// The <see cref="T:System.IO.TextWriter"/> is closed.
+ /// </exception>
+ /// <exception cref="T:System.IO.IOException">
+ /// An I/O error occurs.
+ /// </exception>
+ public override void Write(string value)
+ {
+ Debug.Write(value);
+ }
+
+ /// <summary>
+ /// Writes a string followed by a line terminator to the text stream.
+ /// </summary>
+ /// <param name="value">The string to write. If <paramref name="value"/> is null, only the line termination characters are written.</param>
+ /// <exception cref="T:System.ObjectDisposedException">
+ /// The <see cref="T:System.IO.TextWriter"/> is closed.
+ /// </exception>
+ /// <exception cref="T:System.IO.IOException">
+ /// An I/O error occurs.
+ /// </exception>
+ public override void WriteLine(string value)
+ {
+ Debug.WriteLine(value);
+ }
+
+ /// <summary>
+ /// When overridden in a derived class, returns the <see cref="T:System.Text.Encoding"/> in which the output is written.
+ /// </summary>
+ /// <value></value>
+ /// <returns>
+ /// The Encoding in which the output is written.
+ /// </returns>
+ public override System.Text.Encoding Encoding
+ {
+ get { return System.Text.Encoding.Default; }
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/ResultSummary.cs'
--- src/framework/NUnitLite/Runner/ResultSummary.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/ResultSummary.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,95 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using NUnit.Framework;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// Helper class used to summarize the result of a test run
+ /// </summary>
+ public class ResultSummary
+ {
+ private int testCount;
+ private int errorCount;
+ private int failureCount;
+ private int notRunCount;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="ResultSummary"/> class.
+ /// </summary>
+ /// <param name="result">The result.</param>
+ public ResultSummary(TestResult result)
+ {
+ Visit(result);
+ }
+
+ /// <summary>
+ /// Gets the test count.
+ /// </summary>
+ /// <value>The test count.</value>
+ public int TestCount
+ {
+ get { return testCount; }
+ }
+
+ /// <summary>
+ /// Gets the error count.
+ /// </summary>
+ /// <value>The error count.</value>
+ public int ErrorCount
+ {
+ get { return errorCount; }
+ }
+
+ /// <summary>
+ /// Gets the failure count.
+ /// </summary>
+ /// <value>The failure count.</value>
+ public int FailureCount
+ {
+ get { return failureCount; }
+ }
+
+ /// <summary>
+ /// Gets the not run count.
+ /// </summary>
+ /// <value>The not run count.</value>
+ public int NotRunCount
+ {
+ get { return notRunCount; }
+ }
+
+ private void Visit(TestResult result)
+ {
+ if (result.Test is TestSuite)
+ {
+ if (result.Results != null)
+ foreach (TestResult r in result.Results)
+ Visit(r);
+ return;
+ }
+
+ // We only count non-suites
+ testCount++;
+ switch (result.ResultState)
+ {
+ case ResultState.NotRun:
+ notRunCount++;
+ break;
+ case ResultState.Error:
+ errorCount++;
+ break;
+ case ResultState.Failure:
+ failureCount++;
+ break;
+ default:
+ break;
+ }
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/TcpWriter.cs'
--- src/framework/NUnitLite/Runner/TcpWriter.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/TcpWriter.cs 2009-09-06 16:12:27 +0000
@@ -0,0 +1,50 @@
+using System;
+using System.IO;
+using System.Net.Sockets;
+using System.Text;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// Redirects output to a Tcp connection
+ /// </summary>
+ class TcpWriter : TextWriter
+ {
+ private string hostName;
+ private int port;
+
+ private TcpClient client;
+ private NetworkStream stream;
+ private StreamWriter writer;
+
+ public TcpWriter(string hostName, int port)
+ {
+ this.hostName = hostName;
+ this.port = port;
+ this.client = new TcpClient(hostName, port);
+ this.stream = client.GetStream();
+ this.writer = new StreamWriter(stream);
+ }
+
+ public override void Write(char value)
+ {
+ writer.Write(value);
+ }
+
+ public override void Write(string value)
+ {
+ writer.Write(value);
+ }
+
+ public override void WriteLine(string value)
+ {
+ writer.WriteLine(value);
+ writer.Flush();
+ }
+
+ public override System.Text.Encoding Encoding
+ {
+ get { return System.Text.Encoding.Default; }
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/TestCaseBuilder.cs'
--- src/framework/NUnitLite/Runner/TestCaseBuilder.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/TestCaseBuilder.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,104 @@
+using System;
+using System.Collections;
+using System.Reflection;
+using NUnit.Framework;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// Static class used to build test cases.
+ /// </summary>
+ public class TestCaseBuilder
+ {
+ /// <summary>
+ /// Determines whether the specified method is a test method.
+ /// </summary>
+ /// <param name="method">The method to examine.</param>
+ /// <returns>
+ /// <c>true</c> if the specified method is a test method; otherwise, <c>false</c>.
+ /// </returns>
+ public static bool IsTestMethod(MethodInfo method)
+ {
+ return Reflect.HasAttribute(method, typeof(TestAttribute))
+ || Reflect.HasAttribute(method, typeof(TestCaseAttribute))
+ || Reflect.HasAttribute(method, typeof(TestCaseSourceAttribute));
+ }
+
+ /// <summary>
+ /// Builds a test from a specified method
+ /// </summary>
+ /// <param name="method">The method.</param>
+ /// <returns></returns>
+ public static ITest BuildFrom(MethodInfo method)
+ {
+ IList testdata = GetTestCaseData(method);
+
+ if (testdata.Count == 0)
+ return new TestCase(method);
+
+ TestSuite testcases = new TestSuite(method.Name);
+
+ foreach (object[] args in testdata)
+ testcases.AddTest(new TestCase(method, args));
+ return testcases;
+ }
+
+ private static IList GetTestCaseData(MethodInfo method)
+ {
+ ArrayList data = new ArrayList();
+
+ object[] attrs = method.GetCustomAttributes(typeof(TestCaseAttribute), false);
+ foreach (TestCaseAttribute attr in attrs)
+ data.Add(attr.Arguments);
+
+ attrs = method.GetCustomAttributes(typeof(TestCaseSourceAttribute), false);
+ foreach (TestCaseSourceAttribute attr in attrs)
+ {
+ string sourceName = attr.SourceName;
+ Type sourceType = attr.SourceType;
+ if (sourceType == null)
+ sourceType = method.ReflectedType;
+
+ IEnumerable source = null;
+ MemberInfo[] members = sourceType.GetMember(sourceName,
+ BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance);
+ if (members.Length == 1)
+ {
+ MemberInfo member = members[0];
+ object sourceobject = Reflect.Construct(sourceType);
+ switch (member.MemberType)
+ {
+ case MemberTypes.Field:
+ FieldInfo field = member as FieldInfo;
+ source = (IEnumerable)field.GetValue(sourceobject);
+ break;
+ case MemberTypes.Property:
+ PropertyInfo property = member as PropertyInfo;
+ source = (IEnumerable)property.GetValue(sourceobject, null);
+ break;
+ case MemberTypes.Method:
+ MethodInfo m = member as MethodInfo;
+ source = (IEnumerable)m.Invoke(sourceobject, null);
+ break;
+ }
+
+ int nparms = method.GetParameters().Length;
+
+ foreach (object obj in source)
+ if (obj is TestCaseData)
+ data.Add(((TestCaseData)obj).Arguments);
+ else
+ {
+ object[] array = obj as object[];
+ if (array != null && array.Length == nparms)
+ data.Add(obj);
+ else
+ data.Add(new object[] { obj });
+ }
+ }
+ }
+
+ return data;
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/TestFixtureBuilder.cs'
--- src/framework/NUnitLite/Runner/TestFixtureBuilder.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/TestFixtureBuilder.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,78 @@
+using System;
+using System.Collections;
+using System.Reflection;
+using NUnit.Framework;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// Static class used to create test fixtures from Types
+ /// </summary>
+ public class TestFixtureBuilder
+ {
+ /// <summary>
+ /// Determines whether this instance can build a fixture from the specified type.
+ /// </summary>
+ /// <param name="type">The type to use as a fixture</param>
+ /// <returns>
+ /// <c>true</c> if this instance can build from the specified type; otherwise, <c>false</c>.
+ /// </returns>
+ public static bool CanBuildFrom(Type type)
+ {
+ if (Reflect.HasAttribute(type, typeof(TestFixtureAttribute)))
+ return true;
+
+ if (!type.IsPublic && !type.IsNestedPublic)
+ return false;
+
+ if (type.IsAbstract && !type.IsSealed)
+ return false;
+
+ foreach (MethodInfo method in type.GetMethods())
+ {
+ if (Reflect.HasAttribute(method, typeof(TestAttribute)) ||
+ Reflect.HasAttribute(method, typeof(TestCaseAttribute)))
+ return true;
+ }
+
+ return false;
+ }
+
+ /// <summary>
+ /// Builds a fixture from the specified Type.
+ /// </summary>
+ /// <param name="type">The type to use as a fixture.</param>
+ /// <returns></returns>
+ public static TestSuite BuildFrom(Type type)
+ {
+ TestSuite suite = new TestSuite(type);
+
+ object[] attrs = type.GetCustomAttributes( typeof(PropertyAttribute), true);
+ foreach (PropertyAttribute attr in attrs)
+ foreach( DictionaryEntry entry in attr.Properties )
+ suite.Properties[entry.Key] = entry.Value;
+
+ IgnoreAttribute ignore = (IgnoreAttribute)Reflect.GetAttribute(type, typeof(IgnoreAttribute));
+ if (ignore != null)
+ {
+ suite.RunState = RunState.Ignored;
+ suite.IgnoreReason = ignore.Reason;
+ }
+
+ if (!Reflect.HasConstructor(type))
+ {
+ suite.RunState = RunState.NotRunnable;
+ suite.IgnoreReason = string.Format("Class {0} has no default constructor", type.Name);
+ return suite;
+ }
+
+ foreach (MethodInfo method in type.GetMethods())
+ {
+ if (TestCaseBuilder.IsTestMethod(method))
+ suite.AddTest(TestCaseBuilder.BuildFrom(method));
+ }
+
+ return suite;
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/TestLoader.cs'
--- src/framework/NUnitLite/Runner/TestLoader.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/TestLoader.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,98 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using System.Reflection;
+using NUnit.Framework;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// Static class used to load tests from an assembly
+ /// </summary>
+ public class TestLoader
+ {
+ /// <summary>
+ /// Loads all the test fixtures in an assembly
+ /// </summary>
+ /// <param name="assembly">The assembly to be loaded</param>
+ /// <returns>A Test containing all fixtures found</returns>
+ public static ITest Load(Assembly assembly)
+ {
+ TestSuite suite = new TestSuite(assembly.GetName().Name);
+
+ foreach (Type type in assembly.GetTypes())
+ {
+ if (TestFixtureBuilder.CanBuildFrom(type))
+ suite.AddTest(TestFixtureBuilder.BuildFrom(type));
+ }
+
+ return suite;
+ }
+
+ /// <summary>
+ /// Load a named fixture class from an assembly
+ /// </summary>
+ /// <param name="assembly">The assembly</param>
+ /// <param name="className">The name of the test fixture class</param>
+ /// <returns>A test representing the named fixture</returns>
+ public static ITest Load(Assembly assembly, string className)
+ {
+ Type type = assembly.GetType(className);
+ if (type == null && className.IndexOf(',') == -1)
+ type = Type.GetType(className + "," + assembly.GetName().Name);
+
+ if (type == null)
+ throw new TestRunnerException("Unable to load class " + className);
+
+ return Load(type);
+ }
+
+ /// <summary>
+ /// Loads a test suite containing multiple tests from an assembly
+ /// </summary>
+ /// <param name="assembly">The assembly containing the tests</param>
+ /// <param name="tests">String array containing the names of the test classes to load</param>
+ /// <returns>A suite containing all the tests</returns>
+ public static ITest Load(Assembly assembly, string[] tests)
+ {
+ TestSuite suite = new TestSuite("Test Fixtures");
+ foreach (string name in tests)
+ suite.AddTest(TestLoader.Load(assembly, name));
+
+ return suite;
+ }
+
+ /// <summary>
+ /// Loads a type as a test using either the test suite
+ /// mechansm or the fixture mechanism.
+ /// </summary>
+ /// <param name="type">The type to be loaded</param>
+ /// <returns>A test constructed on that type</returns>
+ public static ITest Load(Type type)
+ {
+ ITest test = TestLoader.LoadAsSuite(type);
+ if (test == null)
+ test = new TestSuite(type);
+
+ return test;
+ }
+
+ /// <summary>
+ /// Loads a type as a suite if possible
+ /// </summary>
+ /// <param name="type">The type to load</param>
+ /// <returns>A test constructed from the type</returns>
+ public static ITest LoadAsSuite(Type type)
+ {
+ PropertyInfo suiteProperty = Reflect.GetSuiteProperty(type);
+ if (suiteProperty != null)
+ return (ITest)suiteProperty.GetValue(null, Reflect.EmptyTypes);
+
+ return null;
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/TestRunner.cs'
--- src/framework/NUnitLite/Runner/TestRunner.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/TestRunner.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,97 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using System.IO;
+using System.Reflection;
+using System.Collections;
+using NUnit.Framework;
+
+namespace NUnitLite.Runner
+{
+ //[Serializable]
+ class TestRunnerException : Exception
+ {
+ public TestRunnerException(string message) : base(message) { }
+ }
+
+ /// <summary>
+ /// The TestRunner class knows how to execute tests
+ /// </summary>
+ public class TestRunner : TestListener
+ {
+ private IList listeners = new ArrayList();
+
+ /// <summary>
+ /// Runs all tests in the specified assembly.
+ /// </summary>
+ /// <param name="assembly">The assembly for which tests are to be run.</param>
+ /// <returns>TestResult representing the result of the run</returns>
+ public virtual TestResult Run(Assembly assembly)
+ {
+ return Run( TestLoader.Load(assembly) );
+ }
+
+ /// <summary>
+ /// Runs a set of tests specified by name
+ /// </summary>
+ /// <param name="assembly">The assembly containing the tests</param>
+ /// <param name="tests">Array of test names to be run</param>
+ /// <returns>TestResult representing the result of the run</returns>
+ public virtual TestResult Run(Assembly assembly, string[] tests)
+ {
+ return Run( TestLoader.Load( assembly, tests ) );
+ }
+
+
+ /// <summary>
+ /// Runs the specified test.
+ /// </summary>
+ /// <param name="test">The test.</param>
+ public virtual TestResult Run(ITest test)
+ {
+ return test.Run(this);
+ }
+
+ /// <summary>
+ /// Adds a listener to the TestRunner.
+ /// </summary>
+ /// <param name="listener">The listener.</param>
+ public void AddListener(TestListener listener)
+ {
+ listeners.Add(listener);
+ }
+
+ /// <summary>
+ /// Removes a listener from the TestRunner.
+ /// </summary>
+ /// <param name="listener">The listener.</param>
+ public void RemoveListener(TestListener listener)
+ {
+ listeners.Remove(listener);
+ }
+
+ /// <summary>
+ /// Forwards the TestStarted event to all listeners.
+ /// </summary>
+ /// <param name="test">The test that just started.</param>
+ public void TestStarted(ITest test)
+ {
+ foreach (TestListener listener in listeners)
+ listener.TestStarted(test);
+ }
+
+ /// <summary>
+ /// Forwards the TestFinished event to all listeners.
+ /// </summary>
+ /// <param name="result">The result of the test that just finished.</param>
+ public void TestFinished(TestResult result)
+ {
+ foreach (TestListener listener in listeners)
+ listener.TestFinished(result);
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/Runner/TextUI.cs'
--- src/framework/NUnitLite/Runner/TextUI.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/Runner/TextUI.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,313 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using System.IO;
+using System.Collections;
+using System.Reflection;
+using NUnit.Framework;
+
+namespace NUnitLite.Runner
+{
+ /// <summary>
+ /// A version of TextUI that outputs to the console.
+ /// If you use it on a device without a console like
+ /// PocketPC or SmartPhone you won't see anything!
+ ///
+ /// Call it from your Main like this:
+ /// new ConsoleUI().Execute(args);
+ /// </summary>
+ public class ConsoleUI : TextUI
+ {
+ /// <summary>
+ /// Construct an instance of ConsoleUI
+ /// </summary>
+#if NETCF_1_0
+ public ConsoleUI() : base(ConsoleWriter.Out) { }
+#else
+ public ConsoleUI() : base(Console.Out) { }
+#endif
+ }
+
+ /// <summary>
+ /// A version of TextUI that writes to a file.
+ ///
+ /// Call it from your Main like this:
+ /// new FileUI(filePath).Execute(args);
+ /// </summary>
+ public class FileUI : TextUI
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="FileUI"/> class.
+ /// </summary>
+ /// <param name="path">The path.</param>
+ public FileUI(string path) : base(new StreamWriter(path)) { }
+ }
+
+ /// <summary>
+ /// A version of TextUI that displays to debug.
+ ///
+ /// Call it from your Main like this:
+ /// new DebugUI().Execute(args);
+ /// </summary>
+ public class DebugUI : TextUI
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="DebugUI"/> class.
+ /// </summary>
+ public DebugUI() : base(DebugWriter.Out) { }
+ }
+
+ /// <summary>
+ /// A version of TextUI that writes to a TcpWriter
+ /// </summary>
+ public class TcpUI : TextUI
+ {
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TcpUI"/> class.
+ /// </summary>
+ /// <param name="hostName">Name of the host.</param>
+ /// <param name="port">The port.</param>
+ public TcpUI(string hostName, int port) : base( new TcpWriter(hostName, port) ) { }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TcpUI"/> class.
+ /// </summary>
+ /// <param name="hostName">Name of the host.</param>
+ public TcpUI(string hostName) : this(hostName, 9000) { }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TcpUI"/> class.
+ /// </summary>
+ public TcpUI() : this("localhost", 9000) { }
+ }
+
+ /// <summary>
+ /// TextUI is a general purpose class that runs tests and
+ /// outputs to a TextWriter.
+ ///
+ /// Call it from your Main like this:
+ /// new TextUI(textWriter).Execute(args);
+ /// </summary>
+ public class TextUI
+ {
+ private CommandLineOptions options;
+ private int reportCount = 0;
+
+ private ArrayList assemblies = new ArrayList();
+
+ private TextWriter writer;
+
+ private TestRunner runner = new TestRunner();
+
+ #region Constructors
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TextUI"/> class.
+ /// </summary>
+ /// <param name="writer">The TextWriter to use.</param>
+ public TextUI(TextWriter writer)
+ {
+ this.writer = writer;
+ }
+ #endregion
+
+ #region Public Methods
+ /// <summary>
+ /// Execute a test run based on the aruments passed
+ /// from Main.
+ /// </summary>
+ /// <param name="args">An array of arguments</param>
+ public void Execute(string[] args)
+ {
+ // NOTE: This must be directly called from the
+ // test assembly in order for the mechanism to work.
+ Assembly callingAssembly = Assembly.GetCallingAssembly();
+
+ this.options = ProcessArguments( args );
+
+ if (!options.Help && !options.Error)
+ {
+ if (options.Wait && !(this is ConsoleUI))
+ writer.WriteLine("Ignoring /wait option - only valid for Console");
+
+ try
+ {
+ foreach (string name in options.Parameters)
+ assemblies.Add(Assembly.Load(name));
+
+ if (assemblies.Count == 0)
+ assemblies.Add(callingAssembly);
+
+ foreach (Assembly assembly in assemblies)
+ {
+ ITest suite = options.TestCount == 0
+ ? TestLoader.Load(assembly)
+ : TestLoader.Load(assembly, options.Tests);
+
+ ReportResults( runner.Run(suite) );
+ }
+ }
+ catch (TestRunnerException ex)
+ {
+ writer.WriteLine(ex.Message);
+ }
+ catch (FileNotFoundException ex)
+ {
+ writer.WriteLine(ex.Message);
+ }
+ catch (Exception ex)
+ {
+ writer.WriteLine(ex.ToString());
+ }
+ finally
+ {
+ if (options.Wait && this is ConsoleUI)
+ {
+ Console.WriteLine("Press Enter key to continue . . .");
+ Console.ReadLine();
+ }
+ }
+ }
+ }
+
+ /// <summary>
+ /// Runs all tests in the specified assembly.
+ /// </summary>
+ /// <param name="assembly">The assembly.</param>
+ public void Run(Assembly assembly)
+ {
+ ReportResults( runner.Run(assembly) );
+ }
+
+ /// <summary>
+ /// Runs selected tests in the specified assembly.
+ /// </summary>
+ /// <param name="assembly">The assembly.</param>
+ /// <param name="tests">The tests.</param>
+ public void Run(Assembly assembly, string[] tests)
+ {
+ ReportResults( runner.Run(assembly, tests) );
+ }
+
+ /// <summary>
+ /// Reports the results.
+ /// </summary>
+ /// <param name="result">The result.</param>
+ private void ReportResults( TestResult result )
+ {
+ ResultSummary summary = new ResultSummary(result);
+
+ writer.WriteLine("{0} Tests : {1} Errors, {2} Failures, {3} Not Run",
+ summary.TestCount, summary.ErrorCount, summary.FailureCount, summary.NotRunCount);
+
+ if (summary.ErrorCount + summary.FailureCount > 0)
+ PrintErrorReport(result);
+
+ if (summary.NotRunCount > 0)
+ PrintNotRunReport(result);
+ }
+ #endregion
+
+ #region Helper Methods
+ private CommandLineOptions ProcessArguments(string[] args)
+ {
+ this.options = new CommandLineOptions();
+ options.Parse(args);
+
+ if (!options.Nologo)
+ WriteCopyright();
+
+ if (options.Help)
+ writer.Write(options.HelpText);
+ else if (options.Error)
+ writer.WriteLine(options.ErrorMessage);
+
+ return options;
+ }
+
+ private void WriteCopyright()
+ {
+ Assembly executingAssembly = Assembly.GetExecutingAssembly();
+ System.Version version = executingAssembly.GetName().Version;
+
+#if NETCF_1_0
+ writer.WriteLine("NUnitLite version {0}", version.ToString() );
+ writer.WriteLine("Copyright 2007, Charlie Poole");
+#else
+ object[] objectAttrs = executingAssembly.GetCustomAttributes(typeof(AssemblyProductAttribute), false);
+ AssemblyProductAttribute productAttr = (AssemblyProductAttribute)objectAttrs[0];
+
+ objectAttrs = executingAssembly.GetCustomAttributes(typeof(AssemblyCopyrightAttribute), false);
+ AssemblyCopyrightAttribute copyrightAttr = (AssemblyCopyrightAttribute)objectAttrs[0];
+
+ writer.WriteLine(String.Format("{0} version {1}", productAttr.Product, version.ToString(3)));
+ writer.WriteLine(copyrightAttr.Copyright);
+#endif
+ writer.WriteLine();
+
+ string clrPlatform = Type.GetType("Mono.Runtime", false) == null ? ".NET" : "Mono";
+ writer.WriteLine("Runtime Environment -");
+ writer.WriteLine(" OS Version: {0}", Environment.OSVersion);
+ writer.WriteLine(" {0} Version: {1}", clrPlatform, Environment.Version);
+ writer.WriteLine();
+ }
+
+ private void PrintErrorReport(TestResult result)
+ {
+ reportCount = 0;
+ writer.WriteLine();
+ writer.WriteLine("Errors and Failures:");
+ PrintErrorResults(result);
+ }
+
+ private void PrintErrorResults(TestResult result)
+ {
+ if (result.Results.Count > 0)
+ foreach (TestResult r in result.Results)
+ PrintErrorResults(r);
+ else if (result.IsError || result.IsFailure)
+ {
+ writer.WriteLine();
+ writer.WriteLine("{0}) {1} ({2})", ++reportCount, result.Test.Name, result.Test.FullName);
+ if (options.ListProperties)
+ PrintTestProperties(result.Test);
+ writer.WriteLine(result.Message);
+#if !NETCF_1_0
+ writer.WriteLine(result.StackTrace);
+#endif
+ }
+ }
+
+ private void PrintNotRunReport(TestResult result)
+ {
+ reportCount = 0;
+ writer.WriteLine();
+ writer.WriteLine("Errors and Failures:");
+ PrintNotRunResults(result);
+ }
+
+ private void PrintNotRunResults(TestResult result)
+ {
+ if (result.Results != null)
+ foreach (TestResult r in result.Results)
+ PrintNotRunResults(r);
+ else if (result.ResultState == ResultState.NotRun)
+ {
+ writer.WriteLine();
+ writer.WriteLine("{0}) {1} ({2}) : {3}", ++reportCount, result.Test.Name, result.Test.FullName, result.Message);
+ if (options.ListProperties)
+ PrintTestProperties(result.Test);
+ }
+ }
+
+ private void PrintTestProperties(ITest test)
+ {
+ foreach (DictionaryEntry entry in test.Properties)
+ writer.WriteLine(" {0}: {1}", entry.Key, entry.Value);
+ }
+ #endregion
+ }
+}
=== added file 'src/framework/NUnitLite/StackFilter.cs'
--- src/framework/NUnitLite/StackFilter.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/StackFilter.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,42 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using System.IO;
+
+namespace NUnit.Framework
+{
+ /// <summary>
+ /// Static class used to filter stack entries before they are displayed
+ /// </summary>
+ public class StackFilter
+ {
+ /// <summary>
+ /// Filter a raw stack trace
+ /// </summary>
+ /// <param name="rawTrace">The original trace</param>
+ /// <returns>The filtered trace</returns>
+ public static string Filter(string rawTrace)
+ {
+ if (rawTrace == null) return null;
+
+ StringReader sr = new StringReader(rawTrace);
+ StringWriter sw = new StringWriter();
+
+ string line;
+ while ((line = sr.ReadLine()) != null && line.IndexOf("NUnit.Framework.Assert")>=0)
+ /*Skip*/;
+
+ while (line != null)
+ {
+ sw.WriteLine(line);
+ line = sr.ReadLine();
+ }
+
+ return sw.ToString();;
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/TestCase.cs'
--- src/framework/NUnitLite/TestCase.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/TestCase.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,443 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+using System;
+using System.Reflection;
+using System.Collections;
+using NUnit.Framework;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// TestCase represents a single executable test
+ /// </summary>
+ public class TestCase : ITest
+ {
+ #region Instance Variables
+ private string name;
+ private string fullName;
+
+ private object fixture;
+ private MethodInfo method;
+
+ private MethodInfo setup;
+ private MethodInfo teardown;
+
+ private RunState runState = RunState.Runnable;
+ private string ignoreReason;
+
+ private IDictionary properties;
+
+ private object[] args;
+ #endregion
+
+ #region Constructors
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestCase"/> class.
+ /// </summary>
+ /// <param name="name">The name of the test.</param>
+ public TestCase(string name)
+ {
+ this.name = this.fullName = name;
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestCase"/> class.
+ /// </summary>
+ /// <param name="method">The method implementing this test case.</param>
+ public TestCase(MethodInfo method)
+ {
+ Initialize(method, null, null);
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestCase"/> class.
+ /// </summary>
+ /// <param name="name">The name.</param>
+ /// <param name="fixture">The fixture.</param>
+ public TestCase(string name, object fixture)
+ {
+ Initialize(fixture.GetType().GetMethod(name), fixture, null);
+ }
+
+ private void Initialize(MethodInfo method, object fixture, object[] args)
+ {
+ this.method = method;
+ this.args = args;
+
+ this.name = method.Name;
+ if (args != null && args.Length > 0)
+ {
+ this.name += "(";
+ int count = 0;
+ foreach (object arg in args)
+ {
+ if (count++ > 0)
+ this.name += ",";
+ if (arg == null)
+ this.name += "null";
+ else
+ this.name += arg.ToString();
+ }
+ this.name += ")";
+ }
+
+ this.fullName = method.ReflectedType.FullName + "." + this.name;
+ this.fixture = fixture;
+ if ( fixture == null )
+ this.fixture = Reflect.Construct(method.ReflectedType, null);
+
+ if (HasValidSignature(method, args))
+ {
+ IgnoreAttribute ignore = (IgnoreAttribute)Reflect.GetAttribute(this.method, typeof(IgnoreAttribute));
+
+ if (ignore != null)
+ {
+ this.runState = RunState.Ignored;
+ this.ignoreReason = ignore.Reason;
+ }
+ }
+
+ foreach (MethodInfo m in method.ReflectedType.GetMethods())
+ {
+ if (Reflect.HasAttribute(m, typeof(SetUpAttribute)))
+ this.setup = m;
+
+ if (Reflect.HasAttribute(m, typeof(TearDownAttribute)))
+ this.teardown = m;
+ }
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestCase"/> class.
+ /// </summary>
+ /// <param name="method">The method implementing the test case.</param>
+ /// <param name="args">The args to be used in calling the method.</param>
+ public TestCase(MethodInfo method, object[] args)
+ {
+ Initialize(method, null, args);
+ }
+ #endregion
+
+ #region Properties
+ /// <summary>
+ /// Gets the name of the test.
+ /// </summary>
+ /// <value>The name.</value>
+ public string Name
+ {
+ get { return name; }
+ }
+
+ /// <summary>
+ /// Gets the full name of the test.
+ /// </summary>
+ /// <value>The full name.</value>
+ public string FullName
+ {
+ get { return fullName; }
+ }
+
+ /// <summary>
+ /// Gets or sets the run state of the test.
+ /// </summary>
+ /// <value>The state of the run.</value>
+ public RunState RunState
+ {
+ get { return runState; }
+ set { runState = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets the ignore reason.
+ /// </summary>
+ /// <value>The ignore reason.</value>
+ public string IgnoreReason
+ {
+ get { return ignoreReason; }
+ set { ignoreReason = value; }
+ }
+
+ /// <summary>
+ /// Gets the properties of the test.
+ /// </summary>
+ /// <value>The properties dictionary.</value>
+ public System.Collections.IDictionary Properties
+ {
+ get
+ {
+ if (properties == null)
+ {
+ properties = new Hashtable();
+
+ object[] attrs = this.method.GetCustomAttributes(typeof(PropertyAttribute), true);
+ foreach (PropertyAttribute attr in attrs)
+ foreach( DictionaryEntry entry in attr.Properties )
+ this.Properties[entry.Key] = entry.Value;
+ }
+
+ return properties;
+ }
+ }
+
+ /// <summary>
+ /// Gets the test case count.
+ /// </summary>
+ /// <value>The test case count.</value>
+ public int TestCaseCount
+ {
+ get { return 1; }
+ }
+ #endregion
+
+ #region Public Methods
+ /// <summary>
+ /// Runs this test.
+ /// </summary>
+ /// <returns>A TestResult</returns>
+ public TestResult Run()
+ {
+ return Run( new NullListener() );
+ }
+
+ /// <summary>
+ /// Runs this test
+ /// </summary>
+ /// <param name="listener">A TestListener to handle test events</param>
+ /// <returns>A TestResult</returns>
+ public TestResult Run(TestListener listener)
+ {
+ listener.TestStarted(this);
+
+ TestResult result = new TestResult(this);
+ Run(result, listener);
+
+ listener.TestFinished(result);
+
+ return result;
+ }
+ #endregion
+
+ #region Protected Methods
+ /// <summary>
+ /// Performs SetUp for the test.
+ /// </summary>
+ protected virtual void SetUp()
+ {
+ if (setup != null)
+ {
+ Assert.That(HasValidSetUpTearDownSignature(setup), "Invalid SetUp method: must return void and have no arguments");
+ InvokeMethod(setup);
+ }
+ }
+
+ /// <summary>
+ /// Performs TearDown for the test.
+ /// </summary>
+ protected virtual void TearDown()
+ {
+ if (teardown != null)
+ {
+ Assert.That(HasValidSetUpTearDownSignature(teardown), "Invalid TearDown method: must return void and have no arguments");
+ InvokeMethod(teardown);
+ }
+ }
+
+ /// <summary>
+ /// Runs the test and handles any exceptions.
+ /// </summary>
+ /// <param name="result">The result.</param>
+ /// <param name="listener">The listener.</param>
+ protected virtual void Run(TestResult result, TestListener listener)
+ {
+ IgnoreAttribute ignore = (IgnoreAttribute)Reflect.GetAttribute(method, typeof(IgnoreAttribute));
+ if (this.RunState == RunState.NotRunnable)
+ result.Failure(this.ignoreReason);
+ else if ( ignore != null )
+ result.NotRun(ignore.Reason);
+ else
+ {
+ try
+ {
+ RunBare();
+ result.Success();
+ }
+ catch (NUnitLiteException nex)
+ {
+ result.RecordException(nex.InnerException);
+ }
+#if !NETCF_1_0
+ catch (System.Threading.ThreadAbortException)
+ {
+ throw;
+ }
+#endif
+ catch (Exception ex)
+ {
+ result.RecordException(ex);
+ }
+ }
+ }
+
+ /// <summary>
+ /// Runs SetUp, invokes the test and runs TearDown.
+ /// </summary>
+ protected void RunBare()
+ {
+ SetUp();
+ try
+ {
+ RunTest();
+ }
+ finally
+ {
+ TearDown();
+ }
+ }
+
+ /// <summary>
+ /// Runs the test.
+ /// </summary>
+ protected virtual void RunTest()
+ {
+ try
+ {
+ InvokeMethod( this.method, this.args );
+ ProcessNoException(this.method);
+ }
+ catch (NUnitLiteException ex)
+ {
+ ProcessException(this.method, ex.InnerException);
+ }
+ }
+
+ /// <summary>
+ /// Invokes a method on the test fixture.
+ /// </summary>
+ /// <param name="method">The method.</param>
+ /// <param name="args">The args.</param>
+ protected void InvokeMethod(MethodInfo method, params object[] args)
+ {
+ Reflect.InvokeMethod(method, this.fixture, args);
+ }
+ #endregion
+
+ #region Private Methods
+ /// <summary>
+ /// Determines whether the method has a valid signature and sets
+ /// the RunState to NotRunnable if it does not.
+ /// </summary>
+ /// <param name="method">The method.</param>
+ /// <param name="args">The args.</param>
+ /// <returns>
+ /// <c>true</c> if the signature is valid; otherwise, <c>false</c>.
+ /// </returns>
+ private bool HasValidSignature(MethodInfo method, object[] args)
+ {
+ if (method.ReturnType != typeof(void))
+ {
+ this.runState = RunState.NotRunnable;
+ this.ignoreReason = "A TestMethod must return void";
+ return false;
+ }
+
+ int argsNeeded = method.GetParameters().Length;
+ int argsPassed = args == null ? 0 : args.Length;
+
+ if (argsNeeded == 0 && argsPassed > 0)
+ {
+ this.runState = RunState.NotRunnable;
+ this.ignoreReason = "Arguments may not be specified for a method with no parameters";
+ return false;
+ }
+
+ if (argsNeeded > 0 && argsPassed == 0)
+ {
+ this.runState = RunState.NotRunnable;
+ this.ignoreReason = "No arguments provided for a method requiring them";
+ return false;
+ }
+
+ if (argsNeeded != argsPassed)
+ {
+ this.runState = RunState.NotRunnable;
+ this.ignoreReason = string.Format("Expected {0} arguments, but received {1}", argsNeeded, argsPassed);
+ return false;
+ }
+
+ return true;
+ }
+
+ private static bool HasValidSetUpTearDownSignature(MethodInfo method)
+ {
+ return method.ReturnType == typeof(void)
+ && method.GetParameters().Length == 0; ;
+ }
+
+ private static void ProcessNoException(MethodInfo method)
+ {
+ ExpectedExceptionAttribute exceptionAttribute =
+ (ExpectedExceptionAttribute)Reflect.GetAttribute(method, typeof(ExpectedExceptionAttribute));
+
+ if (exceptionAttribute != null)
+ Assert.Fail("Expected Exception of type <{0}>, but none was thrown", exceptionAttribute.ExpectedException);
+ }
+
+ private void ProcessException(MethodInfo method, Exception caughtException)
+ {
+ ExpectedExceptionAttribute exceptionAttribute =
+ (ExpectedExceptionAttribute)Reflect.GetAttribute(method, typeof(ExpectedExceptionAttribute));
+
+ if (exceptionAttribute == null)
+ throw new NUnitLiteException("", caughtException);
+
+ Type expectedType = exceptionAttribute.ExpectedException;
+ if ( expectedType != null && expectedType != caughtException.GetType() )
+ Assert.Fail("Expected Exception of type <{0}>, but was <{1}>", exceptionAttribute.ExpectedException, caughtException.GetType());
+
+ MethodInfo handler = GetExceptionHandler(method.ReflectedType, exceptionAttribute.Handler);
+
+ if (handler != null)
+ InvokeMethod( handler, caughtException );
+ }
+
+ private MethodInfo GetExceptionHandler(Type type, string handlerName)
+ {
+ if (handlerName == null && Reflect.HasInterface( type, typeof(IExpectException) ) )
+ handlerName = "HandleException";
+
+ if (handlerName == null)
+ return null;
+
+ MethodInfo handler = Reflect.GetMethod( type, handlerName,
+ BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Static,
+ new Type[] { typeof(Exception) });
+
+ if (handler == null)
+ Assert.Fail("The specified exception handler {0} was not found", handlerName);
+
+ return handler;
+ }
+ #endregion
+ }
+}
=== added file 'src/framework/NUnitLite/TestListener.cs'
--- src/framework/NUnitLite/TestListener.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/TestListener.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,44 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// The TestListener interface allows a client program to take action
+ /// when a test starts or finishes.
+ /// </summary>
+ public interface TestListener
+ {
+ /// <summary>
+ /// Handles the TestStarted event.
+ /// </summary>
+ /// <param name="test">The test that just started.</param>
+ void TestStarted(ITest test);
+
+ /// <summary>
+ /// Handles the TestFinished event
+ /// </summary>
+ /// <param name="result">The result of the test that just finished.</param>
+ void TestFinished(TestResult result);
+ }
+}
=== added file 'src/framework/NUnitLite/TestResult.cs'
--- src/framework/NUnitLite/TestResult.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/TestResult.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,282 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+using System;
+using System.Collections;
+using NUnit.Framework;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// Represents the final result state from running a test
+ /// </summary>
+ public enum ResultState
+ {
+ /// <summary>
+ /// The test was not run
+ /// </summary>
+ NotRun,
+ /// <summary>
+ /// The test passed
+ /// </summary>
+ Success,
+ /// <summary>
+ /// The test failed
+ /// </summary>
+ Failure,
+ /// <summary>
+ /// The test terminated with an error
+ /// </summary>
+ Error
+ }
+
+ /// <summary>
+ /// TestResult represents the result from running a test
+ /// </summary>
+ public class TestResult
+ {
+ private ITest test;
+
+ private ResultState resultState = ResultState.NotRun;
+
+ private string message;
+
+#if !NETCF_1_0
+ private string stackTrace;
+#endif
+
+ private ArrayList results;
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestResult"/> class.
+ /// </summary>
+ /// <param name="test">The test to which this result applies.</param>
+ public TestResult(ITest test)
+ {
+ this.test = test;
+ }
+
+ /// <summary>
+ /// Gets the test to which this result applies.
+ /// </summary>
+ /// <value>The test.</value>
+ public ITest Test
+ {
+ get { return test; }
+ }
+
+ /// <summary>
+ /// Gets the state of the result.
+ /// </summary>
+ /// <value>The state of the result.</value>
+ public ResultState ResultState
+ {
+ get { return resultState; }
+ }
+
+ /// <summary>
+ /// Gets the child results if any for this result
+ /// </summary>
+ /// <value>A list of child results</value>
+ public IList Results
+ {
+ get
+ {
+ if (results == null)
+ results = new ArrayList();
+
+ return results;
+ }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the test was executed.
+ /// </summary>
+ /// <value><c>true</c> if executed; otherwise, <c>false</c>.</value>
+ public bool Executed
+ {
+ get { return resultState != ResultState.NotRun; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the test passed.
+ /// </summary>
+ /// <value>
+ /// <c>true</c> if the test passed; otherwise, <c>false</c>.
+ /// </value>
+ public bool IsSuccess
+ {
+ get { return resultState == ResultState.Success; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the test failed.
+ /// </summary>
+ /// <value>
+ /// <c>true</c> if the test failed; otherwise, <c>false</c>.
+ /// </value>
+ public bool IsFailure
+ {
+ get { return resultState == ResultState.Failure; }
+ }
+
+ /// <summary>
+ /// Gets a value indicating whether the test caused an error.
+ /// </summary>
+ /// <value><c>true</c> if the test caused an error; otherwise, <c>false</c>.</value>
+ public bool IsError
+ {
+ get { return resultState == ResultState.Error; }
+ }
+
+ /// <summary>
+ /// Gets the message associated with a TestResult.
+ /// </summary>
+ /// <value>The message.</value>
+ public string Message
+ {
+ get { return message; }
+ }
+
+#if !NETCF_1_0
+ /// <summary>
+ /// Gets the stack trace.
+ /// </summary>
+ /// <value>The stack trace.</value>
+ public string StackTrace
+ {
+ get { return stackTrace; }
+ }
+#endif
+
+ /// <summary>
+ /// Adds a child result.
+ /// </summary>
+ /// <param name="result">The result to add.</param>
+ public void AddResult(TestResult result)
+ {
+ if (results == null)
+ results = new ArrayList();
+
+ results.Add(result);
+
+ switch (result.ResultState)
+ {
+ case ResultState.Error:
+ case ResultState.Failure:
+ this.Failure("Component test failure");
+ break;
+ default:
+ break;
+ }
+ }
+
+ /// <summary>
+ /// Marks this instance as passing.
+ /// </summary>
+ public void Success()
+ {
+ this.resultState = ResultState.Success;
+ this.message = null;
+ }
+
+
+ /// <summary>
+ /// Marks this instance as failing
+ /// </summary>
+ /// <param name="message">The failure message</param>
+ public void Failure(string message)
+ {
+ this.resultState = ResultState.Failure;
+ if (this.message == null || this.message == string.Empty)
+ this.message = message;
+ else
+ this.message = this.message + Env.NewLine + message;
+ }
+
+ /// <summary>
+ /// Marks this instance as an errr
+ /// </summary>
+ /// <param name="message">The error message</param>
+ public void Error(string message)
+ {
+ this.resultState = ResultState.Error;
+ if (this.message == null || this.message == string.Empty)
+ this.message = message;
+ else
+ this.message = this.message + Env.NewLine + message;
+ }
+
+#if !NETCF_1_0
+ /// <summary>
+ /// Marks this instance as failing
+ /// </summary>
+ /// <param name="message">The failure message</param>
+ /// <param name="stackTrace">The stacktrace</param>
+ public void Failure(string message, string stackTrace)
+ {
+ this.Failure(message);
+ this.stackTrace = stackTrace;
+ }
+#endif
+
+ /// <summary>
+ /// Marks this instance as an error
+ /// </summary>
+ /// <param name="ex">The exception causing the error</param>
+ public void Error(Exception ex)
+ {
+ this.resultState = ResultState.Error;
+ this.message = ex.GetType().ToString() + " : " + ex.Message;
+#if !NETCF_1_0
+ this.stackTrace = ex.StackTrace;
+#endif
+ }
+
+ /// <summary>
+ /// Marks this instance as not run
+ /// </summary>
+ /// <param name="message">Message giving the reason the test was not run</param>
+ public void NotRun(string message)
+ {
+ this.resultState = ResultState.NotRun;
+ this.message = message;
+ }
+
+ /// <summary>
+ /// Records an exception.
+ /// </summary>
+ /// <param name="ex">The exception.</param>
+ public void RecordException(Exception ex)
+ {
+ if (ex is AssertionException)
+#if NETCF_1_0
+ this.Failure(ex.Message);
+#else
+ this.Failure(ex.Message, StackFilter.Filter(ex.StackTrace));
+#endif
+ else
+ this.Error(ex);
+ }
+ }
+}
=== added file 'src/framework/NUnitLite/TestSuite.cs'
--- src/framework/NUnitLite/TestSuite.cs 1970-01-01 00:00:00 +0000
+++ src/framework/NUnitLite/TestSuite.cs 2009-09-12 03:41:51 +0000
@@ -0,0 +1,215 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+using System;
+using System.Collections;
+using System.Reflection;
+using NUnit.Framework;
+
+namespace NUnitLite
+{
+ /// <summary>
+ /// TestSuite represents a collection of tests
+ /// </summary>
+ public class TestSuite : ITest
+ {
+ #region Instance Variables
+ private string name;
+ private string fullName;
+
+ private RunState runState = RunState.Runnable;
+ private string ignoreReason;
+
+ private IDictionary properties = new Hashtable();
+
+ private ArrayList tests = new ArrayList(10);
+ #endregion
+
+ #region Constructors
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestSuite"/> class.
+ /// </summary>
+ /// <param name="name">The name of the suite.</param>
+ public TestSuite(string name)
+ {
+ this.name = name;
+ }
+
+ /// <summary>
+ /// Initializes a new instance of the <see cref="TestSuite"/> class.
+ /// </summary>
+ /// <param name="type">The type used to create the suite.</param>
+ public TestSuite(Type type)
+ {
+ this.name = type.Name;
+ this.fullName = type.FullName;
+ }
+ #endregion
+
+ #region Properties
+ /// <summary>
+ /// Gets the name of the suite.
+ /// </summary>
+ /// <value>The name.</value>
+ public string Name
+ {
+ get { return name; }
+ }
+
+ /// <summary>
+ /// Gets the full name of the suite.
+ /// </summary>
+ /// <value>The full name.</value>
+ public string FullName
+ {
+ get { return fullName; }
+ }
+
+ /// <summary>
+ /// Gets or sets the run state of the suite.
+ /// </summary>
+ /// <value>The run state.</value>
+ public RunState RunState
+ {
+ get { return runState; }
+ set { runState = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets the ignore reason.
+ /// </summary>
+ /// <value>The ignore reason.</value>
+ public string IgnoreReason
+ {
+ get { return ignoreReason; }
+ set { ignoreReason = value; }
+ }
+
+ /// <summary>
+ /// Gets the properties collection for this suite.
+ /// </summary>
+ /// <value>The properties.</value>
+ public IDictionary Properties
+ {
+ get { return properties; }
+ }
+
+ /// <summary>
+ /// Gets the test case count.
+ /// </summary>
+ /// <value>The test case count.</value>
+ public int TestCaseCount
+ {
+ get
+ {
+ int count = 0;
+ foreach (ITest test in this.tests)
+ count += test.TestCaseCount;
+ return count;
+ }
+ }
+
+ /// <summary>
+ /// Gets the tests.
+ /// </summary>
+ /// <value>The tests.</value>
+ public IList Tests
+ {
+ get { return tests; }
+ }
+ #endregion
+
+ #region Public Methods
+ /// <summary>
+ /// Runs the suite.
+ /// </summary>
+ /// <returns>A TestResult</returns>
+ public TestResult Run()
+ {
+ return Run(new NullListener());
+ }
+
+ /// <summary>
+ /// Runs this test
+ /// </summary>
+ /// <param name="listener">A TestListener to handle test events</param>
+ /// <returns>A TestResult</returns>
+ public TestResult Run(TestListener listener)
+ {
+ int count = 0, failures = 0, errors = 0;
+ listener.TestStarted(this);
+ TestResult result = new TestResult(this);
+
+ switch (this.RunState)
+ {
+ case RunState.NotRunnable:
+ result.Error(this.IgnoreReason);
+ break;
+
+ case RunState.Ignored:
+ result.NotRun(this.IgnoreReason);
+ break;
+
+ case RunState.Runnable:
+ foreach (ITest test in tests)
+ {
+ ++count;
+ TestResult r = test.Run(listener);
+ result.AddResult(r);
+ switch (r.ResultState)
+ {
+ case ResultState.Error:
+ ++errors;
+ break;
+ case ResultState.Failure:
+ ++failures;
+ break;
+ default:
+ break;
+ }
+ }
+
+ if (count == 0)
+ result.NotRun("Class has no tests");
+ else if (errors > 0 || failures > 0)
+ result.Failure("One or more component tests failed");
+ else
+ result.Success();
+ break;
+ }
+
+ listener.TestFinished(result);
+ return result;
+ }
+
+ /// <summary>
+ /// Adds the test.
+ /// </summary>
+ /// <param name="test">The test.</param>
+ public void AddTest(ITest test)
+ {
+ tests.Add(test);
+ }
+ #endregion
+ }
+}
=== added directory 'src/framework/Shared'
=== added directory 'src/framework/Shared/Framework'
=== renamed file 'src/framework/Assert.cs' => 'src/framework/Shared/Framework/Assert.cs'
--- src/framework/Assert.cs 2009-08-23 04:14:27 +0000
+++ src/framework/Shared/Framework/Assert.cs 2009-09-12 03:41:51 +0000
@@ -86,6 +86,7 @@
#region Equals and ReferenceEquals
+#if !NETCF
/// <summary>
/// The Equals method throws an AssertionException. This is done
/// to make sure there is no mistake by calling this function.
@@ -95,8 +96,7 @@
[EditorBrowsable(EditorBrowsableState.Never)]
public static new bool Equals(object a, object b)
{
- // TODO: This should probably be InvalidOperationException
- throw new AssertionException("Assert.Equals should not be used for Assertions");
+ throw new InvalidOperationException("Assert.Equals should not be used for Assertions");
}
/// <summary>
@@ -108,35 +108,17 @@
/// <param name="b"></param>
public static new void ReferenceEquals(object a, object b)
{
- throw new AssertionException("Assert.ReferenceEquals should not be used for Assertions");
- }
-
- #endregion
-
- #region Helper Methods
- /// <summary>
- /// Helper for Assert.AreEqual(double expected, double actual, ...)
- /// allowing code generation to work consistently.
- /// </summary>
- /// <param name="expected">The expected value</param>
- /// <param name="actual">The actual value</param>
- /// <param name="delta">The maximum acceptable difference between the
- /// the expected and the actual</param>
- /// <param name="message">The message to display in case of failure</param>
- /// <param name="args">Array of objects to be used in formatting the message</param>
- protected static void AssertDoublesAreEqual(double expected, double actual, double delta, string message, object[] args)
- {
- if (double.IsNaN(expected) || double.IsInfinity(expected))
- Assert.That(actual, Is.EqualTo(expected), message, args);
- else
- Assert.That(actual, Is.EqualTo(expected).Within(delta), message, args);
- }
+ throw new InvalidOperationException("Assert.ReferenceEquals should not be used for Assertions");
+ }
+#endif
+
#endregion
#region Utility Asserts
#region Pass
+#if !NUNITLITE
/// <summary>
/// Throws a <see cref="SuccessException"/> with the message and arguments
/// that are passed in. This allows a test to be cut short, with a result
@@ -173,7 +155,7 @@
{
Assert.Pass(string.Empty, null);
}
-
+#endif
#endregion
#region Fail
@@ -216,6 +198,7 @@
#region Ignore
+#if !NUNITLITE
/// <summary>
/// Throws an <see cref="IgnoreException"/> with the message and arguments
/// that are passed in. This causes the test to be reported as ignored.
@@ -249,10 +232,13 @@
{
Assert.Ignore(string.Empty, null);
}
+#endif
#endregion
#region InConclusive
+
+#if !NUNITLITE
/// <summary>
/// Throws an <see cref="InconclusiveException"/> with the message and arguments
/// that are passed in. This causes the test to be reported as inconclusive.
@@ -286,6 +272,7 @@
{
Assert.Inconclusive(string.Empty, null);
}
+#endif
#endregion
@@ -340,6 +327,7 @@
#endregion
#region ActualValueDelegate
+#if !NUNITLITE
/// <summary>
/// Apply a constraint to an actual value, succeeding if the constraint
/// is satisfied and throwing an assertion exception on failure.
@@ -383,6 +371,7 @@
throw new AssertionException(writer.ToString());
}
}
+#endif
#endregion
#region ref Object
@@ -722,7 +711,6 @@
/// Verifies that a delegate throws an exception of a certain Type
/// or one derived from it when called and returns it.
/// </summary>
- /// <param name="expectedExceptionType">The expected Exception Type</param>
/// <param name="code">A TestDelegate</param>
/// <param name="message">The message that will be displayed on failure</param>
/// <param name="args">Arguments to be used in formatting the message</param>
@@ -735,7 +723,6 @@
/// Verifies that a delegate throws an exception of a certain Type
/// or one derived from it when called and returns it.
/// </summary>
- /// <param name="expectedExceptionType">The expected Exception Type</param>
/// <param name="code">A TestDelegate</param>
/// <param name="message">The message that will be displayed on failure</param>
public static Exception Catch<T>(TestDelegate code, string message)
@@ -747,7 +734,6 @@
/// Verifies that a delegate throws an exception of a certain Type
/// or one derived from it when called and returns it.
/// </summary>
- /// <param name="expectedExceptionType">The expected Exception Type</param>
/// <param name="code">A TestDelegate</param>
public static Exception Catch<T>(TestDelegate code)
{
@@ -802,7 +788,7 @@
#endregion
#region True
-
+
/// <summary>
/// Asserts that a condition is true. If the condition is false the method throws
/// an <see cref="AssertionException"/>.
@@ -814,7 +800,6 @@
{
Assert.That(condition, Is.True ,message, args);
}
-
/// <summary>
/// Asserts that a condition is true. If the condition is false the method throws
/// an <see cref="AssertionException"/>.
@@ -825,7 +810,6 @@
{
Assert.That(condition, Is.True ,message, null);
}
-
/// <summary>
/// Asserts that a condition is true. If the condition is false the method throws
/// an <see cref="AssertionException"/>.
@@ -835,7 +819,7 @@
{
Assert.That(condition, Is.True ,null, null);
}
-
+
/// <summary>
/// Asserts that a condition is true. If the condition is false the method throws
/// an <see cref="AssertionException"/>.
@@ -847,7 +831,6 @@
{
Assert.That(condition, Is.True ,message, args);
}
-
/// <summary>
/// Asserts that a condition is true. If the condition is false the method throws
/// an <see cref="AssertionException"/>.
@@ -858,7 +841,6 @@
{
Assert.That(condition, Is.True ,message, null);
}
-
/// <summary>
/// Asserts that a condition is true. If the condition is false the method throws
/// an <see cref="AssertionException"/>.
@@ -868,11 +850,11 @@
{
Assert.That(condition, Is.True ,null, null);
}
-
+
#endregion
-
+
#region False
-
+
/// <summary>
/// Asserts that a condition is false. If the condition is true the method throws
/// an <see cref="AssertionException"/>.
@@ -884,7 +866,6 @@
{
Assert.That(condition, Is.False ,message, args);
}
-
/// <summary>
/// Asserts that a condition is false. If the condition is true the method throws
/// an <see cref="AssertionException"/>.
@@ -895,7 +876,6 @@
{
Assert.That(condition, Is.False ,message, null);
}
-
/// <summary>
/// Asserts that a condition is false. If the condition is true the method throws
/// an <see cref="AssertionException"/>.
@@ -905,7 +885,7 @@
{
Assert.That(condition, Is.False ,null, null);
}
-
+
/// <summary>
/// Asserts that a condition is false. If the condition is true the method throws
/// an <see cref="AssertionException"/>.
@@ -917,7 +897,6 @@
{
Assert.That(condition, Is.False ,message, args);
}
-
/// <summary>
/// Asserts that a condition is false. If the condition is true the method throws
/// an <see cref="AssertionException"/>.
@@ -928,7 +907,6 @@
{
Assert.That(condition, Is.False ,message, null);
}
-
/// <summary>
/// Asserts that a condition is false. If the condition is true the method throws
/// an <see cref="AssertionException"/>.
@@ -938,11 +916,11 @@
{
Assert.That(condition, Is.False ,null, null);
}
-
+
#endregion
-
+
#region NotNull
-
+
/// <summary>
/// Verifies that the object that is passed in is not equal to <code>null</code>
/// If the object is <code>null</code> then an <see cref="AssertionException"/>
@@ -955,7 +933,6 @@
{
Assert.That(anObject, Is.Not.Null ,message, args);
}
-
/// <summary>
/// Verifies that the object that is passed in is not equal to <code>null</code>
/// If the object is <code>null</code> then an <see cref="AssertionException"/>
@@ -967,7 +944,6 @@
{
Assert.That(anObject, Is.Not.Null ,message, null);
}
-
/// <summary>
/// Verifies that the object that is passed in is not equal to <code>null</code>
/// If the object is <code>null</code> then an <see cref="AssertionException"/>
@@ -978,7 +954,7 @@
{
Assert.That(anObject, Is.Not.Null ,null, null);
}
-
+
/// <summary>
/// Verifies that the object that is passed in is not equal to <code>null</code>
/// If the object is <code>null</code> then an <see cref="AssertionException"/>
@@ -991,7 +967,6 @@
{
Assert.That(anObject, Is.Not.Null ,message, args);
}
-
/// <summary>
/// Verifies that the object that is passed in is not equal to <code>null</code>
/// If the object is <code>null</code> then an <see cref="AssertionException"/>
@@ -1003,7 +978,6 @@
{
Assert.That(anObject, Is.Not.Null ,message, null);
}
-
/// <summary>
/// Verifies that the object that is passed in is not equal to <code>null</code>
/// If the object is <code>null</code> then an <see cref="AssertionException"/>
@@ -1014,11 +988,11 @@
{
Assert.That(anObject, Is.Not.Null ,null, null);
}
-
+
#endregion
-
+
#region Null
-
+
/// <summary>
/// Verifies that the object that is passed in is equal to <code>null</code>
/// If the object is not <code>null</code> then an <see cref="AssertionException"/>
@@ -1031,7 +1005,6 @@
{
Assert.That(anObject, Is.Null ,message, args);
}
-
/// <summary>
/// Verifies that the object that is passed in is equal to <code>null</code>
/// If the object is not <code>null</code> then an <see cref="AssertionException"/>
@@ -1043,7 +1016,6 @@
{
Assert.That(anObject, Is.Null ,message, null);
}
-
/// <summary>
/// Verifies that the object that is passed in is equal to <code>null</code>
/// If the object is not <code>null</code> then an <see cref="AssertionException"/>
@@ -1054,7 +1026,7 @@
{
Assert.That(anObject, Is.Null ,null, null);
}
-
+
/// <summary>
/// Verifies that the object that is passed in is equal to <code>null</code>
/// If the object is not <code>null</code> then an <see cref="AssertionException"/>
@@ -1067,7 +1039,6 @@
{
Assert.That(anObject, Is.Null ,message, args);
}
-
/// <summary>
/// Verifies that the object that is passed in is equal to <code>null</code>
/// If the object is not <code>null</code> then an <see cref="AssertionException"/>
@@ -1079,7 +1050,6 @@
{
Assert.That(anObject, Is.Null ,message, null);
}
-
/// <summary>
/// Verifies that the object that is passed in is equal to <code>null</code>
/// If the object is not <code>null</code> then an <see cref="AssertionException"/>
@@ -1090,11 +1060,12 @@
{
Assert.That(anObject, Is.Null ,null, null);
}
-
+
#endregion
-
+
#region IsNaN
-
+
+#if !NUNITLITE
/// <summary>
/// Verifies that the double that is passed in is an <code>NaN</code> value.
/// If the object is not <code>NaN</code> then an <see cref="AssertionException"/>
@@ -1107,7 +1078,6 @@
{
Assert.That(aDouble, Is.NaN ,message, args);
}
-
/// <summary>
/// Verifies that the double that is passed in is an <code>NaN</code> value.
/// If the object is not <code>NaN</code> then an <see cref="AssertionException"/>
@@ -1119,7 +1089,6 @@
{
Assert.That(aDouble, Is.NaN ,message, null);
}
-
/// <summary>
/// Verifies that the double that is passed in is an <code>NaN</code> value.
/// If the object is not <code>NaN</code> then an <see cref="AssertionException"/>
@@ -1130,7 +1099,7 @@
{
Assert.That(aDouble, Is.NaN ,null, null);
}
-
+
#if NET_2_0
/// <summary>
/// Verifies that the double that is passed in is an <code>NaN</code> value.
@@ -1144,7 +1113,6 @@
{
Assert.That(aDouble, Is.NaN ,message, args);
}
-
/// <summary>
/// Verifies that the double that is passed in is an <code>NaN</code> value.
/// If the object is not <code>NaN</code> then an <see cref="AssertionException"/>
@@ -1156,7 +1124,6 @@
{
Assert.That(aDouble, Is.NaN ,message, null);
}
-
/// <summary>
/// Verifies that the double that is passed in is an <code>NaN</code> value.
/// If the object is not <code>NaN</code> then an <see cref="AssertionException"/>
@@ -1167,12 +1134,14 @@
{
Assert.That(aDouble, Is.NaN ,null, null);
}
-
-#endif
+#endif
+#endif
+
#endregion
-
+
#region IsEmpty
-
+
+#if !NUNITLITE
/// <summary>
/// Assert that a string is empty - that is equal to string.Empty
/// </summary>
@@ -1183,7 +1152,6 @@
{
Assert.That(aString, new EmptyStringConstraint() ,message, args);
}
-
/// <summary>
/// Assert that a string is empty - that is equal to string.Empty
/// </summary>
@@ -1193,7 +1161,6 @@
{
Assert.That(aString, new EmptyStringConstraint() ,message, null);
}
-
/// <summary>
/// Assert that a string is empty - that is equal to string.Empty
/// </summary>
@@ -1202,11 +1169,13 @@
{
Assert.That(aString, new EmptyStringConstraint() ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsEmpty
-
+
+#if !NUNITLITE
/// <summary>
/// Assert that an array, list or other collection is empty
/// </summary>
@@ -1217,7 +1186,6 @@
{
Assert.That(collection, new EmptyCollectionConstraint() ,message, args);
}
-
/// <summary>
/// Assert that an array, list or other collection is empty
/// </summary>
@@ -1227,7 +1195,6 @@
{
Assert.That(collection, new EmptyCollectionConstraint() ,message, null);
}
-
/// <summary>
/// Assert that an array, list or other collection is empty
/// </summary>
@@ -1236,11 +1203,13 @@
{
Assert.That(collection, new EmptyCollectionConstraint() ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsNotEmpty
-
+
+#if !NUNITLITE
/// <summary>
/// Assert that a string is not empty - that is not equal to string.Empty
/// </summary>
@@ -1251,7 +1220,6 @@
{
Assert.That(aString, Is.Not.Empty ,message, args);
}
-
/// <summary>
/// Assert that a string is not empty - that is not equal to string.Empty
/// </summary>
@@ -1261,7 +1229,6 @@
{
Assert.That(aString, Is.Not.Empty ,message, null);
}
-
/// <summary>
/// Assert that a string is not empty - that is not equal to string.Empty
/// </summary>
@@ -1270,11 +1237,13 @@
{
Assert.That(aString, Is.Not.Empty ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsNotEmpty
-
+
+#if !NUNITLITE
/// <summary>
/// Assert that an array, list or other collection is not empty
/// </summary>
@@ -1285,7 +1254,6 @@
{
Assert.That(collection, Is.Not.Empty ,message, args);
}
-
/// <summary>
/// Assert that an array, list or other collection is not empty
/// </summary>
@@ -1295,7 +1263,6 @@
{
Assert.That(collection, Is.Not.Empty ,message, null);
}
-
/// <summary>
/// Assert that an array, list or other collection is not empty
/// </summary>
@@ -1304,11 +1271,13 @@
{
Assert.That(collection, Is.Not.Empty ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsNullOrEmpty
-
+
+#if !NUNITLITE
/// <summary>
/// Assert that a string is either null or equal to string.Empty
/// </summary>
@@ -1319,7 +1288,6 @@
{
Assert.That(aString, new NullOrEmptyStringConstraint() ,message, args);
}
-
/// <summary>
/// Assert that a string is either null or equal to string.Empty
/// </summary>
@@ -1329,7 +1297,6 @@
{
Assert.That(aString, new NullOrEmptyStringConstraint() ,message, null);
}
-
/// <summary>
/// Assert that a string is either null or equal to string.Empty
/// </summary>
@@ -1338,11 +1305,13 @@
{
Assert.That(aString, new NullOrEmptyStringConstraint() ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsNotNullOrEmpty
-
+
+#if !NUNITLITE
/// <summary>
/// Assert that a string is not null or empty
/// </summary>
@@ -1353,7 +1322,6 @@
{
Assert.That(aString, new NotConstraint( new NullOrEmptyStringConstraint()) ,message, args);
}
-
/// <summary>
/// Assert that a string is not null or empty
/// </summary>
@@ -1363,7 +1331,6 @@
{
Assert.That(aString, new NotConstraint( new NullOrEmptyStringConstraint()) ,message, null);
}
-
/// <summary>
/// Assert that a string is not null or empty
/// </summary>
@@ -1372,11 +1339,13 @@
{
Assert.That(aString, new NotConstraint( new NullOrEmptyStringConstraint()) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsAssignableFrom
-
+
+#if !NUNITLITE
/// <summary>
/// Asserts that an object may be assigned a value of a given Type.
/// </summary>
@@ -1388,7 +1357,6 @@
{
Assert.That(actual, Is.AssignableFrom(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object may be assigned a value of a given Type.
/// </summary>
@@ -1399,7 +1367,6 @@
{
Assert.That(actual, Is.AssignableFrom(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object may be assigned a value of a given Type.
/// </summary>
@@ -1409,11 +1376,13 @@
{
Assert.That(actual, Is.AssignableFrom(expected) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsAssignableFrom<T>
-
+
+#if !NUNITLITE
#if NET_2_0
/// <summary>
/// Asserts that an object may be assigned a value of a given Type.
@@ -1426,7 +1395,6 @@
{
Assert.That(actual, Is.AssignableFrom(typeof(T)) ,message, args);
}
-
/// <summary>
/// Asserts that an object may be assigned a value of a given Type.
/// </summary>
@@ -1437,7 +1405,6 @@
{
Assert.That(actual, Is.AssignableFrom(typeof(T)) ,message, null);
}
-
/// <summary>
/// Asserts that an object may be assigned a value of a given Type.
/// </summary>
@@ -1447,12 +1414,14 @@
{
Assert.That(actual, Is.AssignableFrom(typeof(T)) ,null, null);
}
-
-#endif
+#endif
+#endif
+
#endregion
-
+
#region IsNotAssignableFrom
-
+
+#if !NUNITLITE
/// <summary>
/// Asserts that an object may not be assigned a value of a given Type.
/// </summary>
@@ -1464,7 +1433,6 @@
{
Assert.That(actual, Is.Not.AssignableFrom(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object may not be assigned a value of a given Type.
/// </summary>
@@ -1475,7 +1443,6 @@
{
Assert.That(actual, Is.Not.AssignableFrom(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object may not be assigned a value of a given Type.
/// </summary>
@@ -1485,11 +1452,13 @@
{
Assert.That(actual, Is.Not.AssignableFrom(expected) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsNotAssignableFrom<T>
-
+
+#if !NUNITLITE
#if NET_2_0
/// <summary>
/// Asserts that an object may not be assigned a value of a given Type.
@@ -1502,7 +1471,6 @@
{
Assert.That(actual, Is.Not.AssignableFrom(typeof(T)) ,message, args);
}
-
/// <summary>
/// Asserts that an object may not be assigned a value of a given Type.
/// </summary>
@@ -1513,7 +1481,6 @@
{
Assert.That(actual, Is.Not.AssignableFrom(typeof(T)) ,message, null);
}
-
/// <summary>
/// Asserts that an object may not be assigned a value of a given Type.
/// </summary>
@@ -1523,12 +1490,14 @@
{
Assert.That(actual, Is.Not.AssignableFrom(typeof(T)) ,null, null);
}
-
-#endif
+#endif
+#endif
+
#endregion
-
+
#region IsInstanceOf
-
+
+#if !NUNITLITE
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1540,7 +1509,6 @@
{
Assert.That(actual, Is.InstanceOf(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1551,7 +1519,6 @@
{
Assert.That(actual, Is.InstanceOf(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1561,7 +1528,7 @@
{
Assert.That(actual, Is.InstanceOf(expected) ,null, null);
}
-
+
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1574,7 +1541,6 @@
{
Assert.That(actual, Is.InstanceOf(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1586,7 +1552,6 @@
{
Assert.That(actual, Is.InstanceOf(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1597,11 +1562,13 @@
{
Assert.That(actual, Is.InstanceOf(expected) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsInstanceOf<T>
-
+
+#if !NUNITLITE
#if NET_2_0
/// <summary>
/// Asserts that an object is an instance of a given type.
@@ -1614,7 +1581,6 @@
{
Assert.That(actual, Is.InstanceOf(typeof(T)) ,message, args);
}
-
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1625,7 +1591,6 @@
{
Assert.That(actual, Is.InstanceOf(typeof(T)) ,message, null);
}
-
/// <summary>
/// Asserts that an object is an instance of a given type.
/// </summary>
@@ -1635,12 +1600,14 @@
{
Assert.That(actual, Is.InstanceOf(typeof(T)) ,null, null);
}
-
-#endif
+#endif
+#endif
+
#endregion
-
+
#region IsNotInstanceOf
-
+
+#if !NUNITLITE
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1652,7 +1619,6 @@
{
Assert.That(actual, Is.Not.InstanceOf(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1663,7 +1629,6 @@
{
Assert.That(actual, Is.Not.InstanceOf(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1673,7 +1638,7 @@
{
Assert.That(actual, Is.Not.InstanceOf(expected) ,null, null);
}
-
+
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1686,7 +1651,6 @@
{
Assert.That(actual, Is.Not.InstanceOf(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1698,7 +1662,6 @@
{
Assert.That(actual, Is.Not.InstanceOf(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1709,11 +1672,13 @@
{
Assert.That(actual, Is.Not.InstanceOf(expected) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region IsNotInstanceOf<T>
-
+
+#if !NUNITLITE
#if NET_2_0
/// <summary>
/// Asserts that an object is not an instance of a given type.
@@ -1726,7 +1691,6 @@
{
Assert.That(actual, Is.Not.InstanceOf(typeof(T)) ,message, args);
}
-
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1737,7 +1701,6 @@
{
Assert.That(actual, Is.Not.InstanceOf(typeof(T)) ,message, null);
}
-
/// <summary>
/// Asserts that an object is not an instance of a given type.
/// </summary>
@@ -1747,12 +1710,13 @@
{
Assert.That(actual, Is.Not.InstanceOf(typeof(T)) ,null, null);
}
-
-#endif
+#endif
+#endif
+
#endregion
-
+
#region AreEqual
-
+
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1765,7 +1729,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1777,7 +1740,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1788,7 +1750,7 @@
{
Assert.That(actual, Is.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1801,7 +1763,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1813,7 +1774,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1824,7 +1784,7 @@
{
Assert.That(actual, Is.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1838,7 +1798,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1851,7 +1810,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1863,7 +1821,7 @@
{
Assert.That(actual, Is.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1877,7 +1835,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1890,7 +1847,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1902,7 +1858,7 @@
{
Assert.That(actual, Is.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1915,7 +1871,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1927,7 +1882,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are equal. If they are not, then an
/// <see cref="AssertionException"/> is thrown.
@@ -1938,11 +1892,11 @@
{
Assert.That(actual, Is.EqualTo(expected) ,null, null);
}
-
+
#endregion
-
+
#region AreEqual
-
+
/// <summary>
/// Verifies that two doubles are equal considering a delta. If the
/// expected value is infinity then the delta value is ignored. If
@@ -1959,7 +1913,6 @@
{
AssertDoublesAreEqual(expected, actual, delta ,message, args);
}
-
/// <summary>
/// Verifies that two doubles are equal considering a delta. If the
/// expected value is infinity then the delta value is ignored. If
@@ -1975,7 +1928,6 @@
{
AssertDoublesAreEqual(expected, actual, delta ,message, null);
}
-
/// <summary>
/// Verifies that two doubles are equal considering a delta. If the
/// expected value is infinity then the delta value is ignored. If
@@ -1990,7 +1942,7 @@
{
AssertDoublesAreEqual(expected, actual, delta ,null, null);
}
-
+
#if NET_2_0
/// <summary>
/// Verifies that two doubles are equal considering a delta. If the
@@ -2008,7 +1960,6 @@
{
AssertDoublesAreEqual(expected, (double)actual, delta ,message, args);
}
-
/// <summary>
/// Verifies that two doubles are equal considering a delta. If the
/// expected value is infinity then the delta value is ignored. If
@@ -2024,7 +1975,6 @@
{
AssertDoublesAreEqual(expected, (double)actual, delta ,message, null);
}
-
/// <summary>
/// Verifies that two doubles are equal considering a delta. If the
/// expected value is infinity then the delta value is ignored. If
@@ -2039,12 +1989,12 @@
{
AssertDoublesAreEqual(expected, (double)actual, delta ,null, null);
}
-
#endif
+
#endregion
-
+
#region AreEqual
-
+
/// <summary>
/// Verifies that two objects are equal. Two objects are considered
/// equal if both are null, or if both have the same value. NUnit
@@ -2059,7 +2009,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two objects are equal. Two objects are considered
/// equal if both are null, or if both have the same value. NUnit
@@ -2073,7 +2022,6 @@
{
Assert.That(actual, Is.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two objects are equal. Two objects are considered
/// equal if both are null, or if both have the same value. NUnit
@@ -2086,11 +2034,11 @@
{
Assert.That(actual, Is.EqualTo(expected) ,null, null);
}
-
+
#endregion
-
+
#region AreNotEqual
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2103,7 +2051,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2115,7 +2062,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2126,7 +2072,7 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2139,7 +2085,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2151,7 +2096,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2162,7 +2106,7 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2176,7 +2120,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2189,7 +2132,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2201,7 +2143,7 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2215,7 +2157,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2228,7 +2169,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2240,7 +2180,7 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2253,7 +2193,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2265,7 +2204,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2276,7 +2214,7 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2289,7 +2227,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2301,7 +2238,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2312,7 +2248,7 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2325,7 +2261,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2337,7 +2272,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two values are not equal. If they are equal, then an
/// <see cref="AssertionException"/> is thrown.
@@ -2348,11 +2282,11 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
#endregion
-
+
#region AreNotEqual
-
+
/// <summary>
/// Verifies that two objects are not equal. Two objects are considered
/// equal if both are null, or if both have the same value. NUnit
@@ -2367,7 +2301,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, args);
}
-
/// <summary>
/// Verifies that two objects are not equal. Two objects are considered
/// equal if both are null, or if both have the same value. NUnit
@@ -2381,7 +2314,6 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,message, null);
}
-
/// <summary>
/// Verifies that two objects are not equal. Two objects are considered
/// equal if both are null, or if both have the same value. NUnit
@@ -2394,11 +2326,11 @@
{
Assert.That(actual, Is.Not.EqualTo(expected) ,null, null);
}
-
+
#endregion
-
+
#region AreSame
-
+
/// <summary>
/// Asserts that two objects refer to the same object. If they
/// are not the same an <see cref="AssertionException"/> is thrown.
@@ -2411,7 +2343,6 @@
{
Assert.That(actual, Is.SameAs(expected) ,message, args);
}
-
/// <summary>
/// Asserts that two objects refer to the same object. If they
/// are not the same an <see cref="AssertionException"/> is thrown.
@@ -2423,7 +2354,6 @@
{
Assert.That(actual, Is.SameAs(expected) ,message, null);
}
-
/// <summary>
/// Asserts that two objects refer to the same object. If they
/// are not the same an <see cref="AssertionException"/> is thrown.
@@ -2434,11 +2364,11 @@
{
Assert.That(actual, Is.SameAs(expected) ,null, null);
}
-
+
#endregion
-
+
#region AreNotSame
-
+
/// <summary>
/// Asserts that two objects do not refer to the same object. If they
/// are the same an <see cref="AssertionException"/> is thrown.
@@ -2451,7 +2381,6 @@
{
Assert.That(actual, Is.Not.SameAs(expected) ,message, args);
}
-
/// <summary>
/// Asserts that two objects do not refer to the same object. If they
/// are the same an <see cref="AssertionException"/> is thrown.
@@ -2463,7 +2392,6 @@
{
Assert.That(actual, Is.Not.SameAs(expected) ,message, null);
}
-
/// <summary>
/// Asserts that two objects do not refer to the same object. If they
/// are the same an <see cref="AssertionException"/> is thrown.
@@ -2474,11 +2402,12 @@
{
Assert.That(actual, Is.Not.SameAs(expected) ,null, null);
}
-
+
#endregion
-
+
#region Greater
-
+
+#if !NUNITLITE
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2492,7 +2421,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2505,7 +2433,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2517,7 +2444,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2532,7 +2459,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2546,7 +2472,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2559,7 +2484,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2573,7 +2498,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2586,7 +2510,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2598,7 +2521,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2613,7 +2536,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2627,7 +2549,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2640,7 +2561,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2654,7 +2575,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2667,7 +2587,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2679,7 +2598,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2693,7 +2612,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2706,7 +2624,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2718,7 +2635,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2732,7 +2649,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2745,7 +2661,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2757,7 +2672,7 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2771,7 +2686,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2784,7 +2698,6 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than the second
/// value. If it is not, then an
@@ -2796,11 +2709,13 @@
{
Assert.That(arg1, Is.GreaterThan(arg2) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region Less
-
+
+#if !NUNITLITE
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2814,7 +2729,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2827,7 +2741,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2839,7 +2752,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2854,7 +2767,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2868,7 +2780,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2881,7 +2792,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2895,7 +2806,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2908,7 +2818,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2920,7 +2829,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2935,7 +2844,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2949,7 +2857,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2962,7 +2869,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2976,7 +2883,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -2989,7 +2895,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3001,7 +2906,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3015,7 +2920,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3028,7 +2932,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3040,7 +2943,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3054,7 +2957,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3067,7 +2969,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3079,7 +2980,7 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3093,7 +2994,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3106,7 +3006,6 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than the second
/// value. If it is not, then an
@@ -3118,11 +3017,13 @@
{
Assert.That(arg1, Is.LessThan(arg2) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region GreaterOrEqual
-
+
+#if !NUNITLITE
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3136,7 +3037,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3149,7 +3049,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3161,7 +3060,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3176,7 +3075,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3190,7 +3088,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3203,7 +3100,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3217,7 +3114,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3230,7 +3126,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3242,7 +3137,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3257,7 +3152,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3271,7 +3165,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3284,7 +3177,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3298,7 +3191,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3311,7 +3203,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3323,7 +3214,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3337,7 +3228,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3350,7 +3240,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3362,7 +3251,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3376,7 +3265,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3389,7 +3277,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3401,7 +3288,7 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3415,7 +3302,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3428,7 +3314,6 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is greater than or equal tothe second
/// value. If it is not, then an
@@ -3440,11 +3325,13 @@
{
Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region LessOrEqual
-
+
+#if !NUNITLITE
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3458,7 +3345,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3471,7 +3357,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3483,7 +3368,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3498,7 +3383,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3512,7 +3396,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3525,7 +3408,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3539,7 +3422,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3552,7 +3434,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3564,7 +3445,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3579,7 +3460,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3593,7 +3473,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3606,7 +3485,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3620,7 +3499,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3633,7 +3511,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3645,7 +3522,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3659,7 +3536,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3672,7 +3548,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3684,7 +3559,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3698,7 +3573,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3711,7 +3585,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3723,7 +3596,7 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3737,7 +3610,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, args);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3750,7 +3622,6 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,message, null);
}
-
/// <summary>
/// Verifies that the first value is less than or equal to the second
/// value. If it is not, then an
@@ -3762,11 +3633,13 @@
{
Assert.That(arg1, Is.LessThanOrEqualTo(arg2) ,null, null);
}
-
+#endif
+
#endregion
-
+
#region Contains
-
+
+#if !NUNITLITE
/// <summary>
/// Asserts that an object is contained in a list.
/// </summary>
@@ -3778,7 +3651,6 @@
{
Assert.That(actual, new CollectionContainsConstraint(expected) ,message, args);
}
-
/// <summary>
/// Asserts that an object is contained in a list.
/// </summary>
@@ -3789,7 +3661,6 @@
{
Assert.That(actual, new CollectionContainsConstraint(expected) ,message, null);
}
-
/// <summary>
/// Asserts that an object is contained in a list.
/// </summary>
@@ -3799,8 +3670,29 @@
{
Assert.That(actual, new CollectionContainsConstraint(expected) ,null, null);
}
-
- #endregion
-
+#endif
+
+ #endregion
+
+
+ #region Helper Methods
+ /// <summary>
+ /// Helper for Assert.AreEqual(double expected, double actual, ...)
+ /// allowing code generation to work consistently.
+ /// </summary>
+ /// <param name="expected">The expected value</param>
+ /// <param name="actual">The actual value</param>
+ /// <param name="delta">The maximum acceptable difference between the
+ /// the expected and the actual</param>
+ /// <param name="message">The message to display in case of failure</param>
+ /// <param name="args">Array of objects to be used in formatting the message</param>
+ protected static void AssertDoublesAreEqual(double expected, double actual, double delta, string message, object[] args)
+ {
+ if (double.IsNaN(expected) || double.IsInfinity(expected))
+ Assert.That(actual, Is.EqualTo(expected), message, args);
+ else
+ Assert.That(actual, Is.EqualTo(expected).Within(delta), message, args);
+ }
+ #endregion
}
}
=== renamed file 'src/framework/AssertionException.cs' => 'src/framework/Shared/Framework/AssertionException.cs'
--- src/framework/AssertionException.cs 2009-07-16 19:37:36 +0000
+++ src/framework/Shared/Framework/AssertionException.cs 2009-09-11 21:12:38 +0000
@@ -24,13 +24,16 @@
namespace NUnit.Framework
{
using System;
+#if !NETCF
using System.Runtime.Serialization;
+#endif
/// <summary>
/// Thrown when an assertion failed.
/// </summary>
- ///
+#if !NETCF_1_0
[Serializable]
+#endif
public class AssertionException : System.Exception
{
/// <param name="message">The error message that explains
@@ -46,12 +49,13 @@
base(message, inner)
{}
+#if !NETCF
/// <summary>
/// Serialization Constructor
/// </summary>
protected AssertionException(SerializationInfo info,
StreamingContext context) : base(info,context)
{}
-
+#endif
}
}
=== renamed file 'src/framework/AssertionHelper.cs' => 'src/framework/Shared/Framework/AssertionHelper.cs'
=== added directory 'src/framework/Shared/Framework/Constraints'
=== renamed file 'src/framework/Constraints/AttributeConstraints.cs' => 'src/framework/Shared/Framework/Constraints/AttributeConstraints.cs'
=== renamed file 'src/framework/Constraints/BasicConstraints.cs' => 'src/framework/Shared/Framework/Constraints/BasicConstraints.cs'
=== renamed file 'src/framework/Constraints/BinaryOperations.cs' => 'src/framework/Shared/Framework/Constraints/BinaryOperations.cs'
=== added file 'src/framework/Shared/Framework/Constraints/BinarySerializableConstraint.cs'
--- src/framework/Shared/Framework/Constraints/BinarySerializableConstraint.cs 1970-01-01 00:00:00 +0000
+++ src/framework/Shared/Framework/Constraints/BinarySerializableConstraint.cs 2009-09-06 20:54:07 +0000
@@ -0,0 +1,100 @@
+// ***********************************************************************
+// Copyright (c) 2008 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.
+// ***********************************************************************
+
+#if !NETCF
+using System;
+using System.IO;
+using System.Runtime.Serialization;
+using System.Runtime.Serialization.Formatters.Binary;
+
+namespace NUnit.Framework.Constraints
+{
+ /// <summary>
+ /// BinarySerializableConstraint tests whether
+ /// an object is serializable in binary format.
+ /// </summary>
+ public class BinarySerializableConstraint : Constraint
+ {
+ readonly BinaryFormatter serializer = new BinaryFormatter();
+
+ /// <summary>
+ /// Test whether the constraint is satisfied by a given value
+ /// </summary>
+ /// <param name="actual">The value to be tested</param>
+ /// <returns>True for success, false for failure</returns>
+ public override bool Matches(object actual)
+ {
+ this.actual = actual;
+
+ if (actual == null)
+ throw new ArgumentException();
+
+ MemoryStream stream = new MemoryStream();
+
+ try
+ {
+ serializer.Serialize(stream, actual);
+
+ stream.Seek(0, SeekOrigin.Begin);
+
+ object value = serializer.Deserialize(stream);
+
+ return value != null;
+ }
+ catch (SerializationException)
+ {
+ return false;
+ }
+ }
+
+ /// <summary>
+ /// Write the constraint description to a MessageWriter
+ /// </summary>
+ /// <param name="writer">The writer on which the description is displayed</param>
+ public override void WriteDescriptionTo(MessageWriter writer)
+ {
+ writer.Write("binary serializable");
+ }
+
+ /// <summary>
+ /// 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.
+ /// </summary>
+ /// <param name="writer">The writer on which the actual value is displayed</param>
+ public override void WriteActualValueTo(MessageWriter writer)
+ {
+ writer.Write("<{0}>", actual.GetType().Name);
+ }
+
+ /// <summary>
+ /// Returns the string representation
+ /// </summary>
+ public override string ToString()
+ {
+ return "<binaryserializable>";
+ }
+ }
+}
+#endif
=== renamed file 'src/framework/Constraints/CollectionConstraints.cs' => 'src/framework/Shared/Framework/Constraints/CollectionConstraints.cs'
=== renamed file 'src/framework/Constraints/ComparisonAdapter.cs' => 'src/framework/Shared/Framework/Constraints/ComparisonAdapter.cs'
=== renamed file 'src/framework/Constraints/ComparisonConstraints.cs' => 'src/framework/Shared/Framework/Constraints/ComparisonConstraints.cs'
=== renamed file 'src/framework/Constraints/Constraint.cs' => 'src/framework/Shared/Framework/Constraints/Constraint.cs'
--- src/framework/Constraints/Constraint.cs 2009-07-16 20:05:38 +0000
+++ src/framework/Shared/Framework/Constraints/Constraint.cs 2009-09-06 20:54:07 +0000
@@ -348,6 +348,8 @@
#endregion
#region After Modifier
+
+#if !NUNITLITE
/// <summary>
/// Returns a DelayedConstraint with the specified delay time.
/// </summary>
@@ -374,6 +376,8 @@
delayInMilliseconds,
pollingInterval);
}
+
+#endif
#endregion
#region IResolveConstraint Members
=== renamed file 'src/framework/Constraints/ConstraintBuilder.cs' => 'src/framework/Shared/Framework/Constraints/ConstraintBuilder.cs'
=== renamed file 'src/framework/Constraints/ConstraintExpression.cs' => 'src/framework/Shared/Framework/Constraints/ConstraintExpression.cs'
--- src/framework/Constraints/ConstraintExpression.cs 2009-08-23 04:31:22 +0000
+++ src/framework/Shared/Framework/Constraints/ConstraintExpression.cs 2009-09-07 01:59:23 +0000
@@ -58,7 +58,7 @@
: base( builder ) { }
#region Not
-
+
/// <summary>
/// Returns a ConstraintExpression that negates any
/// following constraint.
@@ -67,7 +67,7 @@
{
get { return this.Append(new NotOperator()); }
}
-
+
/// <summary>
/// Returns a ConstraintExpression that negates any
/// following constraint.
@@ -76,11 +76,11 @@
{
get { return this.Append(new NotOperator()); }
}
-
+
#endregion
-
+
#region All
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -90,11 +90,11 @@
{
get { return this.Append(new AllOperator()); }
}
-
+
#endregion
-
+
#region Some
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -104,11 +104,11 @@
{
get { return this.Append(new SomeOperator()); }
}
-
+
#endregion
-
+
#region None
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -118,11 +118,11 @@
{
get { return this.Append(new NoneOperator()); }
}
-
+
#endregion
-
+
#region Property
-
+
/// <summary>
/// Returns a new PropertyConstraintExpression, which will either
/// test for the existence of the named property on the object
@@ -132,11 +132,11 @@
{
return this.Append(new PropOperator(name));
}
-
+
#endregion
-
+
#region Length
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Length property of the object being tested.
@@ -145,11 +145,11 @@
{
get { return Property("Length"); }
}
-
+
#endregion
-
+
#region Count
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Count property of the object being tested.
@@ -158,11 +158,11 @@
{
get { return Property("Count"); }
}
-
+
#endregion
-
+
#region Message
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Message property of the object being tested.
@@ -171,11 +171,12 @@
{
get { return Property("Message"); }
}
-
+
#endregion
-
+
#region InnerException
-
+
+#if !NUNITLITE
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the InnerException property of the object being tested.
@@ -184,11 +185,12 @@
{
get { return Property("InnerException"); }
}
-
+#endif
+
#endregion
-
+
#region Attribute
-
+
/// <summary>
/// Returns a new AttributeConstraint checking for the
/// presence of a particular attribute on an object.
@@ -197,7 +199,7 @@
{
return this.Append(new AttributeOperator(expectedType));
}
-
+
#if NET_2_0
/// <summary>
/// Returns a new AttributeConstraint checking for the
@@ -207,12 +209,12 @@
{
return Attribute(typeof(T));
}
-
#endif
+
#endregion
-
+
#region With
-
+
/// <summary>
/// With is currently a NOP - reserved for future use.
/// </summary>
@@ -220,11 +222,12 @@
{
get { return this.Append(new WithOperator()); }
}
-
+
#endregion
-
+
#region Matches
-
+
+#if !NUNITLITE
/// <summary>
/// Returns the constraint provided as an argument - used to allow custom
/// custom constraints to easily participate in the syntax.
@@ -233,7 +236,7 @@
{
return this.Append(constraint);
}
-
+
#if NET_2_0
/// <summary>
/// Returns the constraint provided as an argument - used to allow custom
@@ -243,12 +246,13 @@
{
return this.Append(new PredicateConstraint<T>(predicate));
}
-
-#endif
+#endif
+#endif
+
#endregion
-
+
#region Null
-
+
/// <summary>
/// Returns a constraint that tests for null
/// </summary>
@@ -256,11 +260,11 @@
{
get { return (NullConstraint)this.Append(new NullConstraint()); }
}
-
+
#endregion
-
+
#region True
-
+
/// <summary>
/// Returns a constraint that tests for True
/// </summary>
@@ -268,11 +272,11 @@
{
get { return (TrueConstraint)this.Append(new TrueConstraint()); }
}
-
+
#endregion
-
+
#region False
-
+
/// <summary>
/// Returns a constraint that tests for False
/// </summary>
@@ -280,11 +284,11 @@
{
get { return (FalseConstraint)this.Append(new FalseConstraint()); }
}
-
+
#endregion
-
+
#region NaN
-
+
/// <summary>
/// Returns a constraint that tests for NaN
/// </summary>
@@ -292,11 +296,11 @@
{
get { return (NaNConstraint)this.Append(new NaNConstraint()); }
}
-
+
#endregion
-
+
#region Empty
-
+
/// <summary>
/// Returns a constraint that tests for empty
/// </summary>
@@ -304,11 +308,11 @@
{
get { return (EmptyConstraint)this.Append(new EmptyConstraint()); }
}
-
+
#endregion
-
+
#region Unique
-
+
/// <summary>
/// Returns a constraint that tests whether a collection
/// contains all unique items.
@@ -317,11 +321,12 @@
{
get { return (UniqueItemsConstraint)this.Append(new UniqueItemsConstraint()); }
}
-
+
#endregion
-
+
#region BinarySerializable
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in binary format.
/// </summary>
@@ -329,11 +334,13 @@
{
get { return (BinarySerializableConstraint)this.Append(new BinarySerializableConstraint()); }
}
-
+#endif
+
#endregion
-
+
#region XmlSerializable
-
+
+#if !NETCF_1_0
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in xml format.
/// </summary>
@@ -341,11 +348,12 @@
{
get { return (XmlSerializableConstraint)this.Append(new XmlSerializableConstraint()); }
}
-
+#endif
+
#endregion
-
+
#region EqualTo
-
+
/// <summary>
/// Returns a constraint that tests two items for equality
/// </summary>
@@ -353,11 +361,11 @@
{
return (EqualConstraint)this.Append(new EqualConstraint(expected));
}
-
+
#endregion
-
+
#region SameAs
-
+
/// <summary>
/// Returns a constraint that tests that two references are the same object
/// </summary>
@@ -365,11 +373,11 @@
{
return (SameAsConstraint)this.Append(new SameAsConstraint(expected));
}
-
+
#endregion
-
+
#region GreaterThan
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than the suppled argument
@@ -378,11 +386,11 @@
{
return (GreaterThanConstraint)this.Append(new GreaterThanConstraint(expected));
}
-
+
#endregion
-
+
#region GreaterThanOrEqualTo
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than or equal to the suppled argument
@@ -391,7 +399,7 @@
{
return (GreaterThanOrEqualConstraint)this.Append(new GreaterThanOrEqualConstraint(expected));
}
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than or equal to the suppled argument
@@ -400,11 +408,11 @@
{
return (GreaterThanOrEqualConstraint)this.Append(new GreaterThanOrEqualConstraint(expected));
}
-
+
#endregion
-
+
#region LessThan
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than the suppled argument
@@ -413,11 +421,11 @@
{
return (LessThanConstraint)this.Append(new LessThanConstraint(expected));
}
-
+
#endregion
-
+
#region LessThanOrEqualTo
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than or equal to the suppled argument
@@ -426,7 +434,7 @@
{
return (LessThanOrEqualConstraint)this.Append(new LessThanOrEqualConstraint(expected));
}
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than or equal to the suppled argument
@@ -435,11 +443,11 @@
{
return (LessThanOrEqualConstraint)this.Append(new LessThanOrEqualConstraint(expected));
}
-
+
#endregion
-
+
#region TypeOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual
/// value is of the exact type supplied as an argument.
@@ -448,7 +456,7 @@
{
return (ExactTypeConstraint)this.Append(new ExactTypeConstraint(expectedType));
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual
@@ -458,12 +466,12 @@
{
return (ExactTypeConstraint)this.Append(new ExactTypeConstraint(typeof(T)));
}
-
#endif
+
#endregion
-
+
#region InstanceOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is of the type supplied as an argument or a derived type.
@@ -472,7 +480,7 @@
{
return (InstanceOfTypeConstraint)this.Append(new InstanceOfTypeConstraint(expectedType));
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -482,8 +490,8 @@
{
return (InstanceOfTypeConstraint)this.Append(new InstanceOfTypeConstraint(typeof(T)));
}
-
#endif
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is of the type supplied as an argument or a derived type.
@@ -493,7 +501,7 @@
{
return (InstanceOfTypeConstraint)this.Append(new InstanceOfTypeConstraint(expectedType));
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -504,12 +512,12 @@
{
return (InstanceOfTypeConstraint)this.Append(new InstanceOfTypeConstraint(typeof(T)));
}
-
#endif
+
#endregion
-
+
#region AssignableFrom
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is assignable from the type supplied as an argument.
@@ -518,7 +526,7 @@
{
return (AssignableFromConstraint)this.Append(new AssignableFromConstraint(expectedType));
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -528,12 +536,12 @@
{
return (AssignableFromConstraint)this.Append(new AssignableFromConstraint(typeof(T)));
}
-
#endif
+
#endregion
-
+
#region AssignableTo
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is assignable from the type supplied as an argument.
@@ -542,7 +550,7 @@
{
return (AssignableToConstraint)this.Append(new AssignableToConstraint(expectedType));
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -552,12 +560,12 @@
{
return (AssignableToConstraint)this.Append(new AssignableToConstraint(typeof(T)));
}
-
#endif
+
#endregion
-
+
#region EquivalentTo
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is a collection containing the same elements as the
@@ -567,11 +575,11 @@
{
return (CollectionEquivalentConstraint)this.Append(new CollectionEquivalentConstraint(expected));
}
-
+
#endregion
-
+
#region SubsetOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is a subset of the collection supplied as an argument.
@@ -580,11 +588,11 @@
{
return (CollectionSubsetConstraint)this.Append(new CollectionSubsetConstraint(expected));
}
-
+
#endregion
-
+
#region Ordered
-
+
/// <summary>
/// Returns a constraint that tests whether a collection is ordered
/// </summary>
@@ -592,11 +600,11 @@
{
get { return (CollectionOrderedConstraint)this.Append(new CollectionOrderedConstraint()); }
}
-
+
#endregion
-
+
#region Member
-
+
/// <summary>
/// Returns a new CollectionContainsConstraint checking for the
/// presence of a particular object in the collection.
@@ -605,7 +613,7 @@
{
return (CollectionContainsConstraint)this.Append(new CollectionContainsConstraint(expected));
}
-
+
/// <summary>
/// Returns a new CollectionContainsConstraint checking for the
/// presence of a particular object in the collection.
@@ -614,11 +622,11 @@
{
return (CollectionContainsConstraint)this.Append(new CollectionContainsConstraint(expected));
}
-
+
#endregion
-
+
#region Contains
-
+
/// <summary>
/// Returns a new ContainsConstraint. This constraint
/// will, in turn, make use of the appropriate second-level
@@ -631,11 +639,11 @@
{
return (ContainsConstraint)this.Append(new ContainsConstraint(expected));
}
-
+
#endregion
-
+
#region StringContaining
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value contains the substring supplied as an argument.
@@ -644,7 +652,7 @@
{
return (SubstringConstraint)this.Append(new SubstringConstraint(expected));
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value contains the substring supplied as an argument.
@@ -653,11 +661,11 @@
{
return (SubstringConstraint)this.Append(new SubstringConstraint(expected));
}
-
+
#endregion
-
+
#region StartsWith
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value starts with the substring supplied as an argument.
@@ -666,7 +674,7 @@
{
return (StartsWithConstraint)this.Append(new StartsWithConstraint(expected));
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value starts with the substring supplied as an argument.
@@ -675,11 +683,11 @@
{
return (StartsWithConstraint)this.Append(new StartsWithConstraint(expected));
}
-
+
#endregion
-
+
#region EndsWith
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value ends with the substring supplied as an argument.
@@ -688,7 +696,7 @@
{
return (EndsWithConstraint)this.Append(new EndsWithConstraint(expected));
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value ends with the substring supplied as an argument.
@@ -697,11 +705,12 @@
{
return (EndsWithConstraint)this.Append(new EndsWithConstraint(expected));
}
-
+
#endregion
-
+
#region Matches
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
@@ -710,7 +719,7 @@
{
return (RegexConstraint)this.Append(new RegexConstraint(pattern));
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
@@ -719,11 +728,12 @@
{
return (RegexConstraint)this.Append(new RegexConstraint(pattern));
}
-
+#endif
+
#endregion
-
+
#region SamePath
-
+
/// <summary>
/// Returns a constraint that tests whether the path provided
/// is the same as an expected path after canonicalization.
@@ -732,11 +742,11 @@
{
return (SamePathConstraint)this.Append(new SamePathConstraint(expected));
}
-
+
#endregion
-
+
#region SamePathOrUnder
-
+
/// <summary>
/// Returns a constraint that tests whether the path provided
/// is the same path or under an expected path after canonicalization.
@@ -745,11 +755,11 @@
{
return (SamePathOrUnderConstraint)this.Append(new SamePathOrUnderConstraint(expected));
}
-
+
#endregion
-
+
#region InRange
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value falls
/// within a specified range.
@@ -758,8 +768,8 @@
{
return (RangeConstraint)this.Append(new RangeConstraint(from, to));
}
-
+
#endregion
-
+
}
}
=== renamed file 'src/framework/Constraints/ConstraintExpressionBase.cs' => 'src/framework/Shared/Framework/Constraints/ConstraintExpressionBase.cs'
=== renamed file 'src/framework/Constraints/ConstraintFactory.cs' => 'src/framework/Shared/Framework/Constraints/ConstraintFactory.cs'
--- src/framework/Constraints/ConstraintFactory.cs 2009-08-23 04:31:22 +0000
+++ src/framework/Shared/Framework/Constraints/ConstraintFactory.cs 2009-09-07 01:59:23 +0000
@@ -41,7 +41,7 @@
public class ConstraintFactory
{
#region Not
-
+
/// <summary>
/// Returns a ConstraintExpression that negates any
/// following constraint.
@@ -50,7 +50,7 @@
{
get { return Is.Not; }
}
-
+
/// <summary>
/// Returns a ConstraintExpression that negates any
/// following constraint.
@@ -59,11 +59,11 @@
{
get { return Has.No; }
}
-
+
#endregion
-
+
#region All
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -73,11 +73,11 @@
{
get { return Is.All; }
}
-
+
#endregion
-
+
#region Some
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -87,11 +87,11 @@
{
get { return Has.Some; }
}
-
+
#endregion
-
+
#region None
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -101,11 +101,11 @@
{
get { return Has.None; }
}
-
+
#endregion
-
+
#region Property
-
+
/// <summary>
/// Returns a new PropertyConstraintExpression, which will either
/// test for the existence of the named property on the object
@@ -115,11 +115,11 @@
{
return Has.Property(name);
}
-
+
#endregion
-
+
#region Length
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Length property of the object being tested.
@@ -128,11 +128,11 @@
{
get { return Has.Length; }
}
-
+
#endregion
-
+
#region Count
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Count property of the object being tested.
@@ -141,11 +141,11 @@
{
get { return Has.Count; }
}
-
+
#endregion
-
+
#region Message
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Message property of the object being tested.
@@ -154,11 +154,12 @@
{
get { return Has.Message; }
}
-
+
#endregion
-
+
#region InnerException
-
+
+#if !NUNITLITE
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the InnerException property of the object being tested.
@@ -167,11 +168,12 @@
{
get { return Has.InnerException; }
}
-
+#endif
+
#endregion
-
+
#region Attribute
-
+
/// <summary>
/// Returns a new AttributeConstraint checking for the
/// presence of a particular attribute on an object.
@@ -180,7 +182,7 @@
{
return Has.Attribute(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a new AttributeConstraint checking for the
@@ -190,12 +192,12 @@
{
return Attribute(typeof(T));
}
-
#endif
+
#endregion
-
+
#region Null
-
+
/// <summary>
/// Returns a constraint that tests for null
/// </summary>
@@ -203,11 +205,11 @@
{
get { return new NullConstraint(); }
}
-
+
#endregion
-
+
#region True
-
+
/// <summary>
/// Returns a constraint that tests for True
/// </summary>
@@ -215,11 +217,11 @@
{
get { return new TrueConstraint(); }
}
-
+
#endregion
-
+
#region False
-
+
/// <summary>
/// Returns a constraint that tests for False
/// </summary>
@@ -227,11 +229,11 @@
{
get { return new FalseConstraint(); }
}
-
+
#endregion
-
+
#region NaN
-
+
/// <summary>
/// Returns a constraint that tests for NaN
/// </summary>
@@ -239,11 +241,11 @@
{
get { return new NaNConstraint(); }
}
-
+
#endregion
-
+
#region Empty
-
+
/// <summary>
/// Returns a constraint that tests for empty
/// </summary>
@@ -251,11 +253,11 @@
{
get { return new EmptyConstraint(); }
}
-
+
#endregion
-
+
#region Unique
-
+
/// <summary>
/// Returns a constraint that tests whether a collection
/// contains all unique items.
@@ -264,11 +266,12 @@
{
get { return new UniqueItemsConstraint(); }
}
-
+
#endregion
-
+
#region BinarySerializable
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in binary format.
/// </summary>
@@ -276,11 +279,13 @@
{
get { return new BinarySerializableConstraint(); }
}
-
+#endif
+
#endregion
-
+
#region XmlSerializable
-
+
+#if !NETCF_1_0
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in xml format.
/// </summary>
@@ -288,11 +293,12 @@
{
get { return new XmlSerializableConstraint(); }
}
-
+#endif
+
#endregion
-
+
#region EqualTo
-
+
/// <summary>
/// Returns a constraint that tests two items for equality
/// </summary>
@@ -300,11 +306,11 @@
{
return new EqualConstraint(expected);
}
-
+
#endregion
-
+
#region SameAs
-
+
/// <summary>
/// Returns a constraint that tests that two references are the same object
/// </summary>
@@ -312,11 +318,11 @@
{
return new SameAsConstraint(expected);
}
-
+
#endregion
-
+
#region GreaterThan
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than the suppled argument
@@ -325,11 +331,11 @@
{
return new GreaterThanConstraint(expected);
}
-
+
#endregion
-
+
#region GreaterThanOrEqualTo
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than or equal to the suppled argument
@@ -338,7 +344,7 @@
{
return new GreaterThanOrEqualConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than or equal to the suppled argument
@@ -347,11 +353,11 @@
{
return new GreaterThanOrEqualConstraint(expected);
}
-
+
#endregion
-
+
#region LessThan
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than the suppled argument
@@ -360,11 +366,11 @@
{
return new LessThanConstraint(expected);
}
-
+
#endregion
-
+
#region LessThanOrEqualTo
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than or equal to the suppled argument
@@ -373,7 +379,7 @@
{
return new LessThanOrEqualConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than or equal to the suppled argument
@@ -382,11 +388,11 @@
{
return new LessThanOrEqualConstraint(expected);
}
-
+
#endregion
-
+
#region TypeOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual
/// value is of the exact type supplied as an argument.
@@ -395,7 +401,7 @@
{
return new ExactTypeConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual
@@ -405,12 +411,12 @@
{
return new ExactTypeConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region InstanceOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is of the type supplied as an argument or a derived type.
@@ -419,7 +425,7 @@
{
return new InstanceOfTypeConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -429,8 +435,8 @@
{
return new InstanceOfTypeConstraint(typeof(T));
}
-
#endif
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is of the type supplied as an argument or a derived type.
@@ -440,7 +446,7 @@
{
return new InstanceOfTypeConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -451,12 +457,12 @@
{
return new InstanceOfTypeConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region AssignableFrom
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is assignable from the type supplied as an argument.
@@ -465,7 +471,7 @@
{
return new AssignableFromConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -475,12 +481,12 @@
{
return new AssignableFromConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region AssignableTo
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is assignable from the type supplied as an argument.
@@ -489,7 +495,7 @@
{
return new AssignableToConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -499,12 +505,12 @@
{
return new AssignableToConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region EquivalentTo
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is a collection containing the same elements as the
@@ -514,11 +520,11 @@
{
return new CollectionEquivalentConstraint(expected);
}
-
+
#endregion
-
+
#region SubsetOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is a subset of the collection supplied as an argument.
@@ -527,11 +533,11 @@
{
return new CollectionSubsetConstraint(expected);
}
-
+
#endregion
-
+
#region Ordered
-
+
/// <summary>
/// Returns a constraint that tests whether a collection is ordered
/// </summary>
@@ -539,11 +545,11 @@
{
get { return new CollectionOrderedConstraint(); }
}
-
+
#endregion
-
+
#region Member
-
+
/// <summary>
/// Returns a new CollectionContainsConstraint checking for the
/// presence of a particular object in the collection.
@@ -552,7 +558,7 @@
{
return new CollectionContainsConstraint(expected);
}
-
+
/// <summary>
/// Returns a new CollectionContainsConstraint checking for the
/// presence of a particular object in the collection.
@@ -561,11 +567,11 @@
{
return new CollectionContainsConstraint(expected);
}
-
+
#endregion
-
+
#region Contains
-
+
/// <summary>
/// Returns a new ContainsConstraint. This constraint
/// will, in turn, make use of the appropriate second-level
@@ -578,11 +584,11 @@
{
return new ContainsConstraint(expected);
}
-
+
#endregion
-
+
#region StringContaining
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value contains the substring supplied as an argument.
@@ -591,7 +597,7 @@
{
return new SubstringConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value contains the substring supplied as an argument.
@@ -600,11 +606,11 @@
{
return new SubstringConstraint(expected);
}
-
+
#endregion
-
+
#region DoesNotContain
-
+
/// <summary>
/// Returns a constraint that fails if the actual
/// value contains the substring supplied as an argument.
@@ -613,11 +619,11 @@
{
return new ConstraintExpression().Not.ContainsSubstring(expected);
}
-
+
#endregion
-
+
#region StartsWith
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value starts with the substring supplied as an argument.
@@ -626,7 +632,7 @@
{
return new StartsWithConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value starts with the substring supplied as an argument.
@@ -635,11 +641,11 @@
{
return new StartsWithConstraint(expected);
}
-
+
#endregion
-
+
#region DoesNotStartWith
-
+
/// <summary>
/// Returns a constraint that fails if the actual
/// value starts with the substring supplied as an argument.
@@ -648,11 +654,11 @@
{
return new ConstraintExpression().Not.StartsWith(expected);
}
-
+
#endregion
-
+
#region EndsWith
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value ends with the substring supplied as an argument.
@@ -661,7 +667,7 @@
{
return new EndsWithConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value ends with the substring supplied as an argument.
@@ -670,11 +676,11 @@
{
return new EndsWithConstraint(expected);
}
-
+
#endregion
-
+
#region DoesNotEndWith
-
+
/// <summary>
/// Returns a constraint that fails if the actual
/// value ends with the substring supplied as an argument.
@@ -683,11 +689,12 @@
{
return new ConstraintExpression().Not.EndsWith(expected);
}
-
+
#endregion
-
+
#region Matches
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
@@ -696,7 +703,7 @@
{
return new RegexConstraint(pattern);
}
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
@@ -705,11 +712,13 @@
{
return new RegexConstraint(pattern);
}
-
+#endif
+
#endregion
-
+
#region DoesNotMatch
-
+
+#if !NUNITLITE
/// <summary>
/// Returns a constraint that fails if the actual
/// value matches the pattern supplied as an argument.
@@ -718,11 +727,12 @@
{
return new ConstraintExpression().Not.Matches(pattern);
}
-
+#endif
+
#endregion
-
+
#region SamePath
-
+
/// <summary>
/// Returns a constraint that tests whether the path provided
/// is the same as an expected path after canonicalization.
@@ -731,11 +741,11 @@
{
return new SamePathConstraint(expected);
}
-
+
#endregion
-
+
#region SamePathOrUnder
-
+
/// <summary>
/// Returns a constraint that tests whether the path provided
/// is the same path or under an expected path after canonicalization.
@@ -744,11 +754,11 @@
{
return new SamePathOrUnderConstraint(expected);
}
-
+
#endregion
-
+
#region InRange
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value falls
/// within a specified range.
@@ -757,8 +767,8 @@
{
return new RangeConstraint(from, to);
}
-
+
#endregion
-
+
}
}
=== renamed file 'src/framework/Constraints/ConstraintOperators.cs' => 'src/framework/Shared/Framework/Constraints/ConstraintOperators.cs'
=== renamed file 'src/framework/Constraints/ContainsConstraint.cs' => 'src/framework/Shared/Framework/Constraints/ContainsConstraint.cs'
=== renamed file 'src/framework/Constraints/EmptyConstraint.cs' => 'src/framework/Shared/Framework/Constraints/EmptyConstraint.cs'
=== renamed file 'src/framework/Constraints/EqualConstraint.cs' => 'src/framework/Shared/Framework/Constraints/EqualConstraint.cs'
=== renamed file 'src/framework/Constraints/EqualityAdapter.cs' => 'src/framework/Shared/Framework/Constraints/EqualityAdapter.cs'
=== renamed file 'src/framework/Constraints/FloatingPointNumerics.cs' => 'src/framework/Shared/Framework/Constraints/FloatingPointNumerics.cs'
=== renamed file 'src/framework/Constraints/IResolveConstraint.cs' => 'src/framework/Shared/Framework/Constraints/IResolveConstraint.cs'
=== renamed file 'src/framework/Constraints/MessageWriter.cs' => 'src/framework/Shared/Framework/Constraints/MessageWriter.cs'
=== renamed file 'src/framework/Constraints/MsgUtils.cs' => 'src/framework/Shared/Framework/Constraints/MsgUtils.cs'
--- src/framework/Constraints/MsgUtils.cs 2009-07-16 20:05:38 +0000
+++ src/framework/Shared/Framework/Constraints/MsgUtils.cs 2009-09-06 20:54:07 +0000
@@ -127,7 +127,7 @@
case '\x0085':
case '\x2028':
case '\x2029':
- sb.AppendFormat("\\x{0:X4}", (int)c);
+ sb.Append(string.Format("\\x{0:X4}", (int)c));
break;
default:
=== renamed file 'src/framework/Constraints/NUnitComparer.cs' => 'src/framework/Shared/Framework/Constraints/NUnitComparer.cs'
=== renamed file 'src/framework/Constraints/NUnitEqualityComparer.cs' => 'src/framework/Shared/Framework/Constraints/NUnitEqualityComparer.cs'
=== renamed file 'src/framework/Constraints/Numerics.cs' => 'src/framework/Shared/Framework/Constraints/Numerics.cs'
=== renamed file 'src/framework/Constraints/PathConstraints.cs' => 'src/framework/Shared/Framework/Constraints/PathConstraints.cs'
=== renamed file 'src/framework/Constraints/PrefixConstraints.cs' => 'src/framework/Shared/Framework/Constraints/PrefixConstraints.cs'
=== renamed file 'src/framework/Constraints/PropertyConstraint.cs' => 'src/framework/Shared/Framework/Constraints/PropertyConstraint.cs'
=== renamed file 'src/framework/Constraints/RangeConstraint.cs' => 'src/framework/Shared/Framework/Constraints/RangeConstraint.cs'
=== renamed file 'src/framework/Constraints/ResolvableConstraintExpression.cs' => 'src/framework/Shared/Framework/Constraints/ResolvableConstraintExpression.cs'
=== renamed file 'src/framework/Constraints/SameAsConstraint.cs' => 'src/framework/Shared/Framework/Constraints/SameAsConstraint.cs'
=== renamed file 'src/framework/Constraints/StringConstraints.cs' => 'src/framework/Shared/Framework/Constraints/StringConstraints.cs'
=== renamed file 'src/framework/Constraints/ThrowsConstraint.cs' => 'src/framework/Shared/Framework/Constraints/ThrowsConstraint.cs'
=== renamed file 'src/framework/Constraints/Tolerance.cs' => 'src/framework/Shared/Framework/Constraints/Tolerance.cs'
=== renamed file 'src/framework/Constraints/TypeConstraints.cs' => 'src/framework/Shared/Framework/Constraints/TypeConstraints.cs'
=== added file 'src/framework/Shared/Framework/Constraints/XmlSerializableConstraint.cs'
--- src/framework/Shared/Framework/Constraints/XmlSerializableConstraint.cs 1970-01-01 00:00:00 +0000
+++ src/framework/Shared/Framework/Constraints/XmlSerializableConstraint.cs 2009-09-06 22:03:03 +0000
@@ -0,0 +1,108 @@
+// ***********************************************************************
+// Copyright (c) 2008 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.
+// ***********************************************************************
+
+#if !NETCF_1_0
+using System;
+using System.IO;
+#if !NETCF
+using System.Runtime.Serialization;
+#endif
+using System.Xml.Serialization;
+
+namespace NUnit.Framework.Constraints
+{
+ /// <summary>
+ /// BinarySerializableConstraint tests whether
+ /// an object is serializable in binary format.
+ /// </summary>
+ public class XmlSerializableConstraint : Constraint
+ {
+ private XmlSerializer serializer;
+
+ /// <summary>
+ /// Test whether the constraint is satisfied by a given value
+ /// </summary>
+ /// <param name="actual">The value to be tested</param>
+ /// <returns>True for success, false for failure</returns>
+ public override bool Matches(object actual)
+ {
+ this.actual = actual;
+
+ if(actual == null)
+ throw new ArgumentException();
+
+ MemoryStream stream = new MemoryStream();
+
+ try
+ {
+ serializer = new XmlSerializer(actual.GetType());
+
+ serializer.Serialize(stream, actual);
+
+ stream.Seek(0, SeekOrigin.Begin);
+
+ object value = serializer.Deserialize(stream);
+
+ return value != null;
+ }
+ catch (NotSupportedException)
+ {
+ return false;
+ }
+ catch (InvalidOperationException)
+ {
+ return false;
+ }
+ }
+
+ /// <summary>
+ /// Write the constraint description to a MessageWriter
+ /// </summary>
+ /// <param name="writer">The writer on which the description is displayed</param>
+ public override void WriteDescriptionTo(MessageWriter writer)
+ {
+ writer.Write("xml serializable");
+ }
+
+ /// <summary>
+ /// 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.
+ /// </summary>
+ /// <param name="writer">The writer on which the actual value is displayed</param>
+ public override void WriteActualValueTo(MessageWriter writer)
+ {
+ writer.Write("<{0}>", actual.GetType().Name);
+ }
+
+ /// <summary>
+ /// Returns the string representation of this constraint
+ /// </summary>
+ public override string ToString()
+ {
+ return "<xmlserializable>";
+ }
+ }
+}
+#endif
\ No newline at end of file
=== renamed file 'src/framework/DescriptionAttribute.cs' => 'src/framework/Shared/Framework/DescriptionAttribute.cs'
--- src/framework/DescriptionAttribute.cs 2009-07-16 19:37:36 +0000
+++ src/framework/Shared/Framework/DescriptionAttribute.cs 2009-09-12 03:41:51 +0000
@@ -29,26 +29,14 @@
/// Attribute used to provide descriptive text about a
/// test case or fixture.
/// </summary>
- [AttributeUsage(AttributeTargets.Class|AttributeTargets.Method|AttributeTargets.Assembly, AllowMultiple=false)]
- public class DescriptionAttribute : Attribute
- {
- string description;
-
- /// <summary>
- /// Construct the attribute
- /// </summary>
- /// <param name="description">Text describing the test</param>
- public DescriptionAttribute(string description)
- {
- this.description=description;
- }
-
- /// <summary>
- /// Gets the test description
- /// </summary>
- public string Description
- {
- get { return description; }
- }
- }
+ [AttributeUsage(AttributeTargets.Method | AttributeTargets.Class | AttributeTargets.Assembly, AllowMultiple = false)]
+ public sealed class DescriptionAttribute : PropertyAttribute
+ {
+ /// <summary>
+ /// Construct a description Attribute
+ /// </summary>
+ /// <param name="description">The text of the description</param>
+ public DescriptionAttribute(string description) : base(description) { }
+ }
+
}
=== renamed file 'src/framework/ExpectedExceptionAttribute.cs' => 'src/framework/Shared/Framework/ExpectedExceptionAttribute.cs'
--- src/framework/ExpectedExceptionAttribute.cs 2009-07-16 19:37:36 +0000
+++ src/framework/Shared/Framework/ExpectedExceptionAttribute.cs 2009-09-06 20:54:07 +0000
@@ -23,119 +23,118 @@
namespace NUnit.Framework
{
- using System;
+ using System;
- /// <summary>
- /// Enumeration indicating how the expected message parameter is to be used
- /// </summary>
- public enum MessageMatch
- {
- /// Expect an exact match
- Exact,
- /// Expect a message containing the parameter string
- Contains,
- /// Match the regular expression provided as a parameter
- Regex,
+ /// <summary>
+ /// Enumeration indicating how the expected message parameter is to be used
+ /// </summary>
+ public enum MessageMatch
+ {
+ /// Expect an exact match
+ Exact,
+ /// Expect a message containing the parameter string
+ Contains,
+ /// Match the regular expression provided as a parameter
+ Regex,
/// Expect a message that starts with the parameter string
StartsWith
- }
-
- /// <summary>
- /// ExpectedExceptionAttribute
- /// </summary>
- ///
- [AttributeUsage(AttributeTargets.Method, AllowMultiple=false)]
- public class ExpectedExceptionAttribute : Attribute
- {
- private Type expectedException;
- private string expectedExceptionName;
- private string expectedMessage;
- private MessageMatch matchType;
- private string userMessage;
- private string handler;
-
- /// <summary>
- /// Constructor for a non-specific exception
- /// </summary>
- public ExpectedExceptionAttribute()
- {
- }
-
- /// <summary>
- /// Constructor for a given type of exception
- /// </summary>
- /// <param name="exceptionType">The type of the expected exception</param>
- public ExpectedExceptionAttribute(Type exceptionType)
- {
- this.expectedException = exceptionType;
- this.expectedExceptionName = exceptionType.FullName;
- }
-
- /// <summary>
- /// Constructor for a given exception name
- /// </summary>
- /// <param name="exceptionName">The full name of the expected exception</param>
- public ExpectedExceptionAttribute(string exceptionName)
- {
- this.expectedExceptionName = exceptionName;
- }
-
- /// <summary>
- /// Gets or sets the expected exception type
- /// </summary>
- public Type ExpectedException
- {
- get{ return expectedException; }
- set
- {
+ }
+
+ /// <summary>
+ /// ExpectedExceptionAttribute
+ /// </summary>
+ [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
+ public class ExpectedExceptionAttribute : Attribute
+ {
+ private Type expectedException;
+ private string expectedExceptionName;
+ private string expectedMessage;
+ private MessageMatch matchType;
+ private string userMessage;
+ private string handler;
+
+ /// <summary>
+ /// Constructor for a non-specific exception
+ /// </summary>
+ public ExpectedExceptionAttribute()
+ {
+ }
+
+ /// <summary>
+ /// Constructor for a given type of exception
+ /// </summary>
+ /// <param name="exceptionType">The type of the expected exception</param>
+ public ExpectedExceptionAttribute(Type exceptionType)
+ {
+ this.expectedException = exceptionType;
+ this.expectedExceptionName = exceptionType.FullName;
+ }
+
+ /// <summary>
+ /// Constructor for a given exception name
+ /// </summary>
+ /// <param name="exceptionName">The full name of the expected exception</param>
+ public ExpectedExceptionAttribute(string exceptionName)
+ {
+ this.expectedExceptionName = exceptionName;
+ }
+
+ /// <summary>
+ /// Gets or sets the expected exception type
+ /// </summary>
+ public Type ExpectedException
+ {
+ get { return expectedException; }
+ set
+ {
expectedException = value;
expectedExceptionName = expectedException.FullName;
}
- }
-
- /// <summary>
- /// Gets or sets the full Type name of the expected exception
- /// </summary>
- public string ExpectedExceptionName
- {
- get{ return expectedExceptionName; }
- set{ expectedExceptionName = value; }
- }
-
- /// <summary>
- /// Gets or sets the expected message text
- /// </summary>
- public string ExpectedMessage
- {
- get { return expectedMessage; }
- set { expectedMessage = value; }
- }
-
- /// <summary>
- /// Gets or sets the user message displayed in case of failure
- /// </summary>
- public string UserMessage
- {
- get { return userMessage; }
- set { userMessage = value; }
- }
-
- /// <summary>
- /// Gets or sets the type of match to be performed on the expected message
- /// </summary>
- public MessageMatch MatchType
- {
- get { return matchType; }
- set { matchType = value; }
- }
-
- /// <summary>
- /// Gets the name of a method to be used as an exception handler
- /// </summary>
- public string Handler
- {
- get { return handler; }
- set { handler = value; }
- }
- }
+ }
+
+ /// <summary>
+ /// Gets or sets the full Type name of the expected exception
+ /// </summary>
+ public string ExpectedExceptionName
+ {
+ get { return expectedExceptionName; }
+ set { expectedExceptionName = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets the expected message text
+ /// </summary>
+ public string ExpectedMessage
+ {
+ get { return expectedMessage; }
+ set { expectedMessage = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets the user message displayed in case of failure
+ /// </summary>
+ public string UserMessage
+ {
+ get { return userMessage; }
+ set { userMessage = value; }
+ }
+
+ /// <summary>
+ /// Gets or sets the type of match to be performed on the expected message
+ /// </summary>
+ public MessageMatch MatchType
+ {
+ get { return matchType; }
+ set { matchType = value; }
+ }
+
+ /// <summary>
+ /// Gets the name of a method to be used as an exception handler
+ /// </summary>
+ public string Handler
+ {
+ get { return handler; }
+ set { handler = value; }
+ }
+ }
}
=== renamed file 'src/framework/GlobalSettings.cs' => 'src/framework/Shared/Framework/GlobalSettings.cs'
=== renamed file 'src/framework/Has.cs' => 'src/framework/Shared/Framework/Has.cs'
--- src/framework/Has.cs 2009-08-23 04:31:22 +0000
+++ src/framework/Shared/Framework/Has.cs 2009-09-06 20:54:07 +0000
@@ -42,7 +42,7 @@
public class Has
{
#region No
-
+
/// <summary>
/// Returns a ConstraintExpression that negates any
/// following constraint.
@@ -51,11 +51,11 @@
{
get { return new ConstraintExpression().Not; }
}
-
+
#endregion
-
+
#region All
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -65,11 +65,11 @@
{
get { return new ConstraintExpression().All; }
}
-
+
#endregion
-
+
#region Some
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -79,11 +79,11 @@
{
get { return new ConstraintExpression().Some; }
}
-
+
#endregion
-
+
#region None
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -93,11 +93,11 @@
{
get { return new ConstraintExpression().None; }
}
-
+
#endregion
-
+
#region Property
-
+
/// <summary>
/// Returns a new PropertyConstraintExpression, which will either
/// test for the existence of the named property on the object
@@ -107,11 +107,11 @@
{
return new ConstraintExpression().Property(name);
}
-
+
#endregion
-
+
#region Length
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Length property of the object being tested.
@@ -120,11 +120,11 @@
{
get { return Property("Length"); }
}
-
+
#endregion
-
+
#region Count
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Count property of the object being tested.
@@ -133,11 +133,11 @@
{
get { return Property("Count"); }
}
-
+
#endregion
-
+
#region Message
-
+
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the Message property of the object being tested.
@@ -146,11 +146,12 @@
{
get { return Property("Message"); }
}
-
+
#endregion
-
+
#region InnerException
-
+
+#if !NUNITLITE
/// <summary>
/// Returns a new ConstraintExpression, which will apply the following
/// constraint to the InnerException property of the object being tested.
@@ -159,11 +160,12 @@
{
get { return Property("InnerException"); }
}
-
+#endif
+
#endregion
-
+
#region Attribute
-
+
/// <summary>
/// Returns a new AttributeConstraint checking for the
/// presence of a particular attribute on an object.
@@ -172,7 +174,7 @@
{
return new ConstraintExpression().Attribute(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a new AttributeConstraint checking for the
@@ -182,12 +184,12 @@
{
return Attribute(typeof(T));
}
-
#endif
+
#endregion
-
+
#region Member
-
+
/// <summary>
/// Returns a new CollectionContainsConstraint checking for the
/// presence of a particular object in the collection.
@@ -196,8 +198,8 @@
{
return new CollectionContainsConstraint(expected);
}
-
+
#endregion
-
+
}
}
=== renamed file 'src/framework/IExpectException.cs' => 'src/framework/Shared/Framework/IExpectException.cs'
=== added file 'src/framework/Shared/Framework/ITestCaseData.cs'
--- src/framework/Shared/Framework/ITestCaseData.cs 1970-01-01 00:00:00 +0000
+++ src/framework/Shared/Framework/ITestCaseData.cs 2009-09-06 21:02:19 +0000
@@ -0,0 +1,86 @@
+// ***********************************************************************
+// Copyright (c) 2009 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.
+// ***********************************************************************
+
+using System;
+
+namespace NUnit.Framework
+{
+ /// <summary>
+ /// 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.
+ /// </summary>
+ public interface ITestCaseData
+ {
+ /// <summary>
+ /// Gets the argument list to be provided to the test
+ /// </summary>
+ object[] Arguments { get; }
+
+#if !NUNITLITE
+ /// <summary>
+ /// Gets the expected exception Type
+ /// </summary>
+ Type ExpectedException { get; }
+
+ /// <summary>
+ /// Gets the expected result
+ /// </summary>
+ object Result { get; }
+
+ /// <summary>
+ /// Gets the FullName of the expected exception
+ /// </summary>
+ string ExpectedExceptionName { get; }
+
+ /// <summary>
+ /// Gets the name to be used for the test
+ /// </summary>
+ string TestName { get; }
+
+ /// <summary>
+ /// Gets the description of the test
+ /// </summary>
+ string Description { get; }
+
+ /// <summary>
+ /// Gets a value indicating whether this <see cref="ITestCaseData"/> is ignored.
+ /// </summary>
+ /// <value><c>true</c> if ignored; otherwise, <c>false</c>.</value>
+ bool Ignored { get; }
+
+ /// <summary>
+ /// Gets the ignore reason.
+ /// </summary>
+ /// <value>The ignore reason.</value>
+ string IgnoreReason { get; }
+#endif
+ }
+}
=== renamed file 'src/framework/IgnoreAttribute.cs' => 'src/framework/Shared/Framework/IgnoreAttribute.cs'
=== renamed file 'src/framework/Is.cs' => 'src/framework/Shared/Framework/Is.cs'
--- src/framework/Is.cs 2009-07-16 19:37:36 +0000
+++ src/framework/Shared/Framework/Is.cs 2009-09-07 01:59:23 +0000
@@ -42,7 +42,7 @@
public class Is
{
#region Not
-
+
/// <summary>
/// Returns a ConstraintExpression that negates any
/// following constraint.
@@ -51,11 +51,11 @@
{
get { return new ConstraintExpression().Not; }
}
-
+
#endregion
-
+
#region All
-
+
/// <summary>
/// Returns a ConstraintExpression, which will apply
/// the following constraint to all members of a collection,
@@ -65,11 +65,11 @@
{
get { return new ConstraintExpression().All; }
}
-
+
#endregion
-
+
#region Null
-
+
/// <summary>
/// Returns a constraint that tests for null
/// </summary>
@@ -77,11 +77,11 @@
{
get { return new NullConstraint(); }
}
-
+
#endregion
-
+
#region True
-
+
/// <summary>
/// Returns a constraint that tests for True
/// </summary>
@@ -89,11 +89,11 @@
{
get { return new TrueConstraint(); }
}
-
+
#endregion
-
+
#region False
-
+
/// <summary>
/// Returns a constraint that tests for False
/// </summary>
@@ -101,11 +101,11 @@
{
get { return new FalseConstraint(); }
}
-
+
#endregion
-
+
#region NaN
-
+
/// <summary>
/// Returns a constraint that tests for NaN
/// </summary>
@@ -113,11 +113,11 @@
{
get { return new NaNConstraint(); }
}
-
+
#endregion
-
+
#region Empty
-
+
/// <summary>
/// Returns a constraint that tests for empty
/// </summary>
@@ -125,11 +125,11 @@
{
get { return new EmptyConstraint(); }
}
-
+
#endregion
-
+
#region Unique
-
+
/// <summary>
/// Returns a constraint that tests whether a collection
/// contains all unique items.
@@ -138,11 +138,12 @@
{
get { return new UniqueItemsConstraint(); }
}
-
+
#endregion
-
+
#region BinarySerializable
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in binary format.
/// </summary>
@@ -150,11 +151,13 @@
{
get { return new BinarySerializableConstraint(); }
}
-
+#endif
+
#endregion
-
+
#region XmlSerializable
-
+
+#if !NETCF_1_0
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in xml format.
/// </summary>
@@ -162,11 +165,12 @@
{
get { return new XmlSerializableConstraint(); }
}
-
+#endif
+
#endregion
-
+
#region EqualTo
-
+
/// <summary>
/// Returns a constraint that tests two items for equality
/// </summary>
@@ -174,11 +178,11 @@
{
return new EqualConstraint(expected);
}
-
+
#endregion
-
+
#region SameAs
-
+
/// <summary>
/// Returns a constraint that tests that two references are the same object
/// </summary>
@@ -186,11 +190,11 @@
{
return new SameAsConstraint(expected);
}
-
+
#endregion
-
+
#region GreaterThan
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than the suppled argument
@@ -199,11 +203,11 @@
{
return new GreaterThanConstraint(expected);
}
-
+
#endregion
-
+
#region GreaterThanOrEqualTo
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than or equal to the suppled argument
@@ -212,7 +216,7 @@
{
return new GreaterThanOrEqualConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is greater than or equal to the suppled argument
@@ -221,11 +225,11 @@
{
return new GreaterThanOrEqualConstraint(expected);
}
-
+
#endregion
-
+
#region LessThan
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than the suppled argument
@@ -234,11 +238,11 @@
{
return new LessThanConstraint(expected);
}
-
+
#endregion
-
+
#region LessThanOrEqualTo
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than or equal to the suppled argument
@@ -247,7 +251,7 @@
{
return new LessThanOrEqualConstraint(expected);
}
-
+
/// <summary>
/// Returns a constraint that tests whether the
/// actual value is less than or equal to the suppled argument
@@ -256,11 +260,11 @@
{
return new LessThanOrEqualConstraint(expected);
}
-
+
#endregion
-
+
#region TypeOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual
/// value is of the exact type supplied as an argument.
@@ -269,7 +273,7 @@
{
return new ExactTypeConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual
@@ -279,12 +283,12 @@
{
return new ExactTypeConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region InstanceOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is of the type supplied as an argument or a derived type.
@@ -293,7 +297,7 @@
{
return new InstanceOfTypeConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -303,8 +307,8 @@
{
return new InstanceOfTypeConstraint(typeof(T));
}
-
#endif
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is of the type supplied as an argument or a derived type.
@@ -314,7 +318,7 @@
{
return new InstanceOfTypeConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -325,12 +329,12 @@
{
return new InstanceOfTypeConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region AssignableFrom
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is assignable from the type supplied as an argument.
@@ -339,7 +343,7 @@
{
return new AssignableFromConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -349,12 +353,12 @@
{
return new AssignableFromConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region AssignableTo
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is assignable from the type supplied as an argument.
@@ -363,7 +367,7 @@
{
return new AssignableToConstraint(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Returns a constraint that tests whether the actual value
@@ -373,12 +377,12 @@
{
return new AssignableToConstraint(typeof(T));
}
-
#endif
+
#endregion
-
+
#region EquivalentTo
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is a collection containing the same elements as the
@@ -388,11 +392,11 @@
{
return new CollectionEquivalentConstraint(expected);
}
-
+
#endregion
-
+
#region SubsetOf
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value
/// is a subset of the collection supplied as an argument.
@@ -401,11 +405,11 @@
{
return new CollectionSubsetConstraint(expected);
}
-
+
#endregion
-
+
#region Ordered
-
+
/// <summary>
/// Returns a constraint that tests whether a collection is ordered
/// </summary>
@@ -413,11 +417,11 @@
{
get { return new CollectionOrderedConstraint(); }
}
-
+
#endregion
-
+
#region StringContaining
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value contains the substring supplied as an argument.
@@ -426,11 +430,11 @@
{
return new SubstringConstraint(expected);
}
-
+
#endregion
-
+
#region StringStarting
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value starts with the substring supplied as an argument.
@@ -439,11 +443,11 @@
{
return new StartsWithConstraint(expected);
}
-
+
#endregion
-
+
#region StringEnding
-
+
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value ends with the substring supplied as an argument.
@@ -452,11 +456,12 @@
{
return new EndsWithConstraint(expected);
}
-
+
#endregion
-
+
#region StringMatching
-
+
+#if !NETCF
/// <summary>
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
@@ -465,11 +470,12 @@
{
return new RegexConstraint(pattern);
}
-
+#endif
+
#endregion
-
+
#region SamePath
-
+
/// <summary>
/// Returns a constraint that tests whether the path provided
/// is the same as an expected path after canonicalization.
@@ -478,11 +484,11 @@
{
return new SamePathConstraint(expected);
}
-
+
#endregion
-
+
#region SamePathOrUnder
-
+
/// <summary>
/// Returns a constraint that tests whether the path provided
/// is the same path or under an expected path after canonicalization.
@@ -491,11 +497,11 @@
{
return new SamePathOrUnderConstraint(expected);
}
-
+
#endregion
-
+
#region InRange
-
+
/// <summary>
/// Returns a constraint that tests whether the actual value falls
/// within a specified range.
@@ -504,8 +510,8 @@
{
return new RangeConstraint(from, to);
}
-
+
#endregion
-
+
}
}
=== renamed file 'src/framework/ListMapper.cs' => 'src/framework/Shared/Framework/ListMapper.cs'
=== renamed file 'src/framework/PropertyAttribute.cs' => 'src/framework/Shared/Framework/PropertyAttribute.cs'
=== renamed file 'src/framework/SetUpAttribute.cs' => 'src/framework/Shared/Framework/SetUpAttribute.cs'
=== renamed file 'src/framework/SpecialValue.cs' => 'src/framework/Shared/Framework/SpecialValue.cs'
=== renamed file 'src/framework/TearDownAttribute.cs' => 'src/framework/Shared/Framework/TearDownAttribute.cs'
=== renamed file 'src/framework/TestAttribute.cs' => 'src/framework/Shared/Framework/TestAttribute.cs'
=== renamed file 'src/framework/TestCaseAttribute.cs' => 'src/framework/Shared/Framework/TestCaseAttribute.cs'
--- src/framework/TestCaseAttribute.cs 2009-08-23 02:46:52 +0000
+++ src/framework/Shared/Framework/TestCaseAttribute.cs 2009-09-06 20:54:07 +0000
@@ -35,15 +35,17 @@
public class TestCaseAttribute : Attribute, ITestCaseData
{
private object[] arguments;
- private object result;
+#if !NUNITLITE
private Type expectedExceptionType;
private string expectedExceptionName;
private string expectedMessage;
private MessageMatch matchType;
+ private object result;
private string description;
private string testName;
private bool isIgnored;
private string ignoreReason;
+#endif
/// <summary>
/// Construct a TestCaseAttribute with a list of arguments.
@@ -96,6 +98,7 @@
get { return arguments; }
}
+#if !NUNITLITE
/// <summary>
/// Gets or sets the expected result.
/// </summary>
@@ -204,5 +207,6 @@
isIgnored = ignoreReason != null && ignoreReason != string.Empty;
}
}
+#endif
}
}
=== renamed file 'src/framework/TestCaseData.cs' => 'src/framework/Shared/Framework/TestCaseData.cs'
--- src/framework/TestCaseData.cs 2009-08-23 02:46:52 +0000
+++ src/framework/Shared/Framework/TestCaseData.cs 2009-09-12 03:41:51 +0000
@@ -25,6 +25,7 @@
using System.Collections;
using System.Collections.Specialized;
+// TODO: Remove conditional code
namespace NUnit.Framework
{
/// <summary>
@@ -39,9 +40,9 @@
public class TestCaseData : ITestCaseData
{
#region Constants
- //private static readonly string DESCRIPTION = "_DESCRIPTION";
- //private static readonly string IGNOREREASON = "_IGNOREREASON";
+#if !NUNITLITE
private static readonly string CATEGORIES = "_CATEGORIES";
+#endif
#endregion
#region Instance Fields
@@ -50,6 +51,7 @@
/// </summary>
private object[] arguments;
+#if !NUNITLITE
/// <summary>
/// The expected result to be returned
/// </summary>
@@ -90,7 +92,7 @@
/// The reason for ignoring a test case
/// </summary>
string ignoreReason;
-
+#endif
#endregion
#region Constructors
@@ -146,6 +148,7 @@
get { return arguments; }
}
+#if !NUNITLITE
/// <summary>
/// Gets the expected result
/// </summary>
@@ -203,8 +206,10 @@
{
get { return ignoreReason; }
}
+#endif
#endregion
+#if !NUNITLITE
#region Additional Public Properties
/// <summary>
/// Gets a list of categories associated with this test.
@@ -361,5 +366,6 @@
return this;
}
#endregion
+#endif
}
}
=== renamed file 'src/framework/TestCaseSourceAttribute.cs' => 'src/framework/Shared/Framework/TestCaseSourceAttribute.cs'
=== renamed file 'src/framework/TestFixtureAttribute.cs' => 'src/framework/Shared/Framework/TestFixtureAttribute.cs'
=== renamed file 'src/framework/TextMessageWriter.cs' => 'src/framework/Shared/Framework/TextMessageWriter.cs'
=== renamed file 'src/framework/Throws.cs' => 'src/framework/Shared/Framework/Throws.cs'
--- src/framework/Throws.cs 2009-08-23 04:31:22 +0000
+++ src/framework/Shared/Framework/Throws.cs 2009-09-06 20:54:07 +0000
@@ -42,7 +42,7 @@
public class Throws
{
#region Exception
-
+
/// <summary>
/// Creates a constraint specifying an expected exception
/// </summary>
@@ -50,11 +50,12 @@
{
get { return new ConstraintExpression().Append(new ThrowsOperator()); }
}
-
+
#endregion
-
+
#region InnerException
-
+
+#if !NUNITLITE
/// <summary>
/// Creates a constraint specifying an exception with a given InnerException
/// </summary>
@@ -62,11 +63,13 @@
{
get { return Exception.InnerException; }
}
-
+#endif
+
#endregion
-
+
#region TargetInvocationException
-
+
+#if !NUNITLITE
/// <summary>
/// Creates a constraint specifying an expected TargetInvocationException
/// </summary>
@@ -74,11 +77,13 @@
{
get { return TypeOf(typeof(System.Reflection.TargetInvocationException)); }
}
-
+#endif
+
#endregion
-
+
#region ArgumentException
-
+
+#if !NUNITLITE
/// <summary>
/// Creates a constraint specifying an expected TargetInvocationException
/// </summary>
@@ -86,11 +91,13 @@
{
get { return TypeOf(typeof(System.ArgumentException)); }
}
-
+#endif
+
#endregion
-
+
#region InvalidOperationException
-
+
+#if !NUNITLITE
/// <summary>
/// Creates a constraint specifying an expected TargetInvocationException
/// </summary>
@@ -98,11 +105,12 @@
{
get { return TypeOf(typeof(System.InvalidOperationException)); }
}
-
+#endif
+
#endregion
-
+
#region Nothing
-
+
/// <summary>
/// Creates a constraint specifying that no exception is thrown
/// </summary>
@@ -110,11 +118,11 @@
{
get { return new ThrowsNothingConstraint(); }
}
-
+
#endregion
-
+
#region TypeOf
-
+
/// <summary>
/// Creates a constraint specifying the exact type of exception expected
/// </summary>
@@ -122,7 +130,7 @@
{
return Exception.TypeOf(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Creates a constraint specifying the exact type of exception expected
@@ -131,12 +139,12 @@
{
return TypeOf(typeof(T));
}
-
#endif
+
#endregion
-
+
#region InstanceOf
-
+
/// <summary>
/// Creates a constraint specifying the type of exception expected
/// </summary>
@@ -144,7 +152,7 @@
{
return Exception.InstanceOf(expectedType);
}
-
+
#if NET_2_0
/// <summary>
/// Creates a constraint specifying the type of exception expected
@@ -153,9 +161,9 @@
{
return InstanceOf(typeof(T));
}
-
#endif
+
#endregion
-
+
}
}
=== modified file 'src/framework/SyntaxElements.txt'
--- src/framework/SyntaxElements.txt 2009-08-24 18:05:17 +0000
+++ src/framework/SyntaxElements.txt 2009-09-11 21:12:38 +0000
@@ -53,6 +53,11 @@
# the stanza. All methods generated from a stanza use
# the same comment.
#
+# Prefix 'Cond:' may appear once in each stanza and
+# gives an expression that will be used with #if to include
+# or exclude code from the entire stanza from the build.
+# For example: 'Cond: !NETCF'
+#
# Prefix 'Type:' may appear once in each stanza and indicates
# the return type of the methods defined in the stanza. If
# it is not specified, all methods default to 'void'.
@@ -91,13 +96,13 @@
#
# Define default classes to be generated:
#
-Default: Is
-Default: Has
-Default: Text
-Default: Throws
-Default: ConstraintFactory=Constraints/ConstraintFactory.cs
-Default: ConstraintExpression=Constraints/ConstraintExpression.cs
-Default: Assert
+Default: Is=Shared/Framework/Is.cs
+Default: Has=Shared/Framework/Has.cs
+Default: Text=NUnit/Framework/Text.cs
+Default: Throws=Shared/Framework/Throws.cs
+Default: ConstraintFactory=Shared/Framework/Constraints/ConstraintFactory.cs
+Default: ConstraintExpression=Shared/Framework/Constraints/ConstraintExpression.cs
+Default: Assert=Shared/Framework/Assert.cs
%
#
# Prefix Operators
@@ -188,6 +193,7 @@
/// constraint to the InnerException property of the object being tested.
/// </summary>
Type: ResolvableConstraintExpression
+Cond: !NUNITLITE
Gen: Has.InnerException=>Property("InnerException")
Gen: ConstraintFactory.InnerException=>Has.InnerException
Gen: ConstraintExpression.InnerException=>Property("InnerException")
@@ -214,24 +220,28 @@
/// Creates a constraint specifying an exception with a given InnerException
/// </summary>
Type: ResolvableConstraintExpression
+Cond: !NUNITLITE
Gen: Throws.InnerException=> Exception.InnerException
%
/// <summary>
/// Creates a constraint specifying an expected TargetInvocationException
/// </summary>
Type: ExactTypeConstraint
+Cond: !NUNITLITE
Gen: Throws.TargetInvocationException=>TypeOf(typeof(System.Reflection.TargetInvocationException))
%
/// <summary>
/// Creates a constraint specifying an expected TargetInvocationException
/// </summary>
Type: ExactTypeConstraint
+Cond: !NUNITLITE
Gen: Throws.ArgumentException=>TypeOf(typeof(System.ArgumentException))
%
/// <summary>
/// Creates a constraint specifying an expected TargetInvocationException
/// </summary>
Type: ExactTypeConstraint
+Cond: !NUNITLITE
Gen: Throws.InvalidOperationException=>TypeOf(typeof(System.InvalidOperationException))
%
/// <summary>
@@ -265,6 +275,7 @@
/// custom constraints to easily participate in the syntax.
/// </summary>
Type: Constraint
+Cond: !NUNITLITE
Gen: ConstraintExpression.Matches(Constraint constraint)=>this.Append(constraint)
Gen: ConstraintExpression.Matches<T>(Predicate<T> predicate)=>this.Append(new PredicateConstraint<T>(predicate))
%
@@ -305,11 +316,13 @@
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in binary format.
/// </summary>
+Cond: !NETCF
Gen3: Is.BinarySerializable=>new BinarySerializableConstraint()
%
/// <summary>
/// Returns a constraint that tests whether an object graph is serializable in xml format.
/// </summary>
+Cond: !NETCF_1_0
Gen3: Is.XmlSerializable=>new XmlSerializableConstraint()
%
#
@@ -441,7 +454,6 @@
/// Returns a constraint that succeeds if the actual
/// value starts with the substring supplied as an argument.
/// </summary>
-Gen: [Obsolete("Use Is.StringStarting")]Text.StartsWith(string expected)=>new StartsWithConstraint(expected)
Gen: ConstraintFactory.StartsWith(string expected)=>new StartsWithConstraint(expected)
Gen: ConstraintExpression.StartsWith(string expected)=>(StartsWithConstraint)this.Append(new StartsWithConstraint(expected))
Gen3: Is.StringStarting(string expected)=>new StartsWithConstraint(expected)
@@ -475,6 +487,7 @@
/// Returns a constraint that succeeds if the actual
/// value matches the Regex pattern supplied as an argument.
/// </summary>
+Cond: !NETCF
Gen: [Obsolete("Use Is.StringMatching")]Text.Matches(string pattern)=>new RegexConstraint(pattern)
Gen: ConstraintFactory.Matches(string pattern)=>new RegexConstraint(pattern)
Gen: ConstraintExpression.Matches(string pattern)=>(RegexConstraint)this.Append(new RegexConstraint(pattern))
@@ -485,6 +498,7 @@
/// value matches the pattern supplied as an argument.
/// </summary>
Type: RegexConstraint
+Cond: !NUNITLITE
Gen: [Obsolete]Text.DoesNotMatch(string pattern)=>new ConstraintExpression().Not.Matches(pattern)
Gen: ConstraintFactory.DoesNotMatch(string pattern)=>new ConstraintExpression().Not.Matches(pattern)
%
@@ -558,6 +572,7 @@
/// is thrown.
/// </summary>
/// <param name="aDouble">The value that is to be tested</param>
+Cond: !NUNITLITE
Gen: Assert.IsNaN(double aDouble)=>Assert.That(aDouble, Is.NaN)
Gen: Assert.IsNaN(double? aDouble)=>Assert.That(aDouble, Is.NaN)
%
@@ -565,36 +580,42 @@
/// Assert that a string is empty - that is equal to string.Empty
/// </summary>
/// <param name="aString">The string to be tested</param>
+Cond: !NUNITLITE
Gen: Assert.IsEmpty(string aString)=>Assert.That(aString, new EmptyStringConstraint())
%
/// <summary>
/// Assert that an array, list or other collection is empty
/// </summary>
/// <param name="collection">An array, list or other collection implementing ICollection</param>
+Cond: !NUNITLITE
Gen: Assert.IsEmpty(ICollection collection)=>Assert.That(collection, new EmptyCollectionConstraint())
%
/// <summary>
/// Assert that a string is not empty - that is not equal to string.Empty
/// </summary>
/// <param name="aString">The string to be tested</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotEmpty(string aString)=>Assert.That(aString, Is.Not.Empty)
%
/// <summary>
/// Assert that an array, list or other collection is not empty
/// </summary>
/// <param name="collection">An array, list or other collection implementing ICollection</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotEmpty(ICollection collection)=>Assert.That(collection, Is.Not.Empty)
%
/// <summary>
/// Assert that a string is either null or equal to string.Empty
/// </summary>
/// <param name="aString">The string to be tested</param>
+Cond: !NUNITLITE
Gen: Assert.IsNullOrEmpty(string aString)=>Assert.That(aString, new NullOrEmptyStringConstraint())
%
/// <summary>
/// Assert that a string is not null or empty
/// </summary>
/// <param name="aString">The string to be tested</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotNullOrEmpty(string aString)=>Assert.That(aString, new NotConstraint( new NullOrEmptyStringConstraint()))
%
/// <summary>
@@ -602,6 +623,7 @@
/// </summary>
/// <param name="expected">The expected Type.</param>
/// <param name="actual">The object under examination</param>
+Cond: !NUNITLITE
Gen: Assert.IsAssignableFrom(Type expected, object actual)=>Assert.That(actual, Is.AssignableFrom(expected))
%
/// <summary>
@@ -609,6 +631,7 @@
/// </summary>
/// <typeparam name="T">The expected Type.</typeparam>
/// <param name="actual">The object under examination</param>
+Cond: !NUNITLITE
Gen: Assert.IsAssignableFrom<T>(object actual)=>Assert.That(actual, Is.AssignableFrom(typeof(T)))
%
/// <summary>
@@ -616,6 +639,7 @@
/// </summary>
/// <param name="expected">The expected Type.</param>
/// <param name="actual">The object under examination</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotAssignableFrom(Type expected, object actual)=>Assert.That(actual, Is.Not.AssignableFrom(expected))
%
/// <summary>
@@ -623,6 +647,7 @@
/// </summary>
/// <typeparam name="T">The expected Type.</typeparam>
/// <param name="actual">The object under examination</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotAssignableFrom<T>(object actual)=>Assert.That(actual, Is.Not.AssignableFrom(typeof(T)))
%
/// <summary>
@@ -630,6 +655,7 @@
/// </summary>
/// <param name="expected">The expected Type</param>
/// <param name="actual">The object being examined</param>
+Cond: !NUNITLITE
Gen: Assert.IsInstanceOf(Type expected, object actual)=>Assert.That(actual, Is.InstanceOf(expected))
Gen: [Obsolete]Assert.IsInstanceOfType(Type expected, object actual)=>Assert.That(actual, Is.InstanceOf(expected))
%
@@ -638,6 +664,7 @@
/// </summary>
/// <typeparam name="T">The expected Type</typeparam>
/// <param name="actual">The object being examined</param>
+Cond: !NUNITLITE
Gen: Assert.IsInstanceOf<T>(object actual)=>Assert.That(actual, Is.InstanceOf(typeof(T)))
%
/// <summary>
@@ -645,6 +672,7 @@
/// </summary>
/// <param name="expected">The expected Type</param>
/// <param name="actual">The object being examined</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotInstanceOf(Type expected, object actual)=>Assert.That(actual, Is.Not.InstanceOf(expected))
Gen: [Obsolete]Assert.IsNotInstanceOfType(Type expected, object actual)=>Assert.That(actual, Is.Not.InstanceOf(expected))
%
@@ -653,6 +681,7 @@
/// </summary>
/// <typeparam name="T">The expected Type</typeparam>
/// <param name="actual">The object being examined</param>
+Cond: !NUNITLITE
Gen: Assert.IsNotInstanceOf<T>(object actual)=>Assert.That(actual, Is.Not.InstanceOf(typeof(T)))
%
/// <summary>
@@ -737,6 +766,7 @@
/// </summary>
/// <param name="arg1">The first value, expected to be greater</param>
/// <param name="arg2">The second value, expected to be less</param>
+Cond: !NUNITLITE
Gen: Assert.Greater(int arg1, int arg2)=>Assert.That(arg1, Is.GreaterThan(arg2))
Gen: [CLSCompliant(false)]Assert.Greater(uint arg1, uint arg2)=>Assert.That(arg1, Is.GreaterThan(arg2))
Gen: Assert.Greater(long arg1, long arg2)=>Assert.That(arg1, Is.GreaterThan(arg2))
@@ -753,6 +783,7 @@
/// </summary>
/// <param name="arg1">The first value, expected to be less</param>
/// <param name="arg2">The second value, expected to be greater</param>
+Cond: !NUNITLITE
Gen: Assert.Less(int arg1, int arg2)=>Assert.That(arg1, Is.LessThan(arg2))
Gen: [CLSCompliant(false)]Assert.Less(uint arg1, uint arg2)=>Assert.That(arg1, Is.LessThan(arg2))
Gen: Assert.Less(long arg1, long arg2)=>Assert.That(arg1, Is.LessThan(arg2))
@@ -769,6 +800,7 @@
/// </summary>
/// <param name="arg1">The first value, expected to be greater</param>
/// <param name="arg2">The second value, expected to be less</param>
+Cond: !NUNITLITE
Gen: Assert.GreaterOrEqual(int arg1, int arg2)=>Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2))
Gen: [CLSCompliant(false)]Assert.GreaterOrEqual(uint arg1, uint arg2)=>Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2))
Gen: Assert.GreaterOrEqual(long arg1, long arg2)=>Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2))
@@ -785,6 +817,7 @@
/// </summary>
/// <param name="arg1">The first value, expected to be less</param>
/// <param name="arg2">The second value, expected to be greater</param>
+Cond: !NUNITLITE
Gen: Assert.LessOrEqual(int arg1, int arg2)=>Assert.That(arg1, Is.LessThanOrEqualTo(arg2))
Gen: [CLSCompliant(false)]Assert.LessOrEqual(uint arg1, uint arg2)=>Assert.That(arg1, Is.LessThanOrEqualTo(arg2))
Gen: Assert.LessOrEqual(long arg1, long arg2)=>Assert.That(arg1, Is.LessThanOrEqualTo(arg2))
@@ -799,5 +832,6 @@
/// </summary>
/// <param name="expected">The expected object</param>
/// <param name="actual">The list to be examined</param>
+Cond: !NUNITLITE
Gen: Assert.Contains(object expected, ICollection actual)=>Assert.That(actual, new CollectionContainsConstraint(expected))
%
=== modified file 'src/framework/nunit.framework.build'
--- src/framework/nunit.framework.build 2009-08-23 04:14:27 +0000
+++ src/framework/nunit.framework.build 2009-09-11 21:12:38 +0000
@@ -1,116 +1,152 @@
<?xml version="1.0"?>
<project name="NUnitFramework" default="build" basedir=".">
+<!--
<patternset id="source-files">
- <include name="Constraints/AttributeConstraints.cs"/>
- <include name="Constraints/BasicConstraints.cs"/>
- <include name="Constraints/BinaryOperations.cs"/>
- <include name="Constraints/CollectionConstraints.cs"/>
- <include name="Constraints/ComparisonAdapter.cs"/>
- <include name="Constraints/ComparisonConstraints.cs"/>
- <include name="Constraints/Constraint.cs"/>
- <include name="Constraints/ConstraintBuilder.cs"/>
- <include name="Constraints/ConstraintExpression.cs"/>
- <include name="Constraints/ConstraintExpressionBase.cs"/>
- <include name="Constraints/ConstraintFactory.cs"/>
- <include name="Constraints/ConstraintOperators.cs"/>
- <include name="Constraints/ContainsConstraint.cs"/>
- <include name="Constraints/DelayedConstraint.cs"/>
- <include name="Constraints/DirectoryConstraints.cs"/>
- <include name="Constraints/EmptyConstraint.cs"/>
- <include name="Constraints/EqualConstraint.cs"/>
- <include name="Constraints/EqualityAdapter.cs"/>
- <include name="Constraints/FloatingPointNumerics.cs"/>
- <include name="Constraints/IResolveConstraint.cs"/>
- <include name="Constraints/MessageWriter.cs"/>
- <include name="Constraints/MsgUtils.cs"/>
- <include name="Constraints/Numerics.cs"/>
- <include name="Constraints/NUnitComparer.cs"/>
- <include name="Constraints/NUnitEqualityComparer.cs"/>
- <include name="Constraints/PathConstraints.cs"/>
- <include name="Constraints/PredicateConstraint.cs"/>
- <include name="Constraints/PrefixConstraints.cs"/>
- <include name="Constraints/PropertyConstraint.cs"/>
- <include name="Constraints/RangeConstraint.cs"/>
- <include name="Constraints/ResolvableConstraintExpression.cs"/>
- <include name="Constraints/SameAsConstraint.cs"/>
- <include name="Constraints/SerializableConstraints.cs"/>
- <include name="Constraints/StringConstraints.cs"/>
- <include name="Constraints/ThrowsConstraint.cs"/>
- <include name="Constraints/Tolerance.cs"/>
- <include name="Constraints/TypeConstraints.cs"/>
- <include name="AssemblyInfo.cs"/>
- <include name="Assert.cs"/>
- <include name="AssertionException.cs"/>
- <include name="AssertionHelper.cs"/>
- <include name="Assume.cs"/>
- <include name="CategoryAttribute.cs"/>
- <include name="CollectionAssert.cs"/>
- <include name="DatapointAttributes.cs"/>
- <include name="DescriptionAttribute.cs"/>
- <include name="DirectoryAssert.cs"/>
- <include name="ExpectedExceptionAttribute.cs"/>
- <include name="ExplicitAttribute.cs"/>
- <include name="FileAssert.cs"/>
- <include name="GlobalSettings.cs"/>
- <include name="Has.cs"/>
- <include name="IExpectException.cs"/>
- <include name="IgnoreAttribute.cs"/>
- <include name="IgnoreException.cs"/>
- <include name="IncludeExcludeAttributes.cs"/>
- <include name="InconclusiveException.cs"/>
- <include name="Is.cs"/>
- <include name="Iz.cs"/>
- <include name="ITestCaseData.cs"/>
- <include name="JoinTypeAttributes.cs"/>
- <include name="List.cs"/>
- <include name="ListMapper.cs"/>
- <include name="MaxTimeAttribute.cs"/>
- <include name="PropertyAttribute.cs"/>
- <include name="RandomAttribute.cs"/>
- <include name="Randomizer.cs"/>
- <include name="RangeAttribute.cs"/>
- <include name="RepeatAttribute.cs"/>
- <include name="RequiredAddinAttribute.cs"/>
- <include name="SetCultureAttribute.cs"/>
- <include name="SetUICultureAttribute.cs"/>
- <include name="SetUpAttribute.cs"/>
- <include name="SetUpFixtureAttribute.cs"/>
- <include name="SpecialValue.cs"/>
- <include name="StringAssert.cs"/>
- <include name="SuccessException.cs"/>
- <include name="SuiteAttribute.cs"/>
- <include name="TearDownAttribute.cs"/>
- <include name="TestAttribute.cs"/>
- <include name="TestCaseAttribute.cs"/>
- <include name="TestCaseData.cs"/>
- <include name="TestCaseSourceAttribute.cs"/>
- <include name="TestFixtureAttribute.cs"/>
- <include name="TestFixtureSetUpAttribute.cs"/>
- <include name="TestFixtureTearDownAttribute.cs"/>
- <include name="Text.cs"/>
- <include name="TextMessageWriter.cs"/>
- <include name="TheoryAttribute.cs"/>
- <include name="ThreadingAttributes.cs"/>
- <include name="Throws.cs"/>
- <include name="ValuesAttribute.cs"/>
- <include name="ValueSourceAttribute.cs"/>
+ <include name="AssemblyInfo.cs"/>
+ <include name="Framework/Assert.cs"/>
+ <include name="Framework/AssertionException.cs"/>
+ <include name="Framework/AssertionHelper.cs"/>
+ <include name="Framework/Assume.cs"/>
+ <include name="Framework/CategoryAttribute.cs"/>
+ <include name="Framework/CollectionAssert.cs"/>
+ <include name="Framework/DatapointAttributes.cs"/>
+ <include name="Framework/DescriptionAttribute.cs"/>
+ <include name="Framework/DirectoryAssert.cs"/>
+ <include name="Framework/ExpectedExceptionAttribute.cs"/>
+ <include name="Framework/ExplicitAttribute.cs"/>
+ <include name="Framework/FileAssert.cs"/>
+ <include name="Framework/GlobalSettings.cs"/>
+ <include name="Framework/Has.cs"/>
+ <include name="Framework/IExpectException.cs"/>
+ <include name="Framework/IgnoreAttribute.cs"/>
+ <include name="Framework/IgnoreException.cs"/>
+ <include name="Framework/IncludeExcludeAttributes.cs"/>
+ <include name="Framework/InconclusiveException.cs"/>
+ <include name="Framework/Is.cs"/>
+ <include name="Framework/Iz.cs"/>
+ <include name="Framework/ITestCaseData.cs"/>
+ <include name="Framework/JoinTypeAttributes.cs"/>
+ <include name="Framework/List.cs"/>
+ <include name="Framework/ListMapper.cs"/>
+ <include name="Framework/MaxTimeAttribute.cs"/>
+ <include name="Framework/PropertyAttribute.cs"/>
+ <include name="Framework/RandomAttribute.cs"/>
+ <include name="Framework/Randomizer.cs"/>
+ <include name="Framework/RangeAttribute.cs"/>
+ <include name="Framework/RepeatAttribute.cs"/>
+ <include name="Framework/RequiredAddinAttribute.cs"/>
+ <include name="Framework/SetCultureAttribute.cs"/>
+ <include name="Framework/SetUICultureAttribute.cs"/>
+ <include name="Framework/SetUpAttribute.cs"/>
+ <include name="Framework/SetUpFixtureAttribute.cs"/>
+ <include name="Framework/SpecialValue.cs"/>
+ <include name="Framework/StringAssert.cs"/>
+ <include name="Framework/SuccessException.cs"/>
+ <include name="Framework/SuiteAttribute.cs"/>
+ <include name="Framework/TearDownAttribute.cs"/>
+ <include name="Framework/TestAttribute.cs"/>
+ <include name="Framework/TestCaseAttribute.cs"/>
+ <include name="Framework/TestCaseData.cs"/>
+ <include name="Framework/TestCaseSourceAttribute.cs"/>
+ <include name="Framework/TestFixtureAttribute.cs"/>
+ <include name="Framework/TestFixtureSetUpAttribute.cs"/>
+ <include name="Framework/TestFixtureTearDownAttribute.cs"/>
+ <include name="Framework/Text.cs"/>
+ <include name="Framework/TextMessageWriter.cs"/>
+ <include name="Framework/TheoryAttribute.cs"/>
+ <include name="Framework/ThreadingAttributes.cs"/>
+ <include name="Framework/Throws.cs"/>
+ <include name="Framework/ValuesAttribute.cs"/>
+ <include name="Framework/ValueSourceAttribute.cs"/>
+ <include name="Framework/Constraints/AttributeConstraints.cs"/>
+ <include name="Framework/Constraints/BasicConstraints.cs"/>
+ <include name="Framework/Constraints/BinaryOperations.cs"/>
+ <include name="Framework/Constraints/CollectionConstraints.cs"/>
+ <include name="Framework/Constraints/ComparisonAdapter.cs"/>
+ <include name="Framework/Constraints/ComparisonConstraints.cs"/>
+ <include name="Framework/Constraints/Constraint.cs"/>
+ <include name="Framework/Constraints/ConstraintBuilder.cs"/>
+ <include name="Framework/Constraints/ConstraintExpression.cs"/>
+ <include name="Framework/Constraints/ConstraintExpressionBase.cs"/>
+ <include name="Framework/Constraints/ConstraintFactory.cs"/>
+ <include name="Framework/Constraints/ConstraintOperators.cs"/>
+ <include name="Framework/Constraints/ContainsConstraint.cs"/>
+ <include name="Framework/Constraints/DelayedConstraint.cs"/>
+ <include name="Framework/Constraints/DirectoryConstraints.cs"/>
+ <include name="Framework/Constraints/EmptyConstraint.cs"/>
+ <include name="Framework/Constraints/EqualConstraint.cs"/>
+ <include name="Framework/Constraints/EqualityAdapter.cs"/>
+ <include name="Framework/Constraints/FloatingPointNumerics.cs"/>
+ <include name="Framework/Constraints/IResolveConstraint.cs"/>
+ <include name="Framework/Constraints/MessageWriter.cs"/>
+ <include name="Framework/Constraints/MsgUtils.cs"/>
+ <include name="Framework/Constraints/Numerics.cs"/>
+ <include name="Framework/Constraints/NUnitComparer.cs"/>
+ <include name="Framework/Constraints/NUnitEqualityComparer.cs"/>
+ <include name="Framework/Constraints/PathConstraints.cs"/>
+ <include name="Framework/Constraints/PredicateConstraint.cs"/>
+ <include name="Framework/Constraints/PrefixConstraints.cs"/>
+ <include name="Framework/Constraints/PropertyConstraint.cs"/>
+ <include name="Framework/Constraints/RangeConstraint.cs"/>
+ <include name="Framework/Constraints/ResolvableConstraintExpression.cs"/>
+ <include name="Framework/Constraints/SameAsConstraint.cs"/>
+ <include name="Framework/Constraints/SerializableConstraints.cs"/>
+ <include name="Framework/Constraints/StringConstraints.cs"/>
+ <include name="Framework/Constraints/ThrowsConstraint.cs"/>
+ <include name="Framework/Constraints/Tolerance.cs"/>
+ <include name="Framework/Constraints/TypeConstraints.cs"/>
</patternset>
-
- <target name="build">
+-->
+
+ <target name="build" depends="nunit,nunitlite"/>
+
+ <target name="nunit">
<csc target="library"
output="${current.build.dir}/nunit.framework.dll"
doc="${current.build.dir}/nunit.framework.xml"
debug="${build.debug}"
- define="${build.defines}">
- <nowarn>
- <warning number="1699" if="${runtime.version=='2.0'}"/>
- </nowarn>
- <sources basedir=".">
- <patternset refid="source-files"/>
- <include name="../CommonAssemblyInfo.cs" />
- </sources>
+ define="${build.defines}"
+ keyfile="../../nunit.snk">
+ <nowarn>
+ <warning number="1699" if="${runtime.version=='2.0'}"/>
+ </nowarn>
+ <sources basedir=".">
+ <!--<patternset refid="source-files"/>-->
+ <include name="../CommonAssemblyInfo.cs" />
+ <include name="AssemblyInfo.cs"/>
+ <include name="Env.cs"/>
+ <include name="Shared/**/*.cs"/>
+ <include name="NUnit/**/*.cs"/>
+ </sources>
+ </csc>
+
+ </target>
+
+ <target name="nunitlite">
+
+ <csc target="library"
+ output="${current.build.dir}/nunitlite.dll"
+ doc="${current.build.dir}/nunitlite.xml"
+ debug="${build.debug}"
+ define="${build.defines};NUNITLITE">
+ <nowarn>
+ <warning number="1699" if="${runtime.version=='2.0'}"/>
+ </nowarn>
+ <sources basedir=".">
+ <!--<patternset refid="source-files"/>-->
+ <include name="../CommonAssemblyInfo.cs" />
+ <include name="AssemblyInfo.cs"/>
+ <include name="Env.cs"/>
+ <include name="Shared/**/*.cs"/>
+ <include name="NUnitLite/**/*.cs"/>
+ </sources>
+ <references basedir="${current.build.dir}">
+ <include name="mscorlib.dll"/>
+ <include name="System.dll"/>
+ <include name="System.Xml.dll"/>
+ </references>
</csc>
</target>
@@ -118,9 +154,11 @@
<target name="package">
<copy todir="${package.src.dir}/framework">
<fileset>
- <patternset refid="source-files"/>
+ <!--<patternset refid="source-files"/>-->
<include name="nunit.framework.build"/>
<include name="SyntaxElements.txt"/>
+ <include name="Shared/**/*.cs"/>
+ <include name="NUnit/**/*.cs"/>
</fileset>
</copy>
</target>
=== removed file 'src/tests/AssemblyInfo.cs'
--- src/tests/AssemblyInfo.cs 2009-08-11 21:52:42 +0000
+++ src/tests/AssemblyInfo.cs 1970-01-01 00:00:00 +0000
@@ -1,49 +0,0 @@
-// ***********************************************************************
-// Copyright (c) 2009 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.
-// ***********************************************************************
-
-using System;
-using System.Reflection;
-
-//
-// Common Information about all NUnit assemblies is controlled through the following
-// set of attributes. Change these source values to modify the information
-// associated with an assembly.
-//
-[assembly: AssemblyCompany("NUnit.org")]
-[assembly: AssemblyProduct("NUnit")]
-[assembly: AssemblyCopyright("Copyright (C) 2009 Charlie Poole")]
-[assembly: AssemblyTrademark("NUnit is a trademark of NUnit.org")]
-
-//
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-
-[assembly: AssemblyVersion("2.9.1")]
-[assembly: AssemblyInformationalVersion("2.9.1")]
=== removed file 'src/tests/Constraints/SerializableConstraintTest.cs'
--- src/tests/Constraints/SerializableConstraintTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Constraints/SerializableConstraintTest.cs 1970-01-01 00:00:00 +0000
@@ -1,83 +0,0 @@
-// ***********************************************************************
-// Copyright (c) 2007 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.
-// ***********************************************************************
-
-using System;
-using System.Collections;
-#if NET_2_0
-using System.Collections.Generic;
-#endif
-
-namespace NUnit.Framework.Constraints.Tests
-{
- [TestFixture]
- public class BinarySerializableTest : ConstraintTestBaseWithArgumentException
- {
- [SetUp]
- public void SetUp()
- {
- theConstraint = new BinarySerializableConstraint();
- expectedDescription = "binary serializable";
- stringRepresentation = "<binaryserializable>";
- }
-
- object[] SuccessData = new object[] { 1, "a", new ArrayList(), new InternalWithSerializableAttributeClass() };
-
- object[] FailureData = new object[] { new InternalClass() };
-
- string[] ActualValues = new string[] { "<InternalClass>" };
-
- object[] InvalidData = new object[] { null };
- }
-
- [TestFixture]
- public class XmlSerializableTest : ConstraintTestBaseWithArgumentException
- {
- [SetUp]
- public void SetUp()
- {
- theConstraint = new XmlSerializableConstraint();
- expectedDescription = "xml serializable";
- stringRepresentation = "<xmlserializable>";
- }
-
- object[] SuccessData = new object[] { 1, "a", new ArrayList() };
-
-#if NET_2_0
- object[] FailureData = new object[] { new Dictionary<string, string>(), new InternalClass(), new InternalWithSerializableAttributeClass() };
- string[] ActualValues = new string[] { "<Dictionary`2>", "<InternalClass>", "<InternalWithSerializableAttributeClass>" };
-#else
- object[] FailureData = new object[] { new InternalClass(), new InternalWithSerializableAttributeClass() };
- string[] ActualValues = new string[] { "<InternalClass>", "<InternalWithSerializableAttributeClass>" };
-#endif
-
-
- object[] InvalidData = new object[] { null };
- }
-
- internal class InternalClass
- {}
-
- [Serializable]
- internal class InternalWithSerializableAttributeClass
- {}
-}
=== added directory 'src/tests/NUnit'
=== added directory 'src/tests/NUnit/Framework'
=== renamed file 'src/tests/AssertThrowsTests.cs' => 'src/tests/NUnit/Framework/AssertThrowsTests.cs'
--- src/tests/AssertThrowsTests.cs 2009-07-16 19:37:36 +0000
+++ src/tests/NUnit/Framework/AssertThrowsTests.cs 2009-09-07 17:36:10 +0000
@@ -58,7 +58,7 @@
new TestDelegate(TestDelegates.ThrowsArgumentException)) as ArgumentException;
Assert.IsNotNull(ex, "No ArgumentException thrown");
- Assert.That(ex.Message, StartsWith("myMessage"));
+ Assert.That(ex.Message, Is.StringStarting("myMessage"));
Assert.That(ex.ParamName, Is.EqualTo("myParam"));
#if NET_2_0
@@ -66,20 +66,20 @@
delegate { throw new ArgumentException("myMessage", "myParam"); }) as ArgumentException;
Assert.IsNotNull(ex, "No ArgumentException thrown");
- Assert.That(ex.Message, StartsWith("myMessage"));
+ Assert.That(ex.Message, Is.StringStarting("myMessage"));
Assert.That(ex.ParamName, Is.EqualTo("myParam"));
ex = Assert.Throws(typeof(ArgumentException),
delegate { throw new ArgumentException("myMessage", "myParam"); } ) as ArgumentException;
Assert.IsNotNull(ex, "No ArgumentException thrown");
- Assert.That(ex.Message, StartsWith("myMessage"));
+ Assert.That(ex.Message, Is.StringStarting("myMessage"));
Assert.That(ex.ParamName, Is.EqualTo("myParam"));
ex = Assert.Throws<ArgumentException>(TestDelegates.ThrowsArgumentException) as ArgumentException;
Assert.IsNotNull(ex, "No ArgumentException thrown");
- Assert.That(ex.Message, StartsWith("myMessage"));
+ Assert.That(ex.Message, Is.StringStarting("myMessage"));
Assert.That(ex.ParamName, Is.EqualTo("myParam"));
#endif
}
=== renamed file 'src/tests/AssumeThatTests.cs' => 'src/tests/NUnit/Framework/AssumeThatTests.cs'
=== renamed file 'src/tests/CollectionAssertTest.cs' => 'src/tests/NUnit/Framework/CollectionAssertTest.cs'
--- src/tests/CollectionAssertTest.cs 2009-07-16 19:37:36 +0000
+++ src/tests/NUnit/Framework/CollectionAssertTest.cs 2009-09-07 17:36:10 +0000
@@ -518,7 +518,7 @@
set2.Add("z");
CollectionAssert.IsSubsetOf(set2,set1);
- Expect(set2, SubsetOf(set1));
+ Assert.That(set2, Is.SubsetOf(set1));
}
[Test,ExpectedException(typeof(AssertionException))]
@@ -553,7 +553,7 @@
set2.Add("z");
CollectionAssert.IsSubsetOf(set2,set1);
- Expect(set2, SubsetOf(set1));
+ Assert.That(set2, Is.SubsetOf(set1));
}
#endregion
@@ -572,7 +572,7 @@
set2.Add("a");
CollectionAssert.IsNotSubsetOf(set1,set2);
- Expect(set1, Not.SubsetOf(set2));
+ Assert.That(set1, Is.Not.SubsetOf(set2));
}
[Test,ExpectedException(typeof(AssertionException))]
@@ -703,42 +703,6 @@
#endregion
}
-
- public class TestComparer : IComparer
- {
- public bool Called = false;
-
- #region IComparer Members
- public int Compare(object x, object y)
- {
- Called = true;
-
- if ( x == null && y == null )
- return 0;
-
- if ( x == null || y == null )
- return -1;
-
- if (x.Equals(y))
- return 0;
-
- return -1;
- }
- #endregion
- }
-
- public class AlwaysEqualComparer : IComparer
- {
- public bool Called = false;
-
- int IComparer.Compare(object x, object y)
- {
- Called = true;
-
- // This comparer ALWAYS returns zero (equal)!
- return 0;
- }
- }
}
=== renamed file 'src/tests/ConditionAssertTests.cs' => 'src/tests/NUnit/Framework/ConditionAssertTests.cs'
=== added directory 'src/tests/NUnit/Framework/Constraints'
=== renamed file 'src/tests/Constraints/AfterConstraintTests.cs' => 'src/tests/NUnit/Framework/Constraints/AfterConstraintTests.cs'
--- src/tests/Constraints/AfterConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/NUnit/Framework/Constraints/AfterConstraintTests.cs 2009-09-07 17:36:10 +0000
@@ -43,8 +43,10 @@
}
object[] SuccessData = new object[] { true };
- object[] FailureData = new object[] { false, 0, null };
- string[] ActualValues = new string[] { "False", "0", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( false, "False" ),
+ new TestCaseData( 0, "0" ),
+ new TestCaseData( null, "null" ) };
object[] InvalidData = new object[] { InvalidDelegate };
=== renamed file 'src/tests/DirectoryAssertTests.cs' => 'src/tests/NUnit/Framework/DirectoryAssertTests.cs'
=== renamed file 'src/tests/EqualsFixture.cs' => 'src/tests/NUnit/Framework/EqualsFixture.cs'
--- src/tests/EqualsFixture.cs 2009-07-16 19:37:36 +0000
+++ src/tests/NUnit/Framework/EqualsFixture.cs 2009-09-07 17:36:10 +0000
@@ -150,14 +150,14 @@
Assert.AreEqual(float.PositiveInfinity, float.NegativeInfinity, (float)0.0);
}
- [Test,ExpectedException(typeof(AssertionException))]
+ [Test,ExpectedException(typeof(InvalidOperationException))]
public void EqualsThrowsException()
{
object o = new object();
Assert.Equals(o, o);
}
- [Test,ExpectedException(typeof(AssertionException))]
+ [Test,ExpectedException(typeof(InvalidOperationException))]
public void ReferenceEqualsThrowsException()
{
object o = new object();
=== renamed file 'src/tests/FileAssertTests.cs' => 'src/tests/NUnit/Framework/FileAssertTests.cs'
=== renamed file 'src/tests/GreaterEqualFixture.cs' => 'src/tests/NUnit/Framework/GreaterEqualFixture.cs'
=== renamed file 'src/tests/GreaterFixture.cs' => 'src/tests/NUnit/Framework/GreaterFixture.cs'
=== renamed file 'src/tests/LessEqualFixture.cs' => 'src/tests/NUnit/Framework/LessEqualFixture.cs'
=== renamed file 'src/tests/LessFixture.cs' => 'src/tests/NUnit/Framework/LessFixture.cs'
=== renamed file 'src/tests/ListContentsTests.cs' => 'src/tests/NUnit/Framework/ListContentsTests.cs'
=== renamed file 'src/tests/NotEqualFixture.cs' => 'src/tests/NUnit/Framework/NotEqualFixture.cs'
=== renamed file 'src/tests/NotSameFixture.cs' => 'src/tests/NUnit/Framework/NotSameFixture.cs'
=== renamed file 'src/tests/NullableTypesTests.cs' => 'src/tests/NUnit/Framework/NullableTypesTests.cs'
=== renamed file 'src/tests/RandomizerTests.cs' => 'src/tests/NUnit/Framework/RandomizerTests.cs'
=== renamed file 'src/tests/RangeTests.cs' => 'src/tests/NUnit/Framework/RangeTests.cs'
=== renamed file 'src/tests/SameFixture.cs' => 'src/tests/NUnit/Framework/SameFixture.cs'
=== renamed file 'src/tests/StringAssertTests.cs' => 'src/tests/NUnit/Framework/StringAssertTests.cs'
=== added directory 'src/tests/NUnit/Framework/Syntax'
=== renamed file 'src/tests/Syntax/AfterTests.cs' => 'src/tests/NUnit/Framework/Syntax/AfterTests.cs'
=== renamed file 'src/tests/Syntax/ArbitraryConstraintMatching.cs' => 'src/tests/NUnit/Framework/Syntax/ArbitraryConstraintMatching.cs'
=== renamed file 'src/tests/Syntax/InvalidCodeTests.cs' => 'src/tests/NUnit/Framework/Syntax/InvalidCodeTests.cs'
=== renamed file 'src/tests/Syntax/TestCompiler.cs' => 'src/tests/NUnit/Framework/Syntax/TestCompiler.cs'
=== renamed file 'src/tests/TypeAssertTest.cs' => 'src/tests/NUnit/Framework/TypeAssertTest.cs'
--- src/tests/TypeAssertTest.cs 2009-07-16 19:37:36 +0000
+++ src/tests/NUnit/Framework/TypeAssertTest.cs 2009-09-07 17:36:10 +0000
@@ -32,7 +32,7 @@
[Test]
public void ExactType()
{
- Expect( "Hello", TypeOf( typeof(System.String) ) );
+ Assert.That( "Hello", Is.TypeOf( typeof(System.String) ) );
}
[Test,ExpectedException(typeof(AssertionException))]
@@ -41,7 +41,7 @@
expectedMessage =
" Expected: <System.Int32>" + Environment.NewLine +
" But was: <System.String>" + Environment.NewLine;
- Expect( "Hello", TypeOf( typeof(System.Int32) ) );
+ Assert.That( "Hello", Is.TypeOf( typeof(System.Int32) ) );
}
[Test]
@@ -50,7 +50,7 @@
ApplicationException ex = new ApplicationException();
Assert.IsInstanceOf(typeof(System.Exception), ex );
- Expect( ex, InstanceOf(typeof(Exception)));
+ Assert.That( ex, Is.InstanceOf(typeof(Exception)));
#if NET_2_0
Assert.IsInstanceOf<Exception>( ex );
#endif
@@ -62,14 +62,14 @@
expectedMessage =
" Expected: instance of <System.Int32>" + System.Environment.NewLine +
" But was: <System.String>" + System.Environment.NewLine;
- Expect( "abc123", InstanceOf( typeof(System.Int32) ) );
+ Assert.That( "abc123", Is.InstanceOf( typeof(System.Int32) ) );
}
[Test]
public void IsNotInstanceOf()
{
Assert.IsNotInstanceOf(typeof(System.Int32), "abc123" );
- Expect( "abc123", Not.InstanceOf(typeof(System.Int32)) );
+ Assert.That( "abc123", Is.Not.InstanceOf(typeof(System.Int32)) );
#if NET_2_0
Assert.IsNotInstanceOf<System.Int32>("abc123");
#endif
@@ -90,7 +90,7 @@
int[] array10 = new int[10];
Assert.IsAssignableFrom(typeof(int[]), array10);
- Expect(array10, AssignableFrom(typeof(int[])));
+ Assert.That(array10, Is.AssignableFrom(typeof(int[])));
#if NET_2_0
Assert.IsAssignableFrom<int[]>(array10);
#endif
@@ -105,7 +105,7 @@
expectedMessage =
" Expected: assignable from <System.Int32[,]>" + System.Environment.NewLine +
" But was: <System.Int32[]>" + System.Environment.NewLine;
- Expect( array10, AssignableFrom( array2.GetType() ) );
+ Assert.That( array10, Is.AssignableFrom( array2.GetType() ) );
}
[Test()]
@@ -114,7 +114,7 @@
int [] array10 = new int [10];
Assert.IsNotAssignableFrom( typeof(int[,] ),array10);
- Expect( array10, Not.AssignableFrom( typeof(int[,] ) ) );
+ Assert.That( array10, Is.Not.AssignableFrom( typeof(int[,] ) ) );
#if NET_2_0
Assert.IsNotAssignableFrom<int[,]>(array10);
#endif
@@ -129,7 +129,7 @@
expectedMessage =
" Expected: not assignable from <System.Int32[]>" + System.Environment.NewLine +
" But was: <System.Int32[]>" + System.Environment.NewLine;
- Expect( array10, Not.AssignableFrom( array2.GetType() ) );
+ Assert.That( array10, Is.Not.AssignableFrom( array2.GetType() ) );
}
}
}
=== renamed file 'src/tests/ValuesAttributeTests.cs' => 'src/tests/NUnit/Framework/ValuesAttributeTests.cs'
=== added file 'src/tests/Program.cs'
--- src/tests/Program.cs 1970-01-01 00:00:00 +0000
+++ src/tests/Program.cs 2009-09-11 17:04:35 +0000
@@ -0,0 +1,53 @@
+// *****************************************************
+// Copyright 2007, Charlie Poole
+//
+// Licensed under the Open Software License version 3.0
+// *****************************************************
+
+using System;
+using NUnitLite.Runner;
+
+namespace NUnitLite.Tests
+{
+ class Program
+ {
+ // The main program executes the tests. Output may be routed to
+ // various locations, depending on the sub class of TextUI
+ // that is created and any arument passed.
+ //
+ // Examples:
+ //
+ // Sending output to the console works on desktop Windows and Windows CE.
+ //
+ // new ConsoleUI().Execute( args );
+ //
+ // Debug output works on all platforms.
+ //
+ // new DebugUI().Execute( args );
+ //
+ // Sending output to a file works on all platforms, but care must be taken
+ // to write to an accessible location on some platforms.
+ //
+ // string myDocs = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
+ // string path = System.IO.Path.Combine( myDocs, "TestResult.txt" );
+ // System.IO.TextWriter writer = new System.IO.StreamWriter(output);
+ // new TextUI( writer ).Execute( args );
+ // writer.Close();
+ static void Main(string[] args)
+ {
+ if (Environment.OSVersion.Platform == PlatformID.WinCE)
+ {
+ string path = System.IO.Path.Combine(Env.DocumentFolder, "TestResult.txt");
+ System.IO.TextWriter writer = new System.IO.StreamWriter(path);
+ new TextUI(writer).Execute(args);
+ writer.Close();
+ // new TcpUI("ppp_peer", 9000).Execute(args);
+ }
+ else
+ {
+ // new TcpUI("ferrari", 9000).Execute(args);
+ new ConsoleUI().Execute(args);
+ }
+ }
+ }
+}
\ No newline at end of file
=== added directory 'src/tests/Shared'
=== added directory 'src/tests/Shared/Framework'
=== added file 'src/tests/Shared/Framework/AlwaysEqualComparer.cs'
--- src/tests/Shared/Framework/AlwaysEqualComparer.cs 1970-01-01 00:00:00 +0000
+++ src/tests/Shared/Framework/AlwaysEqualComparer.cs 2009-09-02 02:21:09 +0000
@@ -0,0 +1,41 @@
+// ***********************************************************************
+// Copyright (c) 2006 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.
+// ***********************************************************************
+
+using System;
+using System.Collections;
+
+namespace NUnit.Framework.Tests
+{
+ internal class AlwaysEqualComparer : IComparer
+ {
+ public bool Called = false;
+
+ int IComparer.Compare(object x, object y)
+ {
+ Called = true;
+
+ // This comparer ALWAYS returns zero (equal)!
+ return 0;
+ }
+ }
+}
=== renamed file 'src/tests/ArrayEqualsFailureMessageFixture.cs' => 'src/tests/Shared/Framework/ArrayEqualsFailureMessageFixture.cs'
--- src/tests/ArrayEqualsFailureMessageFixture.cs 2009-07-16 19:37:36 +0000
+++ src/tests/Shared/Framework/ArrayEqualsFailureMessageFixture.cs 2009-09-08 05:53:41 +0000
@@ -39,8 +39,8 @@
int[,] actual = new int[,] { { 1, 2 }, { 3, 4 } };
expectedMessage =
- " Expected is <System.Int32[4]>, actual is <System.Int32[2,2]>" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected is <System.Int32[4]>, actual is <System.Int32[2,2]>" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -50,10 +50,10 @@
int[] actual = new int[] { 1, 2, 3 };
expectedMessage =
- " Expected is <System.Int32[5]>, actual is <System.Int32[3]>" + Environment.NewLine +
- " Values differ at index [3]" + Environment.NewLine +
+ " Expected is <System.Int32[5]>, actual is <System.Int32[3]>" + NL +
+ " Values differ at index [3]" + NL +
" Missing: < 4, 5 >";
- Expect(actual, EqualTo(expected));
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -63,10 +63,10 @@
int[] actual = new int[] { 1, 2, 3, 4, 5, 6, 7 };
expectedMessage =
- " Expected is <System.Int32[3]>, actual is <System.Int32[7]>" + Environment.NewLine +
- " Values differ at index [3]" + Environment.NewLine +
+ " Expected is <System.Int32[3]>, actual is <System.Int32[7]>" + NL +
+ " Values differ at index [3]" + NL +
" Extra: < 4, 5, 6... >";
- Expect(actual, EqualTo(expected));
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -76,11 +76,11 @@
int[] actual = new int[] { 1, 5, 3 };
expectedMessage =
- " Expected and actual are both <System.Int32[3]>" + Environment.NewLine +
- " Values differ at index [1]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "2" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "5" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected and actual are both <System.Int32[3]>" + NL +
+ " Values differ at index [1]" + NL +
+ TextMessageWriter.Pfx_Expected + "2" + NL +
+ TextMessageWriter.Pfx_Actual + "5" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -90,11 +90,11 @@
int[,] actual = new int[,] { { 1, 3, 2 }, { 4, 0, 6 } };
expectedMessage =
- " Expected and actual are both <System.Int32[2,3]>" + Environment.NewLine +
- " Values differ at index [0,1]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "2" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "3" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected and actual are both <System.Int32[2,3]>" + NL +
+ " Values differ at index [0,1]" + NL +
+ TextMessageWriter.Pfx_Expected + "2" + NL +
+ TextMessageWriter.Pfx_Actual + "3" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -104,11 +104,11 @@
int[, ,] actual = new int[,,] { { { 1, 2 }, { 3, 4 } }, { { 0, 6 }, { 7, 8 } } };
expectedMessage =
- " Expected and actual are both <System.Int32[2,2,2]>" + Environment.NewLine +
- " Values differ at index [1,0,0]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "5" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "0" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected and actual are both <System.Int32[2,2,2]>" + NL +
+ " Values differ at index [1,0,0]" + NL +
+ TextMessageWriter.Pfx_Expected + "5" + NL +
+ TextMessageWriter.Pfx_Actual + "0" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -118,11 +118,11 @@
int[, , , ,] actual = new int[2, 2, 2, 2, 2] { { { { { 1, 2 }, { 4, 3 } }, { { 5, 6 }, { 7, 8 } } }, { { { 1, 2 }, { 3, 4 } }, { { 5, 6 }, { 7, 8 } } } }, { { { { 1, 2 }, { 3, 4 } }, { { 5, 6 }, { 7, 8 } } }, { { { 1, 2 }, { 3, 4 } }, { { 5, 6 }, { 7, 8 } } } } };
expectedMessage =
- " Expected and actual are both <System.Int32[2,2,2,2,2]>" + Environment.NewLine +
- " Values differ at index [0,0,0,1,0]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "3" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "4" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected and actual are both <System.Int32[2,2,2,2,2]>" + NL +
+ " Values differ at index [0,0,0,1,0]" + NL +
+ TextMessageWriter.Pfx_Expected + "3" + NL +
+ TextMessageWriter.Pfx_Actual + "4" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -132,13 +132,13 @@
int[][] actual = new int[][] { new int[] { 1, 2, 3 }, new int[] { 4, 5, 0, 7 }, new int[] { 8, 9 } };
expectedMessage =
- " Expected and actual are both <System.Int32[3][]>" + Environment.NewLine +
- " Values differ at index [1]" + Environment.NewLine +
- " Expected and actual are both <System.Int32[4]>" + Environment.NewLine +
- " Values differ at index [2]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "6" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "0" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected and actual are both <System.Int32[3][]>" + NL +
+ " Values differ at index [1]" + NL +
+ " Expected and actual are both <System.Int32[4]>" + NL +
+ " Values differ at index [2]" + NL +
+ TextMessageWriter.Pfx_Expected + "6" + NL +
+ TextMessageWriter.Pfx_Actual + "0" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -148,11 +148,11 @@
int[][] actual = new int[][] { new int[] { 1, 2, 3 }, new int[] { 4, 5, 0, 7 }, new int[] { 8, 9 } };
expectedMessage =
- " Expected is <System.Int32[9]>, actual is <System.Int32[3][]>" + Environment.NewLine +
- " Values differ at index [0]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "1" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "< 1, 2, 3 >" + Environment.NewLine;
- Expect(actual, EqualTo(expected));
+ " Expected is <System.Int32[9]>, actual is <System.Int32[3][]>" + NL +
+ " Values differ at index [0]" + NL +
+ TextMessageWriter.Pfx_Expected + "1" + NL +
+ TextMessageWriter.Pfx_Actual + "< 1, 2, 3 >" + NL;
+ Assert.That(actual, Is.EqualTo(expected));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -162,11 +162,11 @@
int[,] actual = new int[,] { { 1, 0 }, { 3, 4 } };
expectedMessage =
- " Expected is <System.Int32[4]>, actual is <System.Int32[2,2]>" + Environment.NewLine +
- " Values differ at expected index [1], actual index [0,1]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "2" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "0" + Environment.NewLine;
- Expect(actual, EqualTo(expected).AsCollection);
+ " Expected is <System.Int32[4]>, actual is <System.Int32[2,2]>" + NL +
+ " Values differ at expected index [1], actual index [0,1]" + NL +
+ TextMessageWriter.Pfx_Expected + "2" + NL +
+ TextMessageWriter.Pfx_Actual + "0" + NL;
+ Assert.That(actual, Is.EqualTo(expected).AsCollection);
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -176,11 +176,11 @@
int[,] actual = new int[,] { { 1, 2 }, { 3, 0 }, { 5, 6 } };
expectedMessage =
- " Expected is <System.Int32[2,3]>, actual is <System.Int32[3,2]>" + Environment.NewLine +
- " Values differ at expected index [1,0], actual index [1,1]" + Environment.NewLine +
- TextMessageWriter.Pfx_Expected + "4" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "0" + Environment.NewLine;
- Expect(actual, EqualTo(expected).AsCollection);
+ " Expected is <System.Int32[2,3]>, actual is <System.Int32[3,2]>" + NL +
+ " Values differ at expected index [1,0], actual index [1,1]" + NL +
+ TextMessageWriter.Pfx_Expected + "4" + NL +
+ TextMessageWriter.Pfx_Actual + "0" + NL;
+ Assert.That(actual, Is.EqualTo(expected).AsCollection);
}
// [Test,ExpectedException(typeof(AssertionException))]
@@ -190,10 +190,10 @@
// string[] array2 = { "one", "two", "three", "four", "five" };
//
// expectedMessage =
- // " Expected is <System.String[5]>, actual is <System.String[3]>" + Environment.NewLine +
- // " Values differ at index [3]" + Environment.NewLine +
+ // " Expected is <System.String[5]>, actual is <System.String[3]>" + NL +
+ // " Values differ at index [3]" + NL +
// " Missing: < \"four\", \"five\" >";
- // Expect(array1, EqualTo(array2));
+ // Assert.That(array1, Is.EqualTo(array2));
// }
[Test, ExpectedException(typeof(AssertionException))]
@@ -203,13 +203,13 @@
string[] array2 = { "one", "two", "ten" };
expectedMessage =
- " Expected and actual are both <System.String[3]>" + Environment.NewLine +
- " Values differ at index [2]" + Environment.NewLine +
- " Expected string length 3 but was 5. Strings differ at index 1." + Environment.NewLine +
- " Expected: \"ten\"" + Environment.NewLine +
- " But was: \"three\"" + Environment.NewLine +
- " ------------^" + Environment.NewLine;
- Expect(array1, EqualTo(array2));
+ " Expected and actual are both <System.String[3]>" + NL +
+ " Values differ at index [2]" + NL +
+ " Expected string length 3 but was 5. Strings differ at index 1." + NL +
+ " Expected: \"ten\"" + NL +
+ " But was: \"three\"" + NL +
+ " ------------^" + NL;
+ Assert.That(array1, Is.EqualTo(array2));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -219,13 +219,13 @@
object[] array2 = { "one", "three", "two" };
expectedMessage =
- " Expected is <System.Object[3]>, actual is <System.String[3]>" + Environment.NewLine +
- " Values differ at index [1]" + Environment.NewLine +
- " Expected string length 5 but was 3. Strings differ at index 1." + Environment.NewLine +
- " Expected: \"three\"" + Environment.NewLine +
- " But was: \"two\"" + Environment.NewLine +
- " ------------^" + Environment.NewLine;
- Expect(array1, EqualTo(array2));
+ " Expected is <System.Object[3]>, actual is <System.String[3]>" + NL +
+ " Values differ at index [1]" + NL +
+ " Expected string length 5 but was 3. Strings differ at index 1." + NL +
+ " Expected: \"three\"" + NL +
+ " But was: \"two\"" + NL +
+ " ------------^" + NL;
+ Assert.That(array1, Is.EqualTo(array2));
}
[Test, ExpectedException(typeof(AssertionException))]
@@ -245,12 +245,12 @@
object[] array2 = { "one", "three", "two" };
expectedMessage =
- " Expected is <System.String[3]>, actual is <System.Object[3]>" + System.Environment.NewLine +
- " Values differ at index [1]" + System.Environment.NewLine +
- " Expected string length 3 but was 5. Strings differ at index 1." + System.Environment.NewLine +
- " Expected: \"two\"" + System.Environment.NewLine +
- " But was: \"three\"" + System.Environment.NewLine +
- " ------------^" + System.Environment.NewLine;
+ " Expected is <System.String[3]>, actual is <System.Object[3]>" + NL +
+ " Values differ at index [1]" + NL +
+ " Expected string length 3 but was 5. Strings differ at index 1." + NL +
+ " Expected: \"two\"" + NL +
+ " But was: \"three\"" + NL +
+ " ------------^" + NL;
Assert.AreEqual(array1, array2);
}
}
=== renamed file 'src/tests/ArrayEqualsFixture.cs' => 'src/tests/Shared/Framework/ArrayEqualsFixture.cs'
--- src/tests/ArrayEqualsFixture.cs 2009-07-16 19:37:36 +0000
+++ src/tests/Shared/Framework/ArrayEqualsFixture.cs 2009-09-06 16:12:27 +0000
@@ -36,7 +36,7 @@
public void ArrayIsEqualToItself()
{
string[] array = { "one", "two", "three" };
- Assert.AreSame( array, array );
+ Assert.That( array, Is.SameAs(array) );
Assert.AreEqual( array, array );
Expect(array, EqualTo(array));
}
=== renamed file 'src/tests/ArrayNotEqualFixture.cs' => 'src/tests/Shared/Framework/ArrayNotEqualFixture.cs'
=== renamed file 'src/tests/CollectionAdapter.cs' => 'src/tests/Shared/Framework/CollectionAdapter.cs'
=== renamed directory 'src/tests/Constraints' => 'src/tests/Shared/Framework/Constraints'
=== modified file 'src/tests/Shared/Framework/Constraints/AndTest.cs'
--- src/tests/Constraints/AndTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/AndTest.cs 2009-09-06 16:12:27 +0000
@@ -35,10 +35,8 @@
}
object[] SuccessData = new object[] { 42 };
-
- object[] FailureData = new object[] { 37, 53 };
- string[] ActualValues = new string[] { "37", "53" };
+ object[] FailureData = new object[] { new object[] { 37, "37" }, new object[] { 53, "53" } };
[Test]
public void CanCombineTestsWithAndOperator()
=== modified file 'src/tests/Shared/Framework/Constraints/BasicConstraintTests.cs'
--- src/tests/Constraints/BasicConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/BasicConstraintTests.cs 2009-09-06 16:12:27 +0000
@@ -39,10 +39,8 @@
}
object[] SuccessData = new object[] { null };
-
- object[] FailureData = new object[] { "hello" };
- string[] ActualValues = new string[] { "\"hello\"" };
+ object[] FailureData = new object[] { new object[] { "hello", "\"hello\"" } };
}
[TestFixture]
@@ -58,9 +56,9 @@
object[] SuccessData = new object[] { true, 2+2==4 };
- object[] FailureData = new object[] { null, "hello", false, 2+2==5 };
-
- string[] ActualValues = new string[] { "null", "\"hello\"", "False", "False" };
+ object[] FailureData = new object[] {
+ new object[] { null, "null" }, new object[] { "hello", "\"hello\"" },
+ new object[] { false, "False"}, new object[] { 2+2==5, "False" } };
}
[TestFixture]
@@ -76,9 +74,11 @@
object[] SuccessData = new object[] { false, 2 + 2 == 5 };
- object[] FailureData = new object[] { null, "hello", true, 2+2==4 };
-
- string[] ActualValues = new string[] { "null", "\"hello\"", "True", "True" };
+ object[] FailureData = new object[] {
+ new TestCaseData( null, "null" ),
+ new TestCaseData( "hello", "\"hello\"" ),
+ new TestCaseData( true, "True" ),
+ new TestCaseData( 2+2==4, "True" )};
}
[TestFixture]
@@ -94,11 +94,13 @@
object[] SuccessData = new object[] { double.NaN, float.NaN };
- object[] FailureData = new object[] { null, "hello", 42,
- double.PositiveInfinity, double.NegativeInfinity,
- float.PositiveInfinity, float.NegativeInfinity };
-
- string[] ActualValues = new string[] { "null", "\"hello\"", "42",
- "Infinity", "-Infinity", "Infinity", "-Infinity" };
+ object[] FailureData = new object[] {
+ new TestCaseData( null, "null" ),
+ new TestCaseData( "hello", "\"hello\"" ),
+ new TestCaseData( 42, "42" ),
+ new TestCaseData( double.PositiveInfinity, "Infinity" ),
+ new TestCaseData( double.NegativeInfinity, "-Infinity" ),
+ new TestCaseData( float.PositiveInfinity, "Infinity" ),
+ new TestCaseData( float.NegativeInfinity, "-Infinity" ) };
}
}
=== added file 'src/tests/Shared/Framework/Constraints/BinarySerializableTest.cs'
--- src/tests/Shared/Framework/Constraints/BinarySerializableTest.cs 1970-01-01 00:00:00 +0000
+++ src/tests/Shared/Framework/Constraints/BinarySerializableTest.cs 2009-09-08 05:53:41 +0000
@@ -0,0 +1,48 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+#if !NETCF
+using System;
+using System.Collections;
+
+namespace NUnit.Framework.Constraints.Tests
+{
+ [TestFixture]
+ public class BinarySerializableTest : ConstraintTestBaseWithArgumentException
+ {
+ [SetUp]
+ public void SetUp()
+ {
+ theConstraint = new BinarySerializableConstraint();
+ expectedDescription = "binary serializable";
+ stringRepresentation = "<binaryserializable>";
+ }
+
+ object[] SuccessData = new object[] { 1, "a", new ArrayList(), new InternalWithSerializableAttributeClass() };
+
+ object[] FailureData = new object[] { new TestCaseData( new InternalClass(), "<InternalClass>" ) };
+
+ object[] InvalidData = new object[] { null };
+ }
+}
+#endif
\ No newline at end of file
=== modified file 'src/tests/Shared/Framework/Constraints/CollectionConstraintTests.cs'
--- src/tests/Constraints/CollectionConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/CollectionConstraintTests.cs 2009-09-11 21:12:38 +0000
@@ -46,8 +46,8 @@
{
object[] c = new object[] { 1, "hello", null, 3 };
expectedMessage =
- TextMessageWriter.Pfx_Expected + "all items not null" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "< 1, \"hello\", null, 3 >" + Environment.NewLine;
+ TextMessageWriter.Pfx_Expected + "all items not null" + NL +
+ TextMessageWriter.Pfx_Actual + "< 1, \"hello\", null, 3 >" + NL;
Assert.That(c, new AllItemsConstraint(new NotConstraint(new EqualConstraint(null))));
}
@@ -86,8 +86,8 @@
{
int[] c = new int[] { 12, 27, 19, 32, 107, 99, 26 };
expectedMessage =
- TextMessageWriter.Pfx_Expected + "all items in range (10,100)" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "< 12, 27, 19, 32, 107, 99, 26 >" + Environment.NewLine;
+ TextMessageWriter.Pfx_Expected + "all items in range (10,100)" + NL +
+ TextMessageWriter.Pfx_Actual + "< 12, 27, 19, 32, 107, 99, 26 >" + NL;
Assert.That(c, new AllItemsConstraint(new RangeConstraint(10, 100)));
}
@@ -103,8 +103,8 @@
{
object[] c = new object[] { 'a', "b", 'c' };
expectedMessage =
- TextMessageWriter.Pfx_Expected + "all items instance of <System.Char>" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "< 'a', \"b\", 'c' >" + Environment.NewLine;
+ TextMessageWriter.Pfx_Expected + "all items instance of <System.Char>" + NL +
+ TextMessageWriter.Pfx_Actual + "< 'a', \"b\", 'c' >" + NL;
Assert.That(c, new AllItemsConstraint(new InstanceOfTypeConstraint(typeof(char))));
}
}
@@ -130,6 +130,7 @@
Assert.That(list, new CollectionContainsConstraint(item));
}
+#if !NETCF_1_0
[Test]
public void CanTestContentsOfSortedList()
{
@@ -141,6 +142,7 @@
Assert.That(list.Values, new CollectionContainsConstraint(item));
Assert.That(list.Keys, new CollectionContainsConstraint("b"));
}
+#endif
[Test]
public void CanTestContentsOfCollectionNotImplementingIList()
@@ -257,6 +259,7 @@
#endregion
#region CollectionOrdered
+
[TestFixture]
public class CollectionOrderedTests : MessageChecker
{
@@ -313,8 +316,8 @@
al.Add("y");
expectedMessage =
- " Expected: collection ordered" + Environment.NewLine +
- " But was: < \"x\", \"z\", \"y\" >" + Environment.NewLine;
+ " Expected: collection ordered" + NL +
+ " But was: < \"x\", \"z\", \"y\" >" + NL;
Assert.That(al, Is.Ordered);
}
@@ -508,5 +511,6 @@
}
}
}
+
#endregion
}
=== modified file 'src/tests/Shared/Framework/Constraints/ComparerTests.cs'
--- src/tests/Constraints/ComparerTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/ComparerTests.cs 2009-09-06 16:12:27 +0000
@@ -56,7 +56,9 @@
[TestCase(4.0d, 2.0f)]
[TestCase(4.0f, 2)]
[TestCase(4.0f, 2.0d)]
+#if !NUNITLITE
[TestCase(4, SpecialValue.Null)]
+#endif
#if NET_2_0
[TestCase(4, null)]
#endif
=== modified file 'src/tests/Shared/Framework/Constraints/ComparisonConstraintTests.cs'
--- src/tests/Constraints/ComparisonConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/ComparisonConstraintTests.cs 2009-09-06 16:12:27 +0000
@@ -118,9 +118,7 @@
object[] SuccessData = new object[] { 6, 5.001 };
- object[] FailureData = new object[] { 4, 5 };
-
- string[] ActualValues = new string[] { "4", "5" };
+ object[] FailureData = new object[] { new object[] { 4, "4" }, new object[] { 5, "5" } };
object[] InvalidData = new object[] { null, "xxx" };
@@ -158,9 +156,7 @@
object[] SuccessData = new object[] { 6, 5 };
- object[] FailureData = new object[] { 4 };
-
- string[] ActualValues = new string[] { "4" };
+ object[] FailureData = new object[] { new object[] { 4, "4" } };
object[] InvalidData = new object[] { null, "xxx" };
@@ -198,9 +194,7 @@
object[] SuccessData = new object[] { 4, 4.999 };
- object[] FailureData = new object[] { 6, 5 };
-
- string[] ActualValues = new string[] { "6", "5" };
+ object[] FailureData = new object[] { new object[] { 6, "6" }, new object[] { 5, "5" } };
object[] InvalidData = new object[] { null, "xxx" };
@@ -238,9 +232,7 @@
object[] SuccessData = new object[] { 4, 5 };
- object[] FailureData = new object[] { 6 };
-
- string[] ActualValues = new string[] { "6" };
+ object[] FailureData = new object[] { new object[] { 6, "6" } };
object[] InvalidData = new object[] { null, "xxx" };
@@ -280,9 +272,7 @@
object[] SuccessData = new object[] { 5, 23, 42 };
- object[] FailureData = new object[] { 4, 43 };
-
- string[] ActualValues = new string[] { "4", "43" };
+ object[] FailureData = new object[] { new object[] { 4, "4" }, new object[] { 43, "43" } };
object[] InvalidData = new object[] { null, "xxx" };
=== modified file 'src/tests/Shared/Framework/Constraints/ConstraintTestBase.cs'
--- src/tests/Constraints/ConstraintTestBase.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/ConstraintTestBase.cs 2009-09-08 05:53:41 +0000
@@ -36,13 +36,13 @@
{
TextMessageWriter writer = new TextMessageWriter();
theConstraint.WriteDescriptionTo(writer);
- Assert.AreEqual(expectedDescription, writer.ToString());
+ Assert.That(expectedDescription == writer.ToString());
}
[Test]
public void ProvidesProperStringRepresentation()
{
- Assert.AreEqual(stringRepresentation, theConstraint.ToString());
+ Assert.That(stringRepresentation == theConstraint.ToString());
}
}
@@ -55,23 +55,17 @@
}
[Test, TestCaseSource("FailureData")]
- public void FailsWithBadValues(object badValue)
+ public void FailsWithBadValues(object badValue, string message)
{
+ string NL = NUnitLite.Env.NewLine;
+
Assert.IsFalse(theConstraint.Matches(badValue));
- }
- [Test, Sequential]
- public void ProvidesProperFailureMessage(
- [ValueSource("FailureData")] object badValue,
- [ValueSource("ActualValues")] string message)
- {
- theConstraint.Matches(badValue);
TextMessageWriter writer = new TextMessageWriter();
theConstraint.WriteMessageTo(writer);
- Assert.AreEqual(
- TextMessageWriter.Pfx_Expected + expectedDescription + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + message + Environment.NewLine,
- writer.ToString());
+ Assert.That( writer.ToString(), Is.EqualTo(
+ TextMessageWriter.Pfx_Expected + expectedDescription + NL +
+ TextMessageWriter.Pfx_Actual + message + NL ));
}
}
=== modified file 'src/tests/Shared/Framework/Constraints/EmptyConstraintTest.cs'
--- src/tests/Constraints/EmptyConstraintTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/EmptyConstraintTest.cs 2009-09-06 16:12:27 +0000
@@ -49,14 +49,8 @@
static object[] FailureData = new object[]
{
- "Hello",
- new object[] { 1, 2, 3 }
- };
-
- static string[] ActualValues = new string[]
- {
- "\"Hello\"",
- "< 1, 2, 3 >"
+ new TestCaseData( "Hello", "\"Hello\"" ),
+ new TestCaseData( new object[] { 1, 2, 3 }, "< 1, 2, 3 >" )
};
static object[] InvalidData = new object[]
@@ -85,12 +79,7 @@
static object[] FailureData = new object[]
{
- "Hello"
- };
-
- static string[] ActualValues = new string[]
- {
- "\"Hello\""
+ new TestCaseData( "Hello", "\"Hello\"" )
};
static object[] InvalidData = new object[]
=== modified file 'src/tests/Shared/Framework/Constraints/EqualTest.cs'
--- src/tests/Constraints/EqualTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/EqualTest.cs 2009-09-11 21:12:38 +0000
@@ -44,9 +44,12 @@
object[] SuccessData = new object[] { 4, 4.0f, 4.0d, 4.0000m };
- object[] FailureData = new object[] { 5, null, "Hello", double.NaN, double.PositiveInfinity };
-
- string[] ActualValues = new string[] { "5", "null", "\"Hello\"", "NaN", "Infinity" };
+ object[] FailureData = new object[] {
+ new TestCaseData( 5, "5" ),
+ new TestCaseData( null, "null" ),
+ new TestCaseData( "Hello", "\"Hello\"" ),
+ new TestCaseData( double.NaN, "NaN" ),
+ new TestCaseData( double.PositiveInfinity, "Infinity" ) };
[TestCase(double.NaN)]
[TestCase(double.PositiveInfinity)]
@@ -132,6 +135,7 @@
Assert.That(actual, new EqualConstraint(expected).Within(TimeSpan.TicksPerMinute*5).Ticks);
}
+#if !NETCF_1_0
[TestCase(20000000000000004.0)]
[TestCase(19999999999999996.0)]
public void CanMatchDoublesWithUlpTolerance(object value)
@@ -161,6 +165,7 @@
{
Assert.That(value, new EqualConstraint(20000000.0f).Within(1).Ulps);
}
+#endif
[TestCase(9500.0)]
[TestCase(10000.0)]
@@ -442,6 +447,8 @@
public void HandleException(Exception ex)
{
+ string NL = NUnitLite.Env.NewLine;
+
StringReader rdr = new StringReader(ex.Message);
/* skip */ rdr.ReadLine();
string expected = rdr.ReadLine();
@@ -462,11 +469,11 @@
if (caret > minLength ||
expected.Substring(0, minMatch) != actual.Substring(0, minMatch) ||
expected[caret] == actual[caret])
- Assert.Fail("Message Error: Caret does not point at first mismatch..." + Environment.NewLine + ex.Message);
+ Assert.Fail("Message Error: Caret does not point at first mismatch..." + NL + ex.Message);
}
if (expected.Length > 68 || actual.Length > 68 || caret > 68)
- Assert.Fail("Message Error: Strings are not truncated..." + Environment.NewLine + ex.Message);
+ Assert.Fail("Message Error: Strings are not truncated..." + NL + ex.Message);
}
public class SameColorAs : Constraint
=== modified file 'src/tests/Shared/Framework/Constraints/FloatingPointNumericsTest.cs'
--- src/tests/Constraints/FloatingPointNumericsTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/FloatingPointNumericsTest.cs 2009-09-11 21:12:38 +0000
@@ -21,6 +21,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ***********************************************************************
+#if !NETCF_1_0
+
using System;
using System.IO;
using System.Drawing;
@@ -122,3 +124,4 @@
}
}
+#endif
\ No newline at end of file
=== modified file 'src/tests/Shared/Framework/Constraints/MsgUtilTests.cs'
--- src/tests/Constraints/MsgUtilTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/MsgUtilTests.cs 2009-09-06 16:12:27 +0000
@@ -21,6 +21,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ***********************************************************************
+// TODO: Remove NUNITLITE conditions
+
namespace NUnit.Framework.Constraints.Tests
{
/// <summary>
@@ -52,17 +54,19 @@
[TestCase("\b", "\\b")]
[TestCase("\f", "\\f")]
[TestCase("\v", "\\v")]
- // New Line
+#if !NUNITLITE
[TestCase("\x0085", "\\x0085", Description = "Next line character")]
[TestCase("\x2028", "\\x2028", Description = "Line separator character")]
[TestCase("\x2029", "\\x2029", Description = "Paragraph separator character")]
+#endif
public void EscapeControlCharsTest(string input, string expected)
{
- Assert.AreEqual( expected, MsgUtils.EscapeControlChars(input) );
+ Assert.That( MsgUtils.EscapeControlChars(input), Is.EqualTo(expected) );
}
private const string s52 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
+#if !NUNITLITE
[TestCase(s52, 52, 0, s52, TestName="NoClippingNeeded")]
[TestCase(s52, 29, 0, "abcdefghijklmnopqrstuvwxyz...", TestName="ClipAtEnd")]
[TestCase(s52, 29, 26, "...ABCDEFGHIJKLMNOPQRSTUVWXYZ", TestName="ClipAtStart")]
@@ -71,8 +75,9 @@
{
System.Console.WriteLine("input= \"{0}\"", input);
System.Console.WriteLine("result= \"{0}\"", result);
- Assert.AreEqual(result, MsgUtils.ClipString(input, max, start));
+ Assert.That(MsgUtils.ClipString(input, max, start), Is.EqualTo(result));
}
+#endif
//[TestCase('\0')]
//[TestCase('\r')]
@@ -86,14 +91,14 @@
string eClip = s52;
string aClip = "abcde";
MsgUtils.ClipExpectedAndActual(ref eClip, ref aClip, 52, 5);
- Assert.AreEqual(s52, eClip);
- Assert.AreEqual("abcde", aClip);
+ Assert.That(eClip, Is.EqualTo(s52));
+ Assert.That(aClip, Is.EqualTo("abcde"));
eClip = s52;
aClip = "abcdefghijklmno?qrstuvwxyz";
MsgUtils.ClipExpectedAndActual(ref eClip, ref aClip, 52, 15);
- Assert.AreEqual(s52, eClip);
- Assert.AreEqual("abcdefghijklmno?qrstuvwxyz", aClip);
+ Assert.That(eClip, Is.EqualTo(s52));
+ Assert.That(aClip, Is.EqualTo("abcdefghijklmno?qrstuvwxyz"));
}
[Test]
@@ -102,7 +107,7 @@
string s1 = s52;
string s2 = s52.Replace('Z', '?');
MsgUtils.ClipExpectedAndActual(ref s1, ref s2, 29, 51);
- Assert.AreEqual("...ABCDEFGHIJKLMNOPQRSTUVWXYZ", s1);
+ Assert.That(s1, Is.EqualTo("...ABCDEFGHIJKLMNOPQRSTUVWXYZ"));
}
[Test]
@@ -111,14 +116,14 @@
string s1 = s52;
string s2 = "abcdefghij";
MsgUtils.ClipExpectedAndActual(ref s1, ref s2, 29, 10);
- Assert.AreEqual("abcdefghijklmnopqrstuvwxyz...", s1);
- Assert.AreEqual("abcdefghij", s2);
+ Assert.That(s1, Is.EqualTo("abcdefghijklmnopqrstuvwxyz..."));
+ Assert.That(s2, Is.EqualTo("abcdefghij"));
s1 = s52;
s2 = "abcdefghijklmno?qrstuvwxyz";
MsgUtils.ClipExpectedAndActual(ref s1, ref s2, 25, 15);
- Assert.AreEqual("...efghijklmnopqrstuvw...", s1);
- Assert.AreEqual("...efghijklmno?qrstuvwxyz", s2);
+ Assert.That(s1, Is.EqualTo("...efghijklmnopqrstuvw..."));
+ Assert.That(s2, Is.EqualTo("...efghijklmno?qrstuvwxyz"));
}
}
}
=== modified file 'src/tests/Shared/Framework/Constraints/NotTest.cs'
--- src/tests/Constraints/NotTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/NotTest.cs 2009-09-06 16:12:27 +0000
@@ -38,9 +38,7 @@
object[] SuccessData = new object[] { 42, "Hello" };
- object[] FailureData = new object [] { null };
-
- string[] ActualValues = new string[] { "null" };
+ object[] FailureData = new object [] { new object[] { null, "null" } };
[Test, ExpectedException(typeof(AssertionException), ExpectedMessage = "ignoring case", MatchType = MessageMatch.Contains)]
public void NotHonorsIgnoreCaseUsingConstructors()
=== modified file 'src/tests/Shared/Framework/Constraints/OrTest.cs'
--- src/tests/Constraints/OrTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/OrTest.cs 2009-09-06 16:12:27 +0000
@@ -36,9 +36,7 @@
object[] SuccessData = new object[] { 99, 42 };
- object[] FailureData = new object[] { 37 };
-
- string[] ActualValues = new string[] { "37" };
+ object[] FailureData = new object[] { new object[] { 37, "37" } };
[Test]
public void CanCombineTestsWithOrOperator()
=== modified file 'src/tests/Shared/Framework/Constraints/PathConstraintTests.cs'
--- src/tests/Constraints/PathConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/PathConstraintTests.cs 2009-09-06 16:12:27 +0000
@@ -50,15 +50,9 @@
};
object[] FailureData = new object[]
{
- 123,
- @"C:\folder2\file.tmp",
- @"C:\folder1\.\folder2\..\file.temp"
- };
- string[] ActualValues = new string[]
- {
- "123",
- "\"C:\\folder2\\file.tmp\"",
- "\"C:\\folder1\\.\\folder2\\..\\file.temp\""
+ new TestCaseData( 123, "123" ),
+ new TestCaseData( @"C:\folder2\file.tmp", "\"C:\\folder2\\file.tmp\"" ),
+ new TestCaseData( @"C:\folder1\.\folder2\..\file.temp", "\"C:\\folder1\\.\\folder2\\..\\file.temp\"" )
};
}
@@ -83,19 +77,11 @@
};
object[] FailureData = new object[]
{
- 123,
- @"/folder2/file.tmp",
- @"/folder1/./folder2/../file.temp",
- @"/Folder1/File.TMP",
- @"/FOLDER1/./folder2/../File.TMP",
- };
- string[] ActualValues = new string[]
- {
- "123",
- "\"/folder2/file.tmp\"",
- "\"/folder1/./folder2/../file.temp\"",
- "\"/Folder1/File.TMP\"",
- "\"/FOLDER1/./folder2/../File.TMP\"",
+ new TestCaseData( 123, "123" ),
+ new TestCaseData( @"/folder2/file.tmp", "\"/folder2/file.tmp\"" ),
+ new TestCaseData( @"/folder1/./folder2/../file.temp", "\"/folder1/./folder2/../file.temp\"" ),
+ new TestCaseData( @"/Folder1/File.TMP", "\"/Folder1/File.TMP\"" ),
+ new TestCaseData( @"/FOLDER1/./folder2/../File.TMP", "\"/FOLDER1/./folder2/../File.TMP\"" )
};
}
@@ -126,15 +112,9 @@
};
object[] FailureData = new object[]
{
- 123,
- @"C:\folder1\folder3",
- @"C:\folder1\.\folder2\..\file.temp"
- };
- string[] ActualValues = new string[]
- {
- "123",
- "\"C:\\folder1\\folder3\"",
- "\"C:\\folder1\\.\\folder2\\..\\file.temp\""
+ new TestCaseData( 123, "123" ),
+ new TestCaseData( @"C:\folder1\folder3", "\"C:\\folder1\\folder3\"" ),
+ new TestCaseData( @"C:\folder1\.\folder2\..\file.temp", "\"C:\\folder1\\.\\folder2\\..\\file.temp\"" )
};
}
@@ -162,23 +142,13 @@
};
object[] FailureData = new object[]
{
- 123,
- "/Folder1/Folder2",
- "/FOLDER1/./junk/../Folder2",
- "/FOLDER1/./junk/../Folder2/temp/../Folder3",
- "/folder1/folder3",
- "/folder1/./folder2/../folder3",
- "/folder1"
- };
- string[] ActualValues = new string[]
- {
- "123",
- "\"/Folder1/Folder2\"",
- "\"/FOLDER1/./junk/../Folder2\"",
- "\"/FOLDER1/./junk/../Folder2/temp/../Folder3\"",
- "\"/folder1/folder3\"",
- "\"/folder1/./folder2/../folder3\"",
- "\"/folder1\""
+ new TestCaseData( 123, "123" ),
+ new TestCaseData( "/Folder1/Folder2", "\"/Folder1/Folder2\"" ),
+ new TestCaseData( "/FOLDER1/./junk/../Folder2", "\"/FOLDER1/./junk/../Folder2\"" ),
+ new TestCaseData( "/FOLDER1/./junk/../Folder2/temp/../Folder3", "\"/FOLDER1/./junk/../Folder2/temp/../Folder3\"" ),
+ new TestCaseData( "/folder1/folder3", "\"/folder1/folder3\"" ),
+ new TestCaseData( "/folder1/./folder2/../folder3", "\"/folder1/./folder2/../folder3\"" ),
+ new TestCaseData( "/folder1", "\"/folder1\"" )
};
}
}
\ No newline at end of file
=== modified file 'src/tests/Shared/Framework/Constraints/PropertyTests.cs'
--- src/tests/Constraints/PropertyTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/PropertyTests.cs 2009-09-06 16:12:27 +0000
@@ -21,11 +21,17 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// ***********************************************************************
+// TODO: Remove conditional code
using System;
namespace NUnit.Framework.Constraints.Tests
{
- public class PropertyExistsTest : ConstraintTestBaseWithExceptionTests
+ public class PropertyExistsTest
+#if NUNITLITE
+ : ConstraintTestBase
+#else
+ : ConstraintTestBaseWithExceptionTests
+#endif
{
[SetUp]
public void SetUp()
@@ -37,17 +43,24 @@
static object[] SuccessData = new object[] { new int[0], "hello", typeof(Array) };
- static object[] FailureData = new object[] { 42, new System.Collections.ArrayList(), typeof(Int32) };
-
- static string[] ActualValues = new string[] { "<System.Int32>", "<System.Collections.ArrayList>", "<System.Int32>" };
-
+ static object[] FailureData = new object[] {
+ new TestCaseData( 42, "<System.Int32>" ),
+ new TestCaseData( new System.Collections.ArrayList(), "<System.Collections.ArrayList>" ),
+ new TestCaseData( typeof(Int32), "<System.Int32>" ) };
+#if !NUNITLITE
static object[] InvalidData = new TestCaseData[]
{
new TestCaseData(null).Throws(typeof(ArgumentNullException))
};
+#endif
}
- public class PropertyTest : ConstraintTestBaseWithExceptionTests
+ public class PropertyTest
+#if NUNITLITE
+ : ConstraintTestBase
+#else
+ : ConstraintTestBaseWithExceptionTests
+#endif
{
[SetUp]
public void SetUp()
@@ -59,15 +72,16 @@
static object[] SuccessData = new object[] { new int[5], "hello" };
- static object[] FailureData = new object[] { new int[3], "goodbye" };
-
- static string[] ActualValues = new string[] { "3", "7" };
-
+ static object[] FailureData = new object[] {
+ new TestCaseData( new int[3], "3" ),
+ new TestCaseData( "goodbye", "7" ) };
+#if !NUNITLITE
static object[] InvalidData = new object[]
{
new TestCaseData(null).Throws(typeof(ArgumentNullException)),
new TestCaseData(42).Throws(typeof(ArgumentException)),
new TestCaseData(new System.Collections.ArrayList()).Throws(typeof(ArgumentException))
};
+#endif
}
}
=== modified file 'src/tests/Shared/Framework/Constraints/SameAsTest.cs'
--- src/tests/Constraints/SameAsTest.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/SameAsTest.cs 2009-09-06 16:12:27 +0000
@@ -39,8 +39,9 @@
static object[] SuccessData = new object[] { obj1 };
- static object[] FailureData = new object[] { obj2, 3, "Hello" };
-
- static string[] ActualValues = new string[] { "<System.Object>", "3", "\"Hello\"" };
+ static object[] FailureData = new object[] {
+ new TestCaseData( obj2, "<System.Object>" ),
+ new TestCaseData( 3, "3" ),
+ new TestCaseData( "Hello", "\"Hello\"" ) };
}
}
\ No newline at end of file
=== modified file 'src/tests/Shared/Framework/Constraints/StringConstraintTests.cs'
--- src/tests/Constraints/StringConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/StringConstraintTests.cs 2009-09-08 05:53:41 +0000
@@ -38,15 +38,20 @@
object[] SuccessData = new object[] { "hello", "hello there", "I said hello", "say hello to fred" };
- object[] FailureData = new object[] { "goodbye", "HELLO", "What the hell?", string.Empty, null };
-
- string[] ActualValues = new string[] { "\"goodbye\"", "\"HELLO\"", "\"What the hell?\"", "<string.Empty>", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( "goodbye", "\"goodbye\"" ),
+ new TestCaseData( "HELLO", "\"HELLO\"" ),
+ new TestCaseData( "What the hell?", "\"What the hell?\"" ),
+ new TestCaseData( string.Empty, "<string.Empty>" ),
+ new TestCaseData( null, "null" ) };
public void HandleException(Exception ex)
{
+ string NL = NUnitLite.Env.NewLine;
+
Assert.That(ex.Message, new EqualConstraint(
- TextMessageWriter.Pfx_Expected + "String containing \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...\"" + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + "\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...\"" + Environment.NewLine));
+ TextMessageWriter.Pfx_Expected + "String containing \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...\"" + NL +
+ TextMessageWriter.Pfx_Actual + "\"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx...\"" + NL));
}
}
@@ -63,9 +68,11 @@
object[] SuccessData = new object[] { "Hello", "HellO there", "I said HELLO", "say hello to fred" };
- object[] FailureData = new object[] { "goodbye", "What the hell?", string.Empty, null };
-
- string[] ActualValues = new string[] { "\"goodbye\"", "\"What the hell?\"", "<string.Empty>", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( "goodbye", "\"goodbye\"" ),
+ new TestCaseData( "What the hell?", "\"What the hell?\"" ),
+ new TestCaseData( string.Empty, "<string.Empty>" ),
+ new TestCaseData( null, "null" ) };
}
[TestFixture]
@@ -81,9 +88,13 @@
object[] SuccessData = new object[] { "hello", "hello there" };
- object[] FailureData = new object[] { "goodbye", "HELLO THERE", "I said hello", "say hello to fred", string.Empty, null };
-
- string[] ActualValues = new string[] { "\"goodbye\"", "\"HELLO THERE\"", "\"I said hello\"", "\"say hello to fred\"", "<string.Empty>", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( "goodbye", "\"goodbye\"" ),
+ new TestCaseData( "HELLO THERE", "\"HELLO THERE\"" ),
+ new TestCaseData( "I said hello", "\"I said hello\"" ),
+ new TestCaseData( "say hello to Fred", "\"say hello to Fred\"" ),
+ new TestCaseData( string.Empty, "<string.Empty>" ),
+ new TestCaseData( null , "null" ) };
}
[TestFixture]
@@ -99,9 +110,13 @@
object[] SuccessData = new object[] { "Hello", "HELLO there" };
- object[] FailureData = new object[] { "goodbye", "What the hell?", "I said hello", "say Hello to fred", string.Empty, null };
-
- string[] ActualValues = new string[] { "\"goodbye\"", "\"What the hell?\"", "\"I said hello\"", "\"say Hello to fred\"", "<string.Empty>", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( "goodbye", "\"goodbye\"" ),
+ new TestCaseData( "What the hell?", "\"What the hell?\"" ),
+ new TestCaseData( "I said hello", "\"I said hello\"" ),
+ new TestCaseData( "say hello to Fred", "\"say hello to Fred\"" ),
+ new TestCaseData( string.Empty, "<string.Empty>" ),
+ new TestCaseData( null , "null" ) };
}
[TestFixture]
@@ -117,9 +132,12 @@
object[] SuccessData = new object[] { "hello", "I said hello" };
- object[] FailureData = new object[] { "goodbye", "What the hell?", "hello there", "say hello to fred", string.Empty, null };
-
- string[] ActualValues = new string[] { "\"goodbye\"", "\"What the hell?\"", "\"hello there\"", "\"say hello to fred\"", "<string.Empty>", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( "goodbye", "\"goodbye\"" ),
+ new TestCaseData( "hello there", "\"hello there\"" ),
+ new TestCaseData( "say hello to Fred", "\"say hello to Fred\"" ),
+ new TestCaseData( string.Empty, "<string.Empty>" ),
+ new TestCaseData( null , "null" ) };
}
[TestFixture]
@@ -135,9 +153,13 @@
object[] SuccessData = new object[] { "HELLO", "I said Hello" };
- object[] FailureData = new object[] { "goodbye", "What the hell?", "hello there", "say hello to fred", string.Empty, null };
-
- string[] ActualValues = new string[] { "\"goodbye\"", "\"What the hell?\"", "\"hello there\"", "\"say hello to fred\"", "<string.Empty>", "null" };
+ object[] FailureData = new object[] {
+ new TestCaseData( "goodbye", "\"goodbye\"" ),
+ new TestCaseData( "What the hell?", "\"What the hell?\"" ),
+ new TestCaseData( "hello there", "\"hello there\"" ),
+ new TestCaseData( "say hello to Fred", "\"say hello to Fred\"" ),
+ new TestCaseData( string.Empty, "<string.Empty>" ),
+ new TestCaseData( null , "null" ) };
}
//[TestFixture]
@@ -154,6 +176,7 @@
// object[] FailureData = new object[] { "goodbye", "Hello Friends!", string.Empty, null };
+
// string[] ActualValues = new string[] { "\"goodbye\"", "\"Hello Friends!\"", "<string.Empty>", "null" };
//}
}
=== modified file 'src/tests/Shared/Framework/Constraints/ThrowsConstraintTests.cs'
--- src/tests/Constraints/ThrowsConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/ThrowsConstraintTests.cs 2009-09-08 05:53:41 +0000
@@ -45,16 +45,9 @@
static object[] FailureData = new object[]
{
- new TestDelegate( TestDelegates.ThrowsApplicationException ),
- new TestDelegate( TestDelegates.ThrowsNothing ),
- new TestDelegate( TestDelegates.ThrowsSystemException )
- };
-
- static string[] ActualValues = new string[]
- {
- "<System.ApplicationException>",
- "no exception thrown",
- "<System.Exception>"
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsApplicationException ), "<System.ApplicationException>" ),
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsNothing ), "no exception thrown" ),
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsSystemException ), "<System.Exception>" )
};
}
@@ -78,19 +71,14 @@
static object[] FailureData = new object[]
{
- new TestDelegate( TestDelegates.ThrowsArgumentException ),
- new TestDelegate( TestDelegates.ThrowsNothing ),
- new TestDelegate( TestDelegates.ThrowsSystemException )
- };
-
- static string[] ActualValues = new string[]
- {
- "<System.ArgumentException>",
- "no exception thrown",
- "<System.Exception>"
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsArgumentException ), "<System.ArgumentException>" ),
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsNothing ), "no exception thrown" ),
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsSystemException ), "<System.Exception>" )
};
}
+// TODO: Find a different example for use with NETCF - ArgumentException does not have a ParamName member
+#if !NETCF
public class ThrowsConstraintTest_WithConstraint : ConstraintTestBase
{
[SetUp]
@@ -111,16 +99,10 @@
static object[] FailureData = new object[]
{
- new TestDelegate( TestDelegates.ThrowsApplicationException ),
- new TestDelegate( TestDelegates.ThrowsNothing ),
- new TestDelegate( TestDelegates.ThrowsSystemException )
- };
-
- static string[] ActualValues = new string[]
- {
- "<System.ApplicationException>",
- "no exception thrown",
- "<System.Exception>"
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsApplicationException ), "<System.ApplicationException>" ),
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsNothing ), "no exception thrown" ),
+ new TestCaseData( new TestDelegate( TestDelegates.ThrowsSystemException ), "<System.Exception>" )
};
}
+#endif
}
=== modified file 'src/tests/Shared/Framework/Constraints/TypeConstraintTests.cs'
--- src/tests/Constraints/TypeConstraintTests.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Constraints/TypeConstraintTests.cs 2009-09-08 05:53:41 +0000
@@ -36,13 +36,10 @@
object[] SuccessData = new object[] { new D1() };
- object[] FailureData = new object[] { new B(), new D2() };
-
- string[] ActualValues = new string[]
- {
- "<NUnit.Framework.Constraints.Tests.B>",
- "<NUnit.Framework.Constraints.Tests.D2>"
- };
+ object[] FailureData = new object[] {
+ new TestCaseData( new B(), "<NUnit.Framework.Constraints.Tests.B>" ),
+ new TestCaseData( new D2(), "<NUnit.Framework.Constraints.Tests.D2>" )
+ };
}
[TestFixture]
@@ -58,12 +55,9 @@
object[] SuccessData = new object[] { new D1(), new D2() };
- object[] FailureData = new object[] { new B() };
-
- string[] ActualValues = new string[]
- {
- "<NUnit.Framework.Constraints.Tests.B>"
- };
+ object[] FailureData = new object[] {
+ new TestCaseData( new B(), "<NUnit.Framework.Constraints.Tests.B>" )
+ };
}
[TestFixture]
@@ -79,12 +73,8 @@
object[] SuccessData = new object[] { new D1(), new B() };
- object[] FailureData = new object[] { new D2() };
-
- string[] ActualValues = new string[]
- {
- "<NUnit.Framework.Constraints.Tests.D2>"
- };
+ object[] FailureData = new object[] {
+ new TestCaseData( new D2(), "<NUnit.Framework.Constraints.Tests.D2>" ) };
}
[TestFixture]
@@ -100,12 +90,8 @@
object[] SuccessData = new object[] { new D1(), new D2() };
- object[] FailureData = new object[] { new B() };
-
- string[] ActualValues = new string[]
- {
- "<NUnit.Framework.Constraints.Tests.B>"
- };
+ object[] FailureData = new object[] {
+ new TestCaseData( new B(), "<NUnit.Framework.Constraints.Tests.B>" ) };
}
class B { }
@@ -127,12 +113,8 @@
object[] SuccessData = new object[] { typeof(AttributeExistsConstraintTest) };
- object[] FailureData = new object[] { typeof(D2) };
-
- string[] ActualValues = new string[]
- {
- "<NUnit.Framework.Constraints.Tests.D2>"
- };
+ object[] FailureData = new object[] {
+ new TestCaseData( typeof(D2), "<NUnit.Framework.Constraints.Tests.D2>" ) };
[Test, ExpectedException(typeof(System.ArgumentException))]
public void NonAttributeThrowsException()
@@ -144,7 +126,7 @@
public void AttributeExistsOnMethodInfo()
{
Assert.That(
- System.Reflection.MethodInfo.GetCurrentMethod(),
+ GetType().GetMethod("AttributeExistsOnMethodInfo"),
new AttributeExistsConstraint(typeof(TestAttribute)));
}
@@ -152,8 +134,8 @@
public void AttributeTestPropertyValueOnMethodInfo()
{
Assert.That(
- System.Reflection.MethodInfo.GetCurrentMethod(),
- Has.Attribute(typeof(DescriptionAttribute)).Property("Description").EqualTo("my description"));
+ GetType().GetMethod("AttributeTestPropertyValueOnMethodInfo"),
+ Has.Attribute(typeof(DescriptionAttribute)).Property("Properties").Property("Keys").Contains("Description"));
}
}
}
\ No newline at end of file
=== added file 'src/tests/Shared/Framework/Constraints/XmlSerializableTest.cs'
--- src/tests/Shared/Framework/Constraints/XmlSerializableTest.cs 1970-01-01 00:00:00 +0000
+++ src/tests/Shared/Framework/Constraints/XmlSerializableTest.cs 2009-09-11 21:12:38 +0000
@@ -0,0 +1,70 @@
+// ***********************************************************************
+// Copyright (c) 2007 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.
+// ***********************************************************************
+
+#if !NETCF_1_0
+
+using System;
+using System.Collections;
+#if NET_2_0
+using System.Collections.Generic;
+#endif
+
+namespace NUnit.Framework.Constraints.Tests
+{
+ [TestFixture]
+ public class XmlSerializableTest : ConstraintTestBaseWithArgumentException
+ {
+ [SetUp]
+ public void SetUp()
+ {
+ theConstraint = new XmlSerializableConstraint();
+ expectedDescription = "xml serializable";
+ stringRepresentation = "<xmlserializable>";
+ }
+
+ object[] SuccessData = new object[] { 1, "a", new ArrayList() };
+
+#if NET_2_0
+ object[] FailureData = new object[] {
+ new TestCaseData( new Dictionary<string, string>(), "<Dictionary`2>" ),
+ new TestCaseData( new InternalClass(), "<InternalClass>" ),
+ new TestCaseData( new InternalWithSerializableAttributeClass(), "<InternalWithSerializableAttributeClass>" )
+ };
+#else
+ object[] FailureData = new object[] {
+ new TestCaseData( new InternalClass(), "<InternalClass>" ),
+ new TestCaseData( new InternalWithSerializableAttributeClass(), "<InternalWithSerializableAttributeClass>" )
+ };
+#endif
+
+ object[] InvalidData = new object[] { null };
+ }
+
+ internal class InternalClass
+ { }
+
+ [Serializable]
+ internal class InternalWithSerializableAttributeClass
+ { }
+}
+#endif
\ No newline at end of file
=== renamed file 'src/tests/MessageChecker.cs' => 'src/tests/Shared/Framework/MessageChecker.cs'
--- src/tests/MessageChecker.cs 2009-07-16 19:37:36 +0000
+++ src/tests/Shared/Framework/MessageChecker.cs 2009-09-08 05:53:41 +0000
@@ -30,9 +30,10 @@
/// that check for an expected message in the exception
/// handler.
/// </summary>
- public abstract class MessageChecker : AssertionHelper, IExpectException
+ public abstract class MessageChecker : IExpectException
{
protected string expectedMessage;
+ protected readonly string NL = NUnitLite.Env.NewLine;
[SetUp]
public void SetUp()
@@ -43,7 +44,7 @@
public void HandleException( Exception ex )
{
if ( expectedMessage != null )
- Assert.AreEqual( expectedMessage, ex.Message );
+ Assert.That( ex.Message, Is.EqualTo(expectedMessage) );
}
}
}
=== renamed directory 'src/tests/Syntax' => 'src/tests/Shared/Framework/Syntax'
=== modified file 'src/tests/Shared/Framework/Syntax/SerializableConstraints.cs'
--- src/tests/Syntax/SerializableConstraints.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Syntax/SerializableConstraints.cs 2009-09-08 05:53:41 +0000
@@ -23,6 +23,7 @@
namespace NUnit.Framework.Syntax
{
+#if !NETCF
[TestFixture]
public class BinarySerializableTest : SyntaxTest
{
@@ -35,7 +36,9 @@
builderSyntax = Builder().BinarySerializable;
}
}
+#endif
+#if !NETCF_1_0
[TestFixture]
public class XmlSerializableTest : SyntaxTest
{
@@ -48,4 +51,5 @@
builderSyntax = Builder().XmlSerializable;
}
}
+#endif
}
=== modified file 'src/tests/Shared/Framework/Syntax/StringConstraints.cs'
--- src/tests/Syntax/StringConstraints.cs 2009-07-16 20:05:38 +0000
+++ src/tests/Shared/Framework/Syntax/StringConstraints.cs 2009-09-08 05:53:41 +0000
@@ -44,7 +44,7 @@
public void SetUp()
{
parseTree = @"<substring ""X"">";
- staticSyntax = Text.Contains("X");
+ staticSyntax = Is.StringContaining("X");
inheritedSyntax = Helper().ContainsSubstring("X");
builderSyntax = Builder().ContainsSubstring("X");
}
@@ -81,7 +81,7 @@
public void SetUp()
{
parseTree = @"<startswith ""X"">";
- staticSyntax = Text.StartsWith("X");
+ staticSyntax = Is.StringStarting("X");
inheritedSyntax = Helper().StartsWith("X");
builderSyntax = Builder().StartsWith("X");
}
@@ -118,7 +118,7 @@
public void SetUp()
{
parseTree = @"<endswith ""X"">";
- staticSyntax = Text.EndsWith("X");
+ staticSyntax = Is.StringEnding("X");
inheritedSyntax = Helper().EndsWith("X");
builderSyntax = Builder().EndsWith("X");
}
@@ -136,6 +136,7 @@
}
}
+#if !NETCF
public class RegexTest : SyntaxTest
{
[SetUp]
@@ -155,7 +156,7 @@
public void SetUp()
{
parseTree = @"<regex ""X"">";
- staticSyntax = Text.Matches("X");
+ staticSyntax = Is.StringMatching("X");
inheritedSyntax = Helper().Matches("X");
builderSyntax = Builder().Matches("X");
}
@@ -172,4 +173,5 @@
builderSyntax = Builder().Matches("X").IgnoreCase;
}
}
+#endif
}
=== added file 'src/tests/Shared/Framework/TestComparer.cs'
--- src/tests/Shared/Framework/TestComparer.cs 1970-01-01 00:00:00 +0000
+++ src/tests/Shared/Framework/TestComparer.cs 2009-09-02 02:21:09 +0000
@@ -0,0 +1,51 @@
+// ***********************************************************************
+// Copyright (c) 2006 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.
+// ***********************************************************************
+
+using System;
+using System.Collections;
+
+namespace NUnit.Framework.Tests
+{
+ internal class TestComparer : IComparer
+ {
+ public bool Called = false;
+
+ #region IComparer Members
+ public int Compare(object x, object y)
+ {
+ Called = true;
+
+ if (x == null && y == null)
+ return 0;
+
+ if (x == null || y == null)
+ return -1;
+
+ if (x.Equals(y))
+ return 0;
+
+ return -1;
+ }
+ #endregion
+ }
+}
=== renamed file 'src/tests/TestDelegates.cs' => 'src/tests/Shared/Framework/TestDelegates.cs'
=== renamed file 'src/tests/TestFixtureAttributeTests.cs' => 'src/tests/Shared/Framework/TestFixtureAttributeTests.cs'
--- src/tests/TestFixtureAttributeTests.cs 2009-07-16 19:37:36 +0000
+++ src/tests/Shared/Framework/TestFixtureAttributeTests.cs 2009-09-06 16:12:27 +0000
@@ -54,7 +54,7 @@
}
#if NET_2_0
- [Test, Category("Generics")]
+ [Test]
public void ConstructWithJustTypeArgs()
{
TestFixtureAttribute attr = new TestFixtureAttribute(typeArgs);
@@ -62,7 +62,7 @@
Assert.That(attr.TypeArgs, Is.EqualTo(typeArgs));
}
- [Test, Category("Generics")]
+ [Test]
public void ConstructWithNoArgumentsAndSetTypeArgs()
{
TestFixtureAttribute attr = new TestFixtureAttribute();
@@ -71,7 +71,7 @@
Assert.That(attr.TypeArgs, Is.EqualTo(typeArgs));
}
- [Test, Category("Generics")]
+ [Test]
public void ConstructWithFixtureArgsAndSetTypeArgs()
{
TestFixtureAttribute attr = new TestFixtureAttribute(fixtureArgs);
@@ -80,7 +80,7 @@
Assert.That(attr.TypeArgs, Is.EqualTo(typeArgs));
}
- [Test, Category("Generics")]
+ [Test]
public void ConstructWithCombinedArgs()
{
TestFixtureAttribute attr = new TestFixtureAttribute(combinedArgs);
=== renamed file 'src/tests/TextMessageWriterTests.cs' => 'src/tests/Shared/Framework/TextMessageWriterTests.cs'
--- src/tests/TextMessageWriterTests.cs 2009-07-16 19:37:36 +0000
+++ src/tests/Shared/Framework/TextMessageWriterTests.cs 2009-09-08 05:53:41 +0000
@@ -30,6 +30,8 @@
[TestFixture]
public class TextMessageWriterTests : AssertionHelper
{
+ private static readonly string NL = NUnitLite.Env.NewLine;
+
private TextMessageWriter writer;
[SetUp]
@@ -136,9 +138,9 @@
writer.DisplayStringDifferences(s72, "abcde", 5, false, true);
string message = writer.ToString();
Expect(message, EqualTo(
- TextMessageWriter.Pfx_Expected + Q(exp) + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + Q("abcde") + Environment.NewLine +
- " ----------------^" + Environment.NewLine));
+ TextMessageWriter.Pfx_Expected + Q(exp) + NL +
+ TextMessageWriter.Pfx_Actual + Q("abcde") + NL +
+ " ----------------^" + NL));
}
[Test]
@@ -149,9 +151,9 @@
writer.DisplayStringDifferences(s72, "abcde", 5, false, false);
string message = writer.ToString();
Expect(message, EqualTo(
- TextMessageWriter.Pfx_Expected + Q(s72) + Environment.NewLine +
- TextMessageWriter.Pfx_Actual + Q("abcde") + Environment.NewLine +
- " ----------------^" + Environment.NewLine));
+ TextMessageWriter.Pfx_Expected + Q(s72) + NL +
+ TextMessageWriter.Pfx_Actual + Q("abcde") + NL +
+ " ----------------^" + NL));
}
private string Q(string s)
=== modified file 'src/tests/nunit.framework.tests.build'
--- src/tests/nunit.framework.tests.build 2009-08-21 19:49:56 +0000
+++ src/tests/nunit.framework.tests.build 2009-09-11 21:12:38 +0000
@@ -1,75 +1,79 @@
<?xml version="1.0"?>
<project name="NUnitFrameworkTests" default="build" basedir=".">
+<!--
<patternset id="source-files">
- <include name="Constraints/AfterConstraintTests.cs"/>
- <include name="Constraints/AndTest.cs"/>
- <include name="Constraints/BasicConstraintTests.cs"/>
- <include name="Constraints/CollectionConstraintTests.cs"/>
- <include name="Constraints/ComparerTests.cs"/>
- <include name="Constraints/ComparisonConstraintTests.cs"/>
- <include name="Constraints/ConstraintTestBase.cs"/>
- <include name="Constraints/EmptyConstraintTest.cs"/>
- <include name="Constraints/EqualTest.cs"/>
- <include name="Constraints/FloatingPointNumericsTest.cs"/>
- <include name="Constraints/MsgUtilTests.cs"/>
- <include name="Constraints/NotTest.cs"/>
- <include name="Constraints/NumericsTest.cs"/>
- <include name="Constraints/OrTest.cs"/>
- <include name="Constraints/PathConstraintTests.cs"/>
- <include name="Constraints/PropertyTests.cs"/>
- <include name="Constraints/SameAsTest.cs"/>
- <include name="Constraints/SerializableConstraintTest.cs"/>
- <include name="Constraints/StringConstraintTests.cs"/>
- <include name="Constraints/ThrowsConstraintTests.cs"/>
- <include name="Constraints/TypeConstraintTests.cs"/>
- <include name="Syntax/AfterTests.cs"/>
- <include name="Syntax/ArbitraryConstraintMatching.cs"/>
- <include name="Syntax/CollectionTests.cs"/>
- <include name="Syntax/ComparisonTests.cs"/>
- <include name="Syntax/EqualityTests.cs"/>
- <include name="Syntax/InvalidCodeTests.cs"/>
- <include name="Syntax/OperatorOverrides.cs"/>
- <include name="Syntax/OperatorTests.cs"/>
- <include name="Syntax/PathConstraintTests.cs"/>
- <include name="Syntax/PropertyTests.cs"/>
- <include name="Syntax/SerializableConstraints.cs"/>
- <include name="Syntax/SimpleConstraints.cs"/>
- <include name="Syntax/StringConstraints.cs"/>
- <include name="Syntax/SyntaxTest.cs"/>
- <include name="Syntax/TestCompiler.cs"/>
- <include name="Syntax/ThrowsTests.cs"/>
- <include name="Syntax/TypeConstraints.cs"/>
- <include name="ArrayEqualsFailureMessageFixture.cs"/>
- <include name="ArrayEqualsFixture.cs"/>
- <include name="ArrayNotEqualFixture.cs"/>
- <include name="AssertThrowsTests.cs"/>
- <include name="AssumeThatTests.cs"/>
- <include name="CollectionAssertTest.cs"/>
- <include name="CollectionAdapter.cs"/>
- <include name="ConditionAssertTests.cs"/>
- <include name="DirectoryAssertTests.cs"/>
- <include name="EqualsFixture.cs"/>
- <include name="FileAssertTests.cs"/>
- <include name="GreaterEqualFixture.cs"/>
- <include name="GreaterFixture.cs"/>
- <include name="LessEqualFixture.cs"/>
- <include name="LessFixture.cs"/>
- <include name="ListContentsTests.cs"/>
- <include name="MessageChecker.cs"/>
- <include name="NotEqualFixture.cs"/>
- <include name="NotSameFixture.cs"/>
- <include name="NullableTypesTests.cs"/>
- <include name="RandomizerTests.cs"/>
- <include name="RangeTests.cs"/>
- <include name="SameFixture.cs"/>
- <include name="StringAssertTests.cs"/>
- <include name="TestDelegates.cs"/>
- <include name="TestFixtureAttributeTests.cs"/>
- <include name="TextMessageWriterTests.cs"/>
- <include name="TypeAssertTest.cs"/>
- <include name="ValuesAttributeTests.cs"/>
+ <include name="Framework/AlwaysEqualComparer.cs"/>
+ <include name="Framework/ArrayEqualsFailureMessageFixture.cs"/>
+ <include name="Framework/ArrayEqualsFixture.cs"/>
+ <include name="Framework/ArrayNotEqualFixture.cs"/>
+ <include name="Framework/AssertThrowsTests.cs"/>
+ <include name="Framework/AssumeThatTests.cs"/>
+ <include name="Framework/CollectionAssertTest.cs"/>
+ <include name="Framework/CollectionAdapter.cs"/>
+ <include name="Framework/ConditionAssertTests.cs"/>
+ <include name="Framework/DirectoryAssertTests.cs"/>
+ <include name="Framework/EqualsFixture.cs"/>
+ <include name="Framework/FileAssertTests.cs"/>
+ <include name="Framework/GreaterEqualFixture.cs"/>
+ <include name="Framework/GreaterFixture.cs"/>
+ <include name="Framework/LessEqualFixture.cs"/>
+ <include name="Framework/LessFixture.cs"/>
+ <include name="Framework/ListContentsTests.cs"/>
+ <include name="Framework/MessageChecker.cs"/>
+ <include name="Framework/NotEqualFixture.cs"/>
+ <include name="Framework/NotSameFixture.cs"/>
+ <include name="Framework/NullableTypesTests.cs"/>
+ <include name="Framework/RandomizerTests.cs"/>
+ <include name="Framework/RangeTests.cs"/>
+ <include name="Framework/SameFixture.cs"/>
+ <include name="Framework/StringAssertTests.cs"/>
+ <include name="Framework/TestComparer.cs"/>
+ <include name="Framework/TestDelegates.cs"/>
+ <include name="Framework/TestFixtureAttributeTests.cs"/>
+ <include name="Framework/TextMessageWriterTests.cs"/>
+ <include name="Framework/TypeAssertTest.cs"/>
+ <include name="Framework/ValuesAttributeTests.cs"/>
+ <include name="Framework/Constraints/AfterConstraintTests.cs"/>
+ <include name="Framework/Constraints/AndTest.cs"/>
+ <include name="Framework/Constraints/BasicConstraintTests.cs"/>
+ <include name="Framework/Constraints/CollectionConstraintTests.cs"/>
+ <include name="Framework/Constraints/ComparerTests.cs"/>
+ <include name="Framework/Constraints/ComparisonConstraintTests.cs"/>
+ <include name="Framework/Constraints/ConstraintTestBase.cs"/>
+ <include name="Framework/Constraints/EmptyConstraintTest.cs"/>
+ <include name="Framework/Constraints/EqualTest.cs"/>
+ <include name="Framework/Constraints/FloatingPointNumericsTest.cs"/>
+ <include name="Framework/Constraints/MsgUtilTests.cs"/>
+ <include name="Framework/Constraints/NotTest.cs"/>
+ <include name="Framework/Constraints/NumericsTest.cs"/>
+ <include name="Framework/Constraints/OrTest.cs"/>
+ <include name="Framework/Constraints/PathConstraintTests.cs"/>
+ <include name="Framework/Constraints/PropertyTests.cs"/>
+ <include name="Framework/Constraints/SameAsTest.cs"/>
+ <include name="Framework/Constraints/SerializableConstraintTest.cs"/>
+ <include name="Framework/Constraints/StringConstraintTests.cs"/>
+ <include name="Framework/Constraints/ThrowsConstraintTests.cs"/>
+ <include name="Framework/Constraints/TypeConstraintTests.cs"/>
+ <include name="Framework/Syntax/AfterTests.cs"/>
+ <include name="Framework/Syntax/ArbitraryConstraintMatching.cs"/>
+ <include name="Framework/Syntax/CollectionTests.cs"/>
+ <include name="Framework/Syntax/ComparisonTests.cs"/>
+ <include name="Framework/Syntax/EqualityTests.cs"/>
+ <include name="Framework/Syntax/InvalidCodeTests.cs"/>
+ <include name="Framework/Syntax/OperatorOverrides.cs"/>
+ <include name="Framework/Syntax/OperatorTests.cs"/>
+ <include name="Framework/Syntax/PathConstraintTests.cs"/>
+ <include name="Framework/Syntax/PropertyTests.cs"/>
+ <include name="Framework/Syntax/SerializableConstraints.cs"/>
+ <include name="Framework/Syntax/SimpleConstraints.cs"/>
+ <include name="Framework/Syntax/StringConstraints.cs"/>
+ <include name="Framework/Syntax/SyntaxTest.cs"/>
+ <include name="Framework/Syntax/TestCompiler.cs"/>
+ <include name="Framework/Syntax/ThrowsTests.cs"/>
+ <include name="Framework/Syntax/TypeConstraints.cs"/>
</patternset>
+ -->
<patternset id="resource-files">
<include name="TestImage1.jpg"/>
@@ -78,14 +82,16 @@
<include name="TestText2.txt"/>
</patternset>
- <target name="build">
+ <target name="nunit">
<csc target="library"
output="${current.build.dir}/nunit.framework.tests.dll"
debug="${build.debug}"
define="${build.defines}">
<sources>
- <patternset refid="source-files"/>
+ <!--<patternset refid="source-files"/>-->
<include name="../CommonAssemblyInfo.cs"/>
+ <include name="NUnit/**/*.cs"/>
+ <include name="Shared/**/*.cs"/>
</sources>
<resources prefix="NUnit.Framework.Tests">
<patternset refid="resource-files"/>
@@ -98,10 +104,37 @@
</csc>
</target>
+ <target name="nunitlite">
+ <csc target="exe"
+ output="${current.build.dir}/nunitlite.tests.exe"
+ debug="${build.debug}"
+ define="${build.defines};NUNITLITE">
+ <sources>
+ <!--<patternset refid="source-files"/>-->
+ <include name="../CommonAssemblyInfo.cs"/>
+ <include name="Program.cs"/>
+ <include name="NUnitLite/**/*.cs"/>
+ <include name="Shared/**/*.cs"/>
+ </sources>
+ <resources prefix="NUnit.Framework.Tests">
+ <patternset refid="resource-files"/>
+ </resources>
+ <references basedir="${current.build.dir}">
+ <include name="nunitlite.dll"/>
+ <include name="mscorlib.dll"/>
+ <include name="System.dll"/>
+ <include name="System.Xml.dll"/>
+ <include name="System.Data.dll"/>
+ <include name="System.Drawing.dll"/>
+ </references>
+ </csc>
+ </target>
+
<target name="package">
<copy todir="${package.src.dir}/tests">
<fileset>
- <patternset refid="source-files"/>
+ <!--<patternset refid="source-files"/>-->
+ <include name="**/*.cs"/>
<patternset refid="resource-files"/>
<include name="nunit.framework.tests.build"/>
</fileset>
=== modified file 'tools/src/CodeGeneration/CodeGenLib/CodeGenLib.csproj'
--- tools/src/CodeGeneration/CodeGenLib/CodeGenLib.csproj 2009-08-27 03:29:36 +0000
+++ tools/src/CodeGeneration/CodeGenLib/CodeGenLib.csproj 2009-09-07 02:09:51 +0000
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -7,7 +7,6 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{2C1A506E-FDA2-4BF1-9CE7-FBEF0E14F2B5}</ProjectGuid>
<OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NUnit.Framework.CodeGeneration</RootNamespace>
<AssemblyName>CodeGenLib</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
=== modified file 'tools/src/CodeGeneration/CodeGenLib/CodeGenSpec.cs'
--- tools/src/CodeGeneration/CodeGenLib/CodeGenSpec.cs 2009-08-27 03:29:36 +0000
+++ tools/src/CodeGeneration/CodeGenLib/CodeGenSpec.cs 2009-08-30 19:03:20 +0000
@@ -35,6 +35,7 @@
private List<string> comments = new List<string>();
private List<CodeGenItem> genSpecs = new List<CodeGenItem>();
private List<string> defaults = new List<string>();
+ private string condition;
private string currentRegion;
@@ -60,6 +61,8 @@
AddStandardSyntaxElements(line);
else if (line.StartsWith("Default:"))
this.defaults.Add(line.Substring(8).Trim());
+ else if (line.StartsWith("Cond:"))
+ this.condition = line.Substring(5).Trim();
else
IssueFormatError(line);
}
@@ -95,6 +98,8 @@
}
public void Generate(CodeWriter writer, string className, bool isStatic)
{
+ bool needBlankLine = false;
+
foreach (CodeGenItem spec in genSpecs)
{
if (spec.ClassName == className)
@@ -110,6 +115,14 @@
writer.WriteLine("#region " + currentRegion);
writer.WriteLine();
+ if (condition != null)
+ writer.WriteLineNoTabs("#if " + condition);
+ }
+
+ if (needBlankLine)
+ {
+ writer.WriteLine();
+ needBlankLine = false;
}
if (spec.IsGeneric)
@@ -122,11 +135,17 @@
if (spec.IsGeneric)
writer.WriteLineNoTabs("#endif");
+
+ needBlankLine = true;
}
}
if (currentRegion != null)
{
+ if (condition != null)
+ writer.WriteLineNoTabs("#endif");
+
+ writer.WriteLine();
writer.WriteLine("#endregion");
writer.WriteLine();
currentRegion = null;
@@ -157,7 +176,7 @@
: "return " + spec.RightPart + ";");
writer.PopIndent();
writer.WriteLine("}");
- writer.WriteLine();
+ //writer.WriteLine();
}
private void WriteComments(CodeWriter writer)
=== modified file 'tools/src/CodeGeneration/GenSyntax/Templates/Assert.template.cs'
--- tools/src/CodeGeneration/GenSyntax/Templates/Assert.template.cs 2009-08-23 04:14:27 +0000
+++ tools/src/CodeGeneration/GenSyntax/Templates/Assert.template.cs 2009-09-12 03:41:51 +0000
@@ -86,6 +86,7 @@
#region Equals and ReferenceEquals
+#if !NETCF
/// <summary>
/// The Equals method throws an AssertionException. This is done
/// to make sure there is no mistake by calling this function.
@@ -95,8 +96,7 @@
[EditorBrowsable(EditorBrowsableState.Never)]
public static new bool Equals(object a, object b)
{
- // TODO: This should probably be InvalidOperationException
- throw new AssertionException("Assert.Equals should not be used for Assertions");
+ throw new InvalidOperationException("Assert.Equals should not be used for Assertions");
}
/// <summary>
@@ -108,35 +108,17 @@
/// <param name="b"></param>
public static new void ReferenceEquals(object a, object b)
{
- throw new AssertionException("Assert.ReferenceEquals should not be used for Assertions");
- }
-
- #endregion
-
- #region Helper Methods
- /// <summary>
- /// Helper for Assert.AreEqual(double expected, double actual, ...)
- /// allowing code generation to work consistently.
- /// </summary>
- /// <param name="expected">The expected value</param>
- /// <param name="actual">The actual value</param>
- /// <param name="delta">The maximum acceptable difference between the
- /// the expected and the actual</param>
- /// <param name="message">The message to display in case of failure</param>
- /// <param name="args">Array of objects to be used in formatting the message</param>
- protected static void AssertDoublesAreEqual(double expected, double actual, double delta, string message, object[] args)
- {
- if (double.IsNaN(expected) || double.IsInfinity(expected))
- Assert.That(actual, Is.EqualTo(expected), message, args);
- else
- Assert.That(actual, Is.EqualTo(expected).Within(delta), message, args);
- }
+ throw new InvalidOperationException("Assert.ReferenceEquals should not be used for Assertions");
+ }
+#endif
+
#endregion
#region Utility Asserts
#region Pass
+#if !NUNITLITE
/// <summary>
/// Throws a <see cref="SuccessException"/> with the message and arguments
/// that are passed in. This allows a test to be cut short, with a result
@@ -173,7 +155,7 @@
{
Assert.Pass(string.Empty, null);
}
-
+#endif
#endregion
#region Fail
@@ -216,6 +198,7 @@
#region Ignore
+#if !NUNITLITE
/// <summary>
/// Throws an <see cref="IgnoreException"/> with the message and arguments
/// that are passed in. This causes the test to be reported as ignored.
@@ -249,10 +232,13 @@
{
Assert.Ignore(string.Empty, null);
}
+#endif
#endregion
#region InConclusive
+
+#if !NUNITLITE
/// <summary>
/// Throws an <see cref="InconclusiveException"/> with the message and arguments
/// that are passed in. This causes the test to be reported as inconclusive.
@@ -286,6 +272,7 @@
{
Assert.Inconclusive(string.Empty, null);
}
+#endif
#endregion
@@ -340,6 +327,7 @@
#endregion
#region ActualValueDelegate
+#if !NUNITLITE
/// <summary>
/// Apply a constraint to an actual value, succeeding if the constraint
/// is satisfied and throwing an assertion exception on failure.
@@ -383,6 +371,7 @@
throw new AssertionException(writer.ToString());
}
}
+#endif
#endregion
#region ref Object
@@ -722,7 +711,6 @@
/// Verifies that a delegate throws an exception of a certain Type
/// or one derived from it when called and returns it.
/// </summary>
- /// <param name="expectedExceptionType">The expected Exception Type</param>
/// <param name="code">A TestDelegate</param>
/// <param name="message">The message that will be displayed on failure</param>
/// <param name="args">Arguments to be used in formatting the message</param>
@@ -735,7 +723,6 @@
/// Verifies that a delegate throws an exception of a certain Type
/// or one derived from it when called and returns it.
/// </summary>
- /// <param name="expectedExceptionType">The expected Exception Type</param>
/// <param name="code">A TestDelegate</param>
/// <param name="message">The message that will be displayed on failure</param>
public static Exception Catch<T>(TestDelegate code, string message)
@@ -747,7 +734,6 @@
/// Verifies that a delegate throws an exception of a certain Type
/// or one derived from it when called and returns it.
/// </summary>
- /// <param name="expectedExceptionType">The expected Exception Type</param>
/// <param name="code">A TestDelegate</param>
public static Exception Catch<T>(TestDelegate code)
{
@@ -802,5 +788,25 @@
#endregion
// $$GENERATE$$ $$STATIC$$
+
+ #region Helper Methods
+ /// <summary>
+ /// Helper for Assert.AreEqual(double expected, double actual, ...)
+ /// allowing code generation to work consistently.
+ /// </summary>
+ /// <param name="expected">The expected value</param>
+ /// <param name="actual">The actual value</param>
+ /// <param name="delta">The maximum acceptable difference between the
+ /// the expected and the actual</param>
+ /// <param name="message">The message to display in case of failure</param>
+ /// <param name="args">Array of objects to be used in formatting the message</param>
+ protected static void AssertDoublesAreEqual(double expected, double actual, double delta, string message, object[] args)
+ {
+ if (double.IsNaN(expected) || double.IsInfinity(expected))
+ Assert.That(actual, Is.EqualTo(expected), message, args);
+ else
+ Assert.That(actual, Is.EqualTo(expected).Within(delta), message, args);
+ }
+ #endregion
}
}
=== modified file 'tools/src/CodeGeneration/tests/GenSyntax.Tests.csproj'
--- tools/src/CodeGeneration/tests/GenSyntax.Tests.csproj 2009-08-27 03:29:36 +0000
+++ tools/src/CodeGeneration/tests/GenSyntax.Tests.csproj 2009-09-07 02:09:51 +0000
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -7,7 +7,6 @@
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{695EDA21-AE36-414B-9F5F-EE06CECC1ED0}</ProjectGuid>
<OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>NUnit.Framework.CodeGeneration</RootNamespace>
<AssemblyName>CodeGenerationTests</AssemblyName>
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
=== removed directory 'tools/src/CodeGeneration/tests/Properties'
Follow ups