initial oogynize check in _ this actually used to work!
This commit is contained in:
47
zEasyTest/Program.cs
Normal file
47
zEasyTest/Program.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using Foo.Platform;
|
||||
using Foo.Platform.Win32;
|
||||
using Foo.Settings;
|
||||
using Foo.DataAccessLayer;
|
||||
using Foo.DataAccessLayer.DataTypes;
|
||||
|
||||
|
||||
namespace zEasyTest
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
foreach (Win32Functions.RunningObject running in Win32Functions.GetRunningObjects())
|
||||
{
|
||||
if (running.name == "Doris")
|
||||
{
|
||||
int j = 5;
|
||||
j = j + 5;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// DataAccessLayer
|
||||
//DB.DeleteDefaultDB();
|
||||
//DataAccessLayer.TestData.TestData.FillDBWithTestData();
|
||||
|
||||
// Settings
|
||||
//Settings_Test.MockAroundWithSettings();
|
||||
|
||||
// WorkspaceMgr
|
||||
//WorkspaceMgr_Test.TestSingleArtifactLaunch();
|
||||
//WorkspaceMgr_Test.TestWorkspaceLaunch();
|
||||
//WorkspaceMgr_Test.TestConfiguration();
|
||||
|
||||
int i = 5;
|
||||
i = i - 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
36
zEasyTest/Properties/AssemblyInfo.cs
Normal file
36
zEasyTest/Properties/AssemblyInfo.cs
Normal file
@@ -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("zEasyTest")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("zEasyTest")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2010")]
|
||||
[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("9543b631-51de-4051-b115-ac39fd28e0cc")]
|
||||
|
||||
// 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")]
|
||||
32
zEasyTest/Settings_Test.cs
Normal file
32
zEasyTest/Settings_Test.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Foo.Settings;
|
||||
|
||||
namespace zEasyTest
|
||||
{
|
||||
static class Settings_Test
|
||||
{
|
||||
|
||||
public static void MockAroundWithSettings()
|
||||
{
|
||||
OoganizerSettingsAcc acc = new OoganizerSettingsAcc();
|
||||
|
||||
configuration conf = new configuration();
|
||||
conf.ButtonHook.AllowedProcessNames.AddProcessName(new ButtonHookSettings.ProcessName("Doris", "Doris1", "Doris3", "Doris4", "123", "dd", "vv", 0, 0));
|
||||
conf.ButtonHook.AllowedProcessNames.AddProcessName(new ButtonHookSettings.ProcessName("Voris", "Voris1", "Voris3", "Voris4", "123", "dd", "vv", 0, 0));
|
||||
conf.ButtonHook.AllowedProcessNames.AddProcessName(new ButtonHookSettings.ProcessName("Koris", "Koris1", "Koris3", "Koris4", "123", "dd", "vv", 0, 0));
|
||||
|
||||
//configuration config = acc.ReadConfigXMLFile();
|
||||
|
||||
//configuration config = acc.ReadConfigXMLFile(@"D:\Users\HPinvent\_ROOT_\TestANizer\DataAccessLayer\Doris.xml", false);
|
||||
|
||||
acc.WriteConfigXMLFile(@"D:\Users\HPinvent\_ROOT_\TestANizer\DataAccessLayer\Doris.xml", conf);
|
||||
|
||||
//acc.WriteBlankConfigXMLFile(@"D:\Users\HPinvent\_ROOT_\TestANizer\DataAccessLayer\Doris.xml");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
46
zEasyTest/WorkspaceMgr_Test.cs
Normal file
46
zEasyTest/WorkspaceMgr_Test.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
using Foo.DataAccessLayer;
|
||||
using Foo.DataAccessLayer.DataTypes;
|
||||
using Foo.Platform;
|
||||
using Foo.GUILib;
|
||||
using Foo.WorkspaceMgr;
|
||||
|
||||
namespace zEasyTest
|
||||
{
|
||||
static class WorkspaceMgr_Test
|
||||
{
|
||||
|
||||
static public void TestConfiguration()
|
||||
{
|
||||
Configurations.Configure_Excel2007();
|
||||
}
|
||||
|
||||
static public void TestSingleArtifactLaunch()
|
||||
{
|
||||
//WorkspaceMgr mgr = new WorkspaceMgr();
|
||||
//mgr.LaunchArtifact(DataTypeHelpers.CreateLocationOnlyArtifact(@"D:\Users\HPinvent\Documents\KeepFocusedTask.txt"));
|
||||
//mgr.LaunchArtifact(DataTypeHelpers.CreateLocationOnlyArtifact(@"http://www.google.com/"));
|
||||
}
|
||||
|
||||
static public void TestWorkspaceLaunch()
|
||||
{
|
||||
WorkspaceMgr mgr = new WorkspaceMgr();
|
||||
|
||||
string strTestWorkspace = "Presentations";
|
||||
|
||||
mgr.LaunchWorkspace(strTestWorkspace);
|
||||
|
||||
System.Threading.Thread.Sleep(30000);
|
||||
|
||||
mgr.CloseWorkspace(strTestWorkspace);
|
||||
|
||||
|
||||
//mgr.LaunchArtifact(DataTypeHelpers.CreateLocationOnlyArtifact(@"D:\Users\HPinvent\Documents\KeepFocusedTask.txt"));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
83
zEasyTest/zEasyTest.csproj
Normal file
83
zEasyTest/zEasyTest.csproj
Normal file
@@ -0,0 +1,83 @@
|
||||
<?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>{6CDF553C-5060-4871-9CE8-63F66346716A}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>zEasyTest</RootNamespace>
|
||||
<AssemblyName>zEasyTest</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>..\target\Debug\</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>..\target\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" />
|
||||
<Compile Include="Settings_Test.cs" />
|
||||
<Compile Include="WorkspaceMgr_Test.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\DataAccessLayer\DataAccessLayer.csproj">
|
||||
<Project>{C7E4B4C1-64D4-45FF-AAFD-C4B9AE216618}</Project>
|
||||
<Name>DataAccessLayer</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\GUILib\GUILib.csproj">
|
||||
<Project>{C1282050-455B-44F4-8520-1C005E38EFB2}</Project>
|
||||
<Name>GUILib</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Platform\Platform.csproj">
|
||||
<Project>{F6929AFC-BF61-43A0-BABD-F807B65FFFA1}</Project>
|
||||
<Name>Platform</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Settings\Settings.csproj">
|
||||
<Project>{48D75C4F-2749-48BB-9386-721E0E94C144}</Project>
|
||||
<Name>Settings</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\WorkspaceMgr\WorkspaceMgr.csproj">
|
||||
<Project>{09ED5DCC-9350-42E5-8E3A-4A3EA25BCD35}</Project>
|
||||
<Name>WorkspaceMgr</Name>
|
||||
</ProjectReference>
|
||||
</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>
|
||||
Reference in New Issue
Block a user