Skip to content

Commit

Permalink
new version of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyOsherove authored and RoyOsherove committed Jun 25, 2007
1 parent 4ac8ff4 commit 7e98517
Show file tree
Hide file tree
Showing 21 changed files with 737 additions and 160 deletions.
119 changes: 0 additions & 119 deletions XtUnit/XtUnit.Framework.csproj

This file was deleted.

20 changes: 0 additions & 20 deletions XtUnit/XtUnit.Framework.sln

This file was deleted.

File renamed without changes.
File renamed without changes.
Expand Up @@ -146,11 +146,7 @@ private void PreProcess(ref IMethodCallMessage callMessage)
{
ProcessingAttributeBase[] attrs = getMethodCallCustomAttributes(callMessage);
for(int i=0;i<attrs.Length;i++)
{
attrs[i].DeclaringType = callMessage.MethodBase.DeclaringType;
attrs[i].DeclaringMethod = callMessage.MethodBase;
attrs[i].PreProcess(m_target,ref callMessage);
}
attrs[i].PreProcess(m_target,ref callMessage);
}


Expand Down
@@ -1,6 +1,5 @@
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.Remoting.Messaging;

namespace XtUnit.Framework.Internal
Expand All @@ -21,22 +20,8 @@ public abstract class ProcessingAttributeBase : Attribute
protected IMethodCallMessage methodCallMessage=null;
protected MarshalByRefObject methodCallTarget=null;
protected IMethodReturnMessage methodReturnMessage=null;
private Type declaringType;
private MethodBase declaringMethod;

public Type DeclaringType
{
get { return declaringType; }
set { declaringType = value; }
}

public MethodBase DeclaringMethod
{
get { return declaringMethod; }
set { declaringMethod = value; }
}

[DebuggerStepThrough]
[DebuggerStepThrough]
public void PreProcess(MarshalByRefObject target, ref IMethodCallMessage msg)
{
methodCallTarget=target;
Expand Down
File renamed without changes.
File renamed without changes.
126 changes: 126 additions & 0 deletions XtUnit/XtUnit.Framework/XtUnit.Framework.csproj
@@ -0,0 +1,126 @@
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
SchemaVersion = "2.0"
ProjectGuid = "{0D93571A-7C7B-42F6-9BF2-03C423DC44C9}"
>
<Build>
<Settings
ApplicationIcon = ""
AssemblyKeyContainerName = ""
AssemblyName = "XtUnit.Framework"
AssemblyOriginatorKeyFile = ""
DefaultClientScript = "JScript"
DefaultHTMLPageLayout = "Grid"
DefaultTargetSchema = "IE50"
DelaySign = "false"
OutputType = "Library"
PreBuildEvent = ""
PostBuildEvent = ""
RootNamespace = "XtUnit.Framework"
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 = "..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.dll"
/>
<Reference
Name = "System.Data"
AssemblyName = "System.Data"
HintPath = "..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Data.dll"
/>
<Reference
Name = "System.XML"
AssemblyName = "System.Xml"
HintPath = "..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
/>
<Reference
Name = "nunit.framework"
AssemblyName = "nunit.framework"
HintPath = "..\..\..\..\..\..\Program Files\NUnit 2.2\\bin\nunit.framework.dll"
AssemblyFolderKey = "hklm\dn\nunit.framework"
/>
</References>
</Build>
<Files>
<Include>
<File
RelPath = "AssemblyInfo.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "TestFixtureBase.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "TestProcessingAttributeBase .cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "Internal\InterceptableObject.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "Internal\InterceptionAttributes.cs"
SubType = "Code"
BuildAction = "Compile"
/>
<File
RelPath = "Internal\ProcessingAttributeBase.cs"
SubType = "Code"
BuildAction = "Compile"
/>
</Include>
</Files>
</CSHARP>
</VisualStudioProject>

56 changes: 56 additions & 0 deletions XtUnit/XtUnit.SampleTests/AssemblyInfo.cs
@@ -0,0 +1,56 @@
using System.Reflection;
//
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("NUnit.Extensions.ExtensibilityFramework.Samples")]
[assembly: AssemblyDescription("NUnit.Extensions.ExtensibilityFramework.Samples")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Roy Osherove")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("2004 Roy Osherove")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

//
// 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("1.0.1")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
// Microsoft .NET Framework documentation for more information on assembly signing.
//
// Use the attributes below to control which key is used for signing.
//
// Notes:
// (*) If no key is specified, the assembly is not signed.
// (*) KeyName refers to a key that has been installed in the Crypto Service
// Provider (CSP) on your machine. KeyFile refers to a file which contains
// a key.
// (*) If the KeyFile and the KeyName values are both specified, the
// following processing occurs:
// (1) If the KeyName can be found in the CSP, that key is used.
// (2) If the KeyName does not exist and the KeyFile does exist, the key
// in the KeyFile is installed into the CSP and used.
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
// When specifying the KeyFile, the location of the KeyFile should be
// relative to the project output directory which is
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
// located in the project directory, you would specify the AssemblyKeyFile
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
// documentation for more information on this.
//
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("..\\..\\..\\XtUnit.key")]
[assembly: AssemblyKeyName("")]

0 comments on commit 7e98517

Please sign in to comment.