Skip to content

Commit

Permalink
split per toolkit test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ataranto committed Feb 29, 2012
1 parent bfa1939 commit 99b2041
Show file tree
Hide file tree
Showing 11 changed files with 253 additions and 35 deletions.
4 changes: 2 additions & 2 deletions CefSharp.Example/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[assembly: AssemblyTitle("CefSharp.Example")]
[assembly: AssemblyCompany("Anthony Taranto")]
[assembly: AssemblyProduct("CefSharp.Example")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyCopyright("Copyright © 2012")]

[assembly: AssemblyVersion("0.9.*")]
[assembly: ComVisible(false)]
[assembly: ComVisible(false)]
2 changes: 0 additions & 2 deletions CefSharp.Test/CefSharp.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@
<HintPath>..\nunit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="BrowserCoreTest.cs" />
Expand Down
35 changes: 5 additions & 30 deletions CefSharp.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,10 @@
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("CefSharp.Test")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CefSharp.Test")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyCompany("Anthony Taranto")]
[assembly: AssemblyProduct("CefSharp")]
[assembly: AssemblyCopyright("Copyright © 2012")]

// 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("65d5df66-a428-464a-8b4b-46e8393146fb")]

// 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")]
[assembly: AssemblyVersion("0.9.*")]
[assembly: ComVisible(false)]
63 changes: 63 additions & 0 deletions CefSharp.WinForms.Test/CefSharp.WinForms.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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>{310B527B-A811-450D-A1B2-79352FDB338A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CefSharp.WinForms.Test</RootNamespace>
<AssemblyName>CefSharp.WinForms.Test</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>..\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>..\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.6.0.12035, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\nunit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<Compile Include="InitTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CefSharp.WinForms\CefSharp.WinForms.vcproj">
<Project>{978C9B2B-04B6-4359-A341-CA3FCBE98D32}</Project>
<Name>CefSharp.WinForms</Name>
</ProjectReference>
<ProjectReference Include="..\CefSharp\CefSharp.vcproj">
<Project>{7B495581-2271-4F41-9476-ACB86E8C864F}</Project>
<Name>CefSharp</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>
29 changes: 29 additions & 0 deletions CefSharp.WinForms.Test/InitTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using NUnit.Framework;

namespace CefSharp.WinForms.Test
{
[TestFixture]
public class InitTest
{
private WebView web_view;

[SetUp]
public void SetUp()
{
var settings = new Settings();
if (!CEF.Initialize(settings))
{
Assert.Fail();
}

web_view = new WebView();
}

[Test]
public void Foo()
{
Assert.Pass();
}
}
}
11 changes: 11 additions & 0 deletions CefSharp.WinForms.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("CefSharp.WinForms.Test")]
[assembly: AssemblyCompany("Anthony Taranto")]
[assembly: AssemblyProduct("CefSharp.Example")]
[assembly: AssemblyCopyright("Copyright © 2012")]

[assembly: AssemblyVersion("0.9.*")]
[assembly: ComVisible(false)]
71 changes: 71 additions & 0 deletions CefSharp.Wpf.Test/CefSharp.Wpf.Test.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?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>{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CefSharp.Wpf.Test</RootNamespace>
<AssemblyName>CefSharp.Wpf.Test</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>..\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>..\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="nunit.framework, Version=2.6.0.12035, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\nunit\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="PresentationCore">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="PresentationFramework">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="System" />
<Reference Include="WindowsBase">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="InitTest.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\CefSharp.Wpf\CefSharp.Wpf.vcproj">
<Project>{C944B6A6-7CAF-4101-B81B-2DE47296FC40}</Project>
<Name>CefSharp.Wpf</Name>
</ProjectReference>
<ProjectReference Include="..\CefSharp\CefSharp.vcproj">
<Project>{7B495581-2271-4F41-9476-ACB86E8C864F}</Project>
<Name>CefSharp</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>
29 changes: 29 additions & 0 deletions CefSharp.Wpf.Test/InitTest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using System;
using NUnit.Framework;

namespace CefSharp.Wpf.Test
{
[TestFixture]
public class InitTest
{
private WebView web_view;

[SetUp]
public void SetUp()
{
var settings = new Settings();
if (!CEF.Initialize(settings))
{
Assert.Fail();
}

web_view = new WebView(null, String.Empty);
}

[Test]
public void Foo()
{
Assert.Pass();
}
}
}
11 changes: 11 additions & 0 deletions CefSharp.Wpf.Test/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("CefSharp.Wpf.Test")]
[assembly: AssemblyCompany("Anthony Taranto")]
[assembly: AssemblyProduct("CefSharp")]
[assembly: AssemblyCopyright("Copyright © 2012")]

[assembly: AssemblyVersion("0.9.*")]
[assembly: ComVisible(false)]
24 changes: 24 additions & 0 deletions CefSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CefSharp.WinForms.Example",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CefSharp.Wpf.Example", "CefSharp.Wpf.Example\CefSharp.Wpf.Example.csproj", "{4828DAEC-EF99-4553-B674-4374F77C6D66}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CefSharp.Wpf.Test", "CefSharp.Wpf.Test\CefSharp.Wpf.Test.csproj", "{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CefSharp.WinForms.Test", "CefSharp.WinForms.Test\CefSharp.WinForms.Test.csproj", "{310B527B-A811-450D-A1B2-79352FDB338A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -95,6 +99,26 @@ Global
{4828DAEC-EF99-4553-B674-4374F77C6D66}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{4828DAEC-EF99-4553-B674-4374F77C6D66}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{4828DAEC-EF99-4553-B674-4374F77C6D66}.Release|Win32.ActiveCfg = Release|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Debug|Win32.ActiveCfg = Debug|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Release|Any CPU.Build.0 = Release|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{86704B8F-D72C-493C-9B8C-AB3F0C13A89C}.Release|Win32.ActiveCfg = Release|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Debug|Win32.ActiveCfg = Debug|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Release|Any CPU.Build.0 = Release|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{310B527B-A811-450D-A1B2-79352FDB338A}.Release|Win32.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
9 changes: 8 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
./nunit/nunit-console-x86.exe -domain=None Debug/CefSharp.Test.dll
#!/bin/sh

CONF=$1

for dll in `ls $CONF/*.Test.dll`
do
./nunit/nunit-console-x86.exe -domain=None $dll
done

0 comments on commit 99b2041

Please sign in to comment.