Skip to content

Commit 387e3c0

Browse files
committed
Migrate COM+ E2E tests from raw binaries to source code.
Signed-off-by: Bevan Weiss <bevan.weiss@gmail.com>
1 parent 523c66a commit 387e3c0

36 files changed

+1283
-7
lines changed
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.11.35111.106
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestComponentNET3", "TestComponentNET3\TestComponentNET3.csproj", "{B4CD7ECE-7245-445B-9F04-D2952631554D}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestComponentNET4", "TestComponentNET4\TestComponentNET4.csproj", "{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}"
9+
EndProject
10+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestComponentNative", "TestComponentNative\TestComponentNative.vcxproj", "{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}"
11+
EndProject
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestComponentNET8", "TestComponentNET8\TestComponentNET8.csproj", "{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}"
13+
EndProject
14+
Global
15+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
16+
Debug|Any CPU = Debug|Any CPU
17+
Debug|x64 = Debug|x64
18+
Debug|x86 = Debug|x86
19+
Release|Any CPU = Release|Any CPU
20+
Release|x64 = Release|x64
21+
Release|x86 = Release|x86
22+
EndGlobalSection
23+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
24+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x64.ActiveCfg = Debug|Any CPU
27+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x64.Build.0 = Debug|Any CPU
28+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x86.ActiveCfg = Debug|Any CPU
29+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x86.Build.0 = Debug|Any CPU
30+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x64.ActiveCfg = Release|Any CPU
33+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x64.Build.0 = Release|Any CPU
34+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x86.ActiveCfg = Release|Any CPU
35+
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x86.Build.0 = Release|Any CPU
36+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
37+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|Any CPU.Build.0 = Debug|Any CPU
38+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x64.ActiveCfg = Debug|Any CPU
39+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x64.Build.0 = Debug|Any CPU
40+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x86.ActiveCfg = Debug|Any CPU
41+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x86.Build.0 = Debug|Any CPU
42+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|Any CPU.ActiveCfg = Release|Any CPU
43+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|Any CPU.Build.0 = Release|Any CPU
44+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x64.ActiveCfg = Release|Any CPU
45+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x64.Build.0 = Release|Any CPU
46+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x86.ActiveCfg = Release|Any CPU
47+
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x86.Build.0 = Release|Any CPU
48+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|Any CPU.ActiveCfg = Debug|x64
49+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|Any CPU.Build.0 = Debug|x64
50+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x64.ActiveCfg = Debug|x64
51+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x64.Build.0 = Debug|x64
52+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x86.ActiveCfg = Debug|Win32
53+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x86.Build.0 = Debug|Win32
54+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|Any CPU.ActiveCfg = Release|x64
55+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|Any CPU.Build.0 = Release|x64
56+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x64.ActiveCfg = Release|x64
57+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x64.Build.0 = Release|x64
58+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x86.ActiveCfg = Release|Win32
59+
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x86.Build.0 = Release|Win32
60+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
61+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|Any CPU.Build.0 = Debug|Any CPU
62+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x64.ActiveCfg = Debug|Any CPU
63+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x64.Build.0 = Debug|Any CPU
64+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x86.ActiveCfg = Debug|Any CPU
65+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x86.Build.0 = Debug|Any CPU
66+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|Any CPU.ActiveCfg = Release|Any CPU
67+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|Any CPU.Build.0 = Release|Any CPU
68+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x64.ActiveCfg = Release|Any CPU
69+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x64.Build.0 = Release|Any CPU
70+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x86.ActiveCfg = Release|Any CPU
71+
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x86.Build.0 = Release|Any CPU
72+
EndGlobalSection
73+
GlobalSection(SolutionProperties) = preSolution
74+
HideSolutionNode = FALSE
75+
EndGlobalSection
76+
GlobalSection(ExtensibilityGlobals) = postSolution
77+
SolutionGuid = {4C27BD28-1E2C-4414-8290-3C5C042DF148}
78+
EndGlobalSection
79+
EndGlobal
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
using System.Reflection;
2+
3+
//
4+
// General Information about an assembly is controlled through the following
5+
// set of attributes. Change these attribute values to modify the information
6+
// associated with an assembly.
7+
//
8+
[assembly: AssemblyTitle("")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("")]
13+
[assembly: AssemblyCopyright("")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
//
18+
// Version information for an assembly consists of the following four values:
19+
//
20+
// Major Version
21+
// Minor Version
22+
// Build Number
23+
// Revision
24+
//
25+
// You can specify all the values or you can default the Revision and Build Numbers
26+
// by using the '*' as shown below:
27+
28+
[assembly: AssemblyVersion("1.0.*")]
29+
30+
//
31+
// In order to sign your assembly you must specify a key to use. Refer to the
32+
// Microsoft .NET Framework documentation for more information on assembly signing.
33+
//
34+
// Use the attributes below to control which key is used for signing.
35+
//
36+
// Notes:
37+
// (*) If no key is specified, the assembly is not signed.
38+
// (*) KeyName refers to a key that has been installed in the Crypto Service
39+
// Provider (CSP) on your machine. KeyFile refers to a file which contains
40+
// a key.
41+
// (*) If the KeyFile and the KeyName values are both specified, the
42+
// following processing occurs:
43+
// (1) If the KeyName can be found in the CSP, that key is used.
44+
// (2) If the KeyName does not exist and the KeyFile does exist, the key
45+
// in the KeyFile is installed into the CSP and used.
46+
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
47+
// When specifying the KeyFile, the location of the KeyFile should be
48+
// relative to the project output directory which is
49+
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
50+
// located in the project directory, you would specify the AssemblyKeyFile
51+
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
52+
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
53+
// documentation for more information on this.
54+
//
55+
[assembly: AssemblyDelaySign(false)]
56+
//[assembly: AssemblyKeyFile("..\\..\\..\\Signing.sn")]
57+
[assembly: AssemblyKeyName("")]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.EnterpriseServices;
3+
using System.Runtime.InteropServices;
4+
5+
[assembly: ApplicationActivation(ActivationOption.Library)]
6+
namespace TestApplication
7+
{
8+
/// <summary>
9+
/// TestComponent
10+
/// </summary>
11+
[ComVisible(true)]
12+
[Transaction(TransactionOption.Required)]
13+
[ObjectPooling(true, 5, 10)]
14+
[Guid("17F82C39-5433-493A-A396-36072C645B80")]
15+
public class TestComponent3 : ServicedComponent
16+
{
17+
public TestComponent3()
18+
{
19+
//
20+
// TODO: Add constructor logic here
21+
//
22+
}
23+
24+
[AutoComplete(true)]
25+
public void TestMethod(string Name, string Address, int JobType, bool MakeFail)
26+
{
27+
28+
}
29+
}
30+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build">
3+
<PropertyGroup>
4+
<ProjectType>Local</ProjectType>
5+
<ProductVersion>7.0.9466</ProductVersion>
6+
<SchemaVersion>1.0</SchemaVersion>
7+
<ProjectGuid>{B4CD7ECE-7245-445B-9F04-D2952631554D}</ProjectGuid>
8+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
9+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
10+
<IsWixTestProject>false</IsWixTestProject>
11+
<ApplicationIcon />
12+
<AssemblyKeyContainerName />
13+
<AssemblyName>TestComponentNET3</AssemblyName>
14+
<AssemblyOriginatorKeyFile />
15+
<DefaultClientScript>JScript</DefaultClientScript>
16+
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
17+
<DefaultTargetSchema>IE50</DefaultTargetSchema>
18+
<DelaySign>false</DelaySign>
19+
<OutputType>Library</OutputType>
20+
<RootNamespace>TestApplication</RootNamespace>
21+
<StartupObject />
22+
<FileUpgradeFlags>
23+
</FileUpgradeFlags>
24+
<UpgradeBackupLocation>
25+
</UpgradeBackupLocation>
26+
<OldToolsVersion>0.0</OldToolsVersion>
27+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
28+
<TargetFrameworkProfile />
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
31+
<OutputPath>bin\Debug\</OutputPath>
32+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
33+
<BaseAddress>285212672</BaseAddress>
34+
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
35+
<ConfigurationOverrideFile />
36+
<DefineConstants>DEBUG;TRACE</DefineConstants>
37+
<DocumentationFile />
38+
<DebugSymbols>true</DebugSymbols>
39+
<FileAlignment>4096</FileAlignment>
40+
<Optimize>false</Optimize>
41+
<RegisterForComInterop>false</RegisterForComInterop>
42+
<RemoveIntegerChecks>false</RemoveIntegerChecks>
43+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
44+
<WarningLevel>4</WarningLevel>
45+
<DebugType>full</DebugType>
46+
<ErrorReport>prompt</ErrorReport>
47+
<Prefer32Bit>false</Prefer32Bit>
48+
<PlatformTarget>AnyCPU</PlatformTarget>
49+
</PropertyGroup>
50+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
51+
<OutputPath>bin\Release\</OutputPath>
52+
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
53+
<BaseAddress>285212672</BaseAddress>
54+
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
55+
<ConfigurationOverrideFile />
56+
<DefineConstants>TRACE</DefineConstants>
57+
<DocumentationFile />
58+
<DebugSymbols>false</DebugSymbols>
59+
<FileAlignment>4096</FileAlignment>
60+
<Optimize>true</Optimize>
61+
<RegisterForComInterop>false</RegisterForComInterop>
62+
<RemoveIntegerChecks>false</RemoveIntegerChecks>
63+
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
64+
<WarningLevel>4</WarningLevel>
65+
<DebugType>none</DebugType>
66+
<ErrorReport>prompt</ErrorReport>
67+
<Prefer32Bit>false</Prefer32Bit>
68+
</PropertyGroup>
69+
<ItemGroup>
70+
<Reference Include="System">
71+
<Name>System</Name>
72+
</Reference>
73+
<Reference Include="System.Data">
74+
<Name>System.Data</Name>
75+
</Reference>
76+
<Reference Include="System.EnterpriseServices">
77+
<Name>System.EnterpriseServices</Name>
78+
</Reference>
79+
<Reference Include="System.XML">
80+
<Name>System.XML</Name>
81+
</Reference>
82+
</ItemGroup>
83+
<ItemGroup>
84+
<Compile Include="AssemblyInfo.cs">
85+
<SubType>Code</SubType>
86+
</Compile>
87+
<Compile Include="TestComponentNET3.cs">
88+
<SubType>Code</SubType>
89+
</Compile>
90+
</ItemGroup>
91+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
92+
<PropertyGroup>
93+
<PreBuildEvent />
94+
<PostBuildEvent>call "$(DevEnvDir)..\Tools\VsDevCmd.bat"
95+
tlbexp.exe $(TargetDir)$(TargetFileName)</PostBuildEvent>
96+
</PropertyGroup>
97+
</Project>
Binary file not shown.
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
using System.Reflection;
2+
3+
//
4+
// General Information about an assembly is controlled through the following
5+
// set of attributes. Change these attribute values to modify the information
6+
// associated with an assembly.
7+
//
8+
[assembly: AssemblyTitle("")]
9+
[assembly: AssemblyDescription("")]
10+
[assembly: AssemblyConfiguration("")]
11+
[assembly: AssemblyCompany("")]
12+
[assembly: AssemblyProduct("")]
13+
[assembly: AssemblyCopyright("")]
14+
[assembly: AssemblyTrademark("")]
15+
[assembly: AssemblyCulture("")]
16+
17+
//
18+
// Version information for an assembly consists of the following four values:
19+
//
20+
// Major Version
21+
// Minor Version
22+
// Build Number
23+
// Revision
24+
//
25+
// You can specify all the values or you can default the Revision and Build Numbers
26+
// by using the '*' as shown below:
27+
28+
[assembly: AssemblyVersion("1.0.*")]
29+
30+
//
31+
// In order to sign your assembly you must specify a key to use. Refer to the
32+
// Microsoft .NET Framework documentation for more information on assembly signing.
33+
//
34+
// Use the attributes below to control which key is used for signing.
35+
//
36+
// Notes:
37+
// (*) If no key is specified, the assembly is not signed.
38+
// (*) KeyName refers to a key that has been installed in the Crypto Service
39+
// Provider (CSP) on your machine. KeyFile refers to a file which contains
40+
// a key.
41+
// (*) If the KeyFile and the KeyName values are both specified, the
42+
// following processing occurs:
43+
// (1) If the KeyName can be found in the CSP, that key is used.
44+
// (2) If the KeyName does not exist and the KeyFile does exist, the key
45+
// in the KeyFile is installed into the CSP and used.
46+
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility.
47+
// When specifying the KeyFile, the location of the KeyFile should be
48+
// relative to the project output directory which is
49+
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is
50+
// located in the project directory, you would specify the AssemblyKeyFile
51+
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")]
52+
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
53+
// documentation for more information on this.
54+
//
55+
[assembly: AssemblyDelaySign(false)]
56+
//[assembly: AssemblyKeyFile("..\\..\\..\\Signing.sn")]
57+
[assembly: AssemblyKeyName("")]
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
using System;
2+
using System.EnterpriseServices;
3+
using System.Runtime.InteropServices;
4+
5+
[assembly: ApplicationActivation(ActivationOption.Library)]
6+
namespace TestApplication
7+
{
8+
/// <summary>
9+
/// TestComponent
10+
/// </summary>
11+
[ComVisible(true)]
12+
[Transaction(TransactionOption.Required)]
13+
[ObjectPooling(true, 5, 10)]
14+
[Guid("146AB3A2-4472-4DB9-94D5-311536E799BD")]
15+
public class TestComponent4 : ServicedComponent
16+
{
17+
public TestComponent4()
18+
{
19+
//
20+
// TODO: Add constructor logic here
21+
//
22+
}
23+
24+
[AutoComplete(true)]
25+
public void TestMethod(string Name, string Address, int JobType, bool MakeFail)
26+
{
27+
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)