Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
// ****************************************************************
// Copyright 2007, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org/?p=license&r=2.4
// ****************************************************************
using System;
using System.Reflection;
[assembly: CLSCompliant(true)]
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("../../nunit.snk")]
[assembly: AssemblyKeyName("")]

View File

@@ -0,0 +1,29 @@
thisdir = nunit24/NUnitExtensions/framework
SUBDIRS =
include ../../../build/rules.make
LIBRARY = nunit.framework.extensions.dll
LIBRARY_SNK = $(topdir)/nunit24/nunit.snk
LIB_MCS_FLAGS = -debug /r:System.Xml.dll /r:System.dll /d:StronglyNamedAssembly
NO_TEST = yo
ifneq (net_2_0, $(PROFILE))
NO_INSTALL = yes
install-local: install-symlink
uninstall-local: uninstall-symlink
endif
EXTRA_DISTFILES = \
nunit.framework.extensions.dll.csproj \
nunit.framework.extensions.dll_VS2005.csproj
include ../../../build/library.make
symlinkdir = $(mono_libdir)/mono/$(FRAMEWORK_VERSION)
install-symlink:
$(MKINSTALLDIRS) $(DESTDIR)$(symlinkdir)
cd $(DESTDIR)$(symlinkdir) && rm -f $(LIBRARY_NAME) && ln -s ../2.0/$(LIBRARY_NAME) $(LIBRARY_NAME)
uninstall-symlink:
rm -f $(DESTDIR)$(symlinkdir)/$(LIBRARY_NAME)

View File

@@ -0,0 +1,37 @@
// ****************************************************************
// Copyright 2007, Charlie Poole
// This is free software licensed under the NUnit license. You may
// obtain a copy of the license at http://nunit.org/?p=license&r=2.4
// ****************************************************************
using System;
namespace NUnit.Framework.Extensions
{
/// <summary>
/// RepeatAttribute may be applied to test case in order
/// to run it multiple times.
/// </summary>
[AttributeUsage(AttributeTargets.Method, AllowMultiple=false)]
public class RepeatAttribute : Attribute
{
private int count;
/// <summary>
/// Construct a RepeatAttribute
/// </summary>
/// <param name="count">The number of times to run the test</param>
public RepeatAttribute(int count)
{
this.count = count;
}
/// <summary>
/// Gets the number of times to run the test.
/// </summary>
public int Count
{
get { return count; }
}
}
}

View File

@@ -0,0 +1,67 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
namespace NUnitExtension.RowTest
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class RowAttribute : Attribute
{
private string _testName;
private object[] _arguments;
private string _description;
private Type _expectedExceptionType;
private string _exceptionMessage;
public RowAttribute(object argument1)
{
_arguments = new object[] { argument1 };
}
public RowAttribute(object argument1, object argument2)
{
_arguments = new object[] { argument1, argument2 };
}
public RowAttribute(object argument1, object argument2, object argument3)
{
_arguments = new object[] { argument1, argument2, argument3 };
}
public RowAttribute(params object[] arguments)
{
_arguments = arguments;
}
public string TestName
{
get { return _testName; }
set { _testName = value; }
}
public object[] Arguments
{
get { return _arguments; }
}
public string Description
{
get { return _description; }
set { _description = value; }
}
public Type ExpectedException
{
get { return _expectedExceptionType; }
set { _expectedExceptionType = value; }
}
public string ExceptionMessage
{
get { return _exceptionMessage; }
set { _exceptionMessage = value; }
}
}
}

View File

