summaryrefslogtreecommitdiff
path: root/BCT/Test/BCTClassTest
diff options
context:
space:
mode:
authorGravatar schaef <unknown>2009-11-20 13:36:51 +0000
committerGravatar schaef <unknown>2009-11-20 13:36:51 +0000
commit797711ee7fb126a081e00d8b247c0cfa83ddd3f2 (patch)
tree0dc9d7c53221b316160413ef3b66e9574724d84b /BCT/Test/BCTClassTest
parent1ea222005d9d4722457f70cbd771fde5eed4d76f (diff)
Setting up test cases for BCT
Diffstat (limited to 'BCT/Test/BCTClassTest')
-rw-r--r--BCT/Test/BCTClassTest/Answer0
-rw-r--r--BCT/Test/BCTClassTest/BCTClassTest.sln20
-rw-r--r--BCT/Test/BCTClassTest/BCTClassTest/BCTClassTest.csproj59
-rw-r--r--BCT/Test/BCTClassTest/BCTClassTest/Program.cs51
-rw-r--r--BCT/Test/BCTClassTest/BCTClassTest/Properties/AssemblyInfo.cs36
-rw-r--r--BCT/Test/BCTClassTest/runtest.bat13
6 files changed, 179 insertions, 0 deletions
diff --git a/BCT/Test/BCTClassTest/Answer b/BCT/Test/BCTClassTest/Answer
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/BCT/Test/BCTClassTest/Answer
diff --git a/BCT/Test/BCTClassTest/BCTClassTest.sln b/BCT/Test/BCTClassTest/BCTClassTest.sln
new file mode 100644
index 00000000..0e70049b
--- /dev/null
+++ b/BCT/Test/BCTClassTest/BCTClassTest.sln
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 10.00
+# Visual Studio 2008
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BCTClassTest", "BCTClassTest\BCTClassTest.csproj", "{D0CC551E-9C5D-48D4-B048-A7B2F03FB1AE}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {D0CC551E-9C5D-48D4-B048-A7B2F03FB1AE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D0CC551E-9C5D-48D4-B048-A7B2F03FB1AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D0CC551E-9C5D-48D4-B048-A7B2F03FB1AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D0CC551E-9C5D-48D4-B048-A7B2F03FB1AE}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
diff --git a/BCT/Test/BCTClassTest/BCTClassTest/BCTClassTest.csproj b/BCT/Test/BCTClassTest/BCTClassTest/BCTClassTest.csproj
new file mode 100644
index 00000000..0999556f
--- /dev/null
+++ b/BCT/Test/BCTClassTest/BCTClassTest/BCTClassTest.csproj
@@ -0,0 +1,59 @@
+<?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.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{D0CC551E-9C5D-48D4-B048-A7B2F03FB1AE}</ProjectGuid>
+ <OutputType>Exe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>BCTClassTest</RootNamespace>
+ <AssemblyName>BCTClassTest</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>..\Binaries\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</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</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </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
diff --git a/BCT/Test/BCTClassTest/BCTClassTest/Program.cs b/BCT/Test/BCTClassTest/BCTClassTest/Program.cs
new file mode 100644
index 00000000..7b5d8799
--- /dev/null
+++ b/BCT/Test/BCTClassTest/BCTClassTest/Program.cs
@@ -0,0 +1,51 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace BCTClassTest
+{
+ abstract class BCTClassTest
+ {
+ public BCTClassTest()
+ {
+ }
+
+ public abstract void AbstractMethod();
+
+ public virtual int VirturalMethod(int j)
+ {
+ return j;
+ }
+
+ protected void ProtectedMethod(int j)
+ {
+ int i = j;
+ i++;
+ }
+ }
+
+ internal class InheritTest : BCTClassTest
+ {
+ public InheritTest() { }
+
+ public override void AbstractMethod()
+ {
+ throw new NotImplementedException();
+ }
+
+ public override int VirturalMethod(int j)
+ {
+ ProtectedMethod(j);
+ return base.VirturalMethod(j);
+ }
+ }
+
+
+ class Program
+ {
+ static void Main(string[] args)
+ {
+ }
+ }
+}
diff --git a/BCT/Test/BCTClassTest/BCTClassTest/Properties/AssemblyInfo.cs b/BCT/Test/BCTClassTest/BCTClassTest/Properties/AssemblyInfo.cs
new file mode 100644
index 00000000..f5aac42a
--- /dev/null
+++ b/BCT/Test/BCTClassTest/BCTClassTest/Properties/AssemblyInfo.cs
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 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("BCTClassTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("BCTClassTest")]
+[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("1e85b688-8b64-407b-8c7d-da72545d1804")]
+
+// 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 Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/BCT/Test/BCTClassTest/runtest.bat b/BCT/Test/BCTClassTest/runtest.bat
new file mode 100644
index 00000000..3c864ad0
--- /dev/null
+++ b/BCT/Test/BCTClassTest/runtest.bat
@@ -0,0 +1,13 @@
+@echo off
+setlocal
+
+set BCTDIR=..\..\Binaries
+set BEXE=%BCTDIR%\BytecodeTranslator.exe
+set TESTDIR=Binaries
+set TESTEXE=%TESTDIR%\BCTClassTest.exe
+
+for %%f in (%TESTEXE%) do (
+ echo -------------------- %%f --------------------
+ %BEXE% %* %%f
+)
+