@@ -0,0 +1,67 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
namespace NUnit.Framework.Extensions
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class RowAttribute : Attribute
{
private string _testName;
private object[] _arguments;
private string _description;
private Type _expectedExceptionType;
private string _exceptionMessage;
public RowAttribute(object argument1)
{
_arguments = new object[] { argument1 };
}
public RowAttribute(object argument1, object argument2)
{
_arguments = new object[] { argument1, argument2 };
}
public RowAttribute(object argument1, object argument2, object argument3)
{
_arguments = new object[] { argument1, argument2, argument3 };
}
public RowAttribute(params object[] arguments)
{
_arguments = arguments;
}
public string TestName
{
get { return _testName; }
set { _testName = value; }
}
public object[] Arguments
{
get { return _arguments; }
}
public string Description
{
get { return _description; }
set { _description = value; }
}
public Type ExpectedException
{
get { return _expectedExceptionType; }
set { _expectedExceptionType = value; }
}
public string ExceptionMessage
{
get { return _exceptionMessage; }
set { _exceptionMessage = value; }
}
}
}

View File

@@ -0,0 +1,13 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
namespace NUnit.Framework.Extensions
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class RowTestAttribute : Attribute
{
}
}

View File

@@ -0,0 +1,13 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
namespace NUnit.Framework.Extensions
{
public enum SpecialValue
{
Null = 1
}
}

View File

@@ -0,0 +1,13 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
namespace NUnitExtension.RowTest
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public sealed class RowTestAttribute : Attribute
{
}
}

View File

@@ -0,0 +1,13 @@
// *********************************************************************
// Copyright 2007, Andreas Schlapsi
// This is free software licensed under the MIT license.
// *********************************************************************
using System;
namespace NUnitExtension.RowTest
{
public enum SpecialValue
{
Null = 1
}
}

View File

@@ -0,0 +1,126 @@
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{486C498D-B9F8-477F-ACA7-CED9245BBFCF}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "nunit.framework.extensions"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Library"
PreBuildEvent = ""
PostBuildEvent = ""
RootNamespace = "NUnit.Framework.Extensions"
RunPostBuildEvent = "OnBuildSuccess"
StartupObject = ""
>
<Config
Name = "Debug"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "DEBUG;TRACE"
DocumentationFile = ""
DebugSymbols = "true"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "false"
OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
<Config
Name = "Release"
AllowUnsafeBlocks = "false"
BaseAddress = "285212672"
CheckForOverflowUnderflow = "false"
ConfigurationOverrideFile = ""
DefineConstants = "TRACE"
DocumentationFile = ""
DebugSymbols = "false"
FileAlignment = "4096"
IncrementalBuild = "false"
NoStdLib = "false"
NoWarn = ""
Optimize = "true"
OutputPath = "bin\Release\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
TreatWarningsAsErrors = "false"
WarningLevel = "4"
/>
</Settings>
<References>
<Reference
Name = "System"
AssemblyName = "System"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
HintPath = "C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
/>
<Reference
Name = "nunit.framework.dll"
Project = "{83DD7E12-A705-4DBA-9D71-09C8973D9382}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "AssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "CommonAssemblyInfo.cs"
Link = "..\..\CommonAssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "RepeatAttribute.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "RowTest\RowAttribute.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "RowTest\RowTestAttribute.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "RowTest\SpecialValue.cs"
SubType = "Code"
BuildAction = "Compile"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>

View File

@@ -0,0 +1,9 @@
../../CommonAssemblyInfo.cs
AssemblyInfo.cs
RepeatAttribute.cs
RowAttribute.cs
RowTest/RowAttribute.cs
RowTest/RowTestAttribute.cs
RowTest/SpecialValue.cs
RowTestAttribute.cs
SpecialValue.cs

View File

@@ -0,0 +1,105 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{486C498D-B9F8-477F-ACA7-CED9245BBFCF}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>nunit.framework.extensions</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>NUnit.Framework.Extensions</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug2005|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release2005|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\CommonAssemblyInfo.cs">
<Link>CommonAssemblyInfo.cs</Link>
</Compile>
<Compile Include="RepeatAttribute.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="RowTest\RowAttribute.cs" />
<Compile Include="RowTest\RowTestAttribute.cs" />
<Compile Include="RowTest\SpecialValue.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
</Project>