mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 12:09:40 +00:00
9407ba1828
Readd CefSharp.Test.csproj to solution Add some very basic unit tests using xunit, DisableTestParallelization, Set xunit.appDomain to denied in app.config to disable using appdomains (https://xunit.github.io/docs/configuring-with-xml.html) Add xunit vs test running packages, using 2.2.0 version as 2.3.0 was throwing an exception similar to https://github.com/xunit/xunit/issues/1514 TODO: Take a look at https://github.com/NuGet/NuGetGallery/tree/master/tests/NuGetGallery.Facts for some ideas on structuring xunit tests (look at implementing Theory) NOTE: I am not providing this as a definitive set of tests, it's simply here to get someone else started in creating tests as it appears people have trouble dealing with AppDomain problem Only includes Tests for the OffScreen version at this stage.
151 lines
7.4 KiB
XML
151 lines
7.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Import Project="..\packages\xunit.runner.visualstudio.2.2.0\build\net20\xunit.runner.visualstudio.props" Condition="Exists('..\packages\xunit.runner.visualstudio.2.2.0\build\net20\xunit.runner.visualstudio.props')" />
|
|
<PropertyGroup>
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
|
|
<ProductVersion>9.0.30729</ProductVersion>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
<ProjectGuid>{7A4D5447-183B-4A11-8E63-9848991B46FF}</ProjectGuid>
|
|
<OutputType>Library</OutputType>
|
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
|
<RootNamespace>CefSharp.Test</RootNamespace>
|
|
<AssemblyName>CefSharp.Test</AssemblyName>
|
|
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
|
|
<FileAlignment>512</FileAlignment>
|
|
<FileUpgradeFlags>
|
|
</FileUpgradeFlags>
|
|
<UpgradeBackupLocation>
|
|
</UpgradeBackupLocation>
|
|
<OldToolsVersion>3.5</OldToolsVersion>
|
|
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
|
<TargetFrameworkProfile />
|
|
<NuGetPackageImportStamp>1e810f40</NuGetPackageImportStamp>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>bin\x64\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
|
<OutputPath>bin\x64\Release\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<Optimize>true</Optimize>
|
|
<DebugType>pdbonly</DebugType>
|
|
<PlatformTarget>x64</PlatformTarget>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
|
<DebugSymbols>true</DebugSymbols>
|
|
<OutputPath>bin\x86\Debug\</OutputPath>
|
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
|
<DebugType>full</DebugType>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
|
|
<OutputPath>bin\x86\Release\</OutputPath>
|
|
<DefineConstants>TRACE</DefineConstants>
|
|
<Optimize>true</Optimize>
|
|
<DebugType>pdbonly</DebugType>
|
|
<PlatformTarget>x86</PlatformTarget>
|
|
<ErrorReport>prompt</ErrorReport>
|
|
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
|
|
<Prefer32Bit>false</Prefer32Bit>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Reference Include="Castle.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\Castle.Core.4.2.1\lib\net45\Castle.Core.dll</HintPath>
|
|
<Private>True</Private>
|
|
</Reference>
|
|
<Reference Include="Microsoft.CSharp" />
|
|
<Reference Include="Moq, Version=4.7.142.0, Culture=neutral, PublicKeyToken=69f491c39445e920, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\Moq.4.7.142\lib\net45\Moq.dll</HintPath>
|
|
<Private>True</Private>
|
|
</Reference>
|
|
<Reference Include="System" />
|
|
<Reference Include="System.Configuration" />
|
|
<Reference Include="System.Drawing" />
|
|
<Reference Include="System.ServiceModel" />
|
|
<Reference Include="xunit.abstractions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\xunit.abstractions.2.0.1\lib\net35\xunit.abstractions.dll</HintPath>
|
|
<Private>True</Private>
|
|
</Reference>
|
|
<Reference Include="xunit.assert, Version=2.2.0.3545, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\xunit.assert.2.2.0\lib\netstandard1.1\xunit.assert.dll</HintPath>
|
|
<Private>True</Private>
|
|
</Reference>
|
|
<Reference Include="xunit.core, Version=2.2.0.3545, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\xunit.extensibility.core.2.2.0\lib\netstandard1.1\xunit.core.dll</HintPath>
|
|
<Private>True</Private>
|
|
</Reference>
|
|
<Reference Include="xunit.execution.desktop, Version=2.2.0.3545, Culture=neutral, PublicKeyToken=8d05b1bb7a6fdb6c, processorArchitecture=MSIL">
|
|
<HintPath>..\packages\xunit.extensibility.execution.2.2.0\lib\net452\xunit.execution.desktop.dll</HintPath>
|
|
<Private>True</Private>
|
|
</Reference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Compile Include="Framework\AsyncExtensionFacts.cs" />
|
|
<Compile Include="OffScreen\OffScreenBrowserBasicFacts.cs" />
|
|
<Compile Include="CefSharpFixture.cs" />
|
|
<Compile Include="CefSharpFixtureCollection.cs" />
|
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
<Compile Include="WebBrowserTestExtensions.cs" />
|
|
<Compile Include="WinForms\WinFormsBrowserBasicFacts.cs" />
|
|
<Compile Include="Wpf\WpfBrowserBasicFacts.cs" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\CefSharp.Core\CefSharp.Core.vcxproj">
|
|
<Project>{7b495581-2271-4f41-9476-acb86e8c864f}</Project>
|
|
<Name>CefSharp.Core</Name>
|
|
<Private>True</Private>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\CefSharp.OffScreen\CefSharp.OffScreen.csproj">
|
|
<Project>{483b158d-f57d-49d9-9046-31e6a73f8a53}</Project>
|
|
<Name>CefSharp.OffScreen</Name>
|
|
<Private>True</Private>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\CefSharp.WinForms\CefSharp.WinForms.csproj">
|
|
<Project>{882505ad-246d-402a-8414-347efb8e2c8d}</Project>
|
|
<Name>CefSharp.WinForms</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\CefSharp.Wpf\CefSharp.Wpf.csproj">
|
|
<Project>{e6cb3790-f267-4ac7-892c-2620737682ca}</Project>
|
|
<Name>CefSharp.Wpf</Name>
|
|
</ProjectReference>
|
|
<ProjectReference Include="..\CefSharp\CefSharp.csproj">
|
|
<Project>{a55848cc-10e7-40cb-addb-04740b16dd43}</Project>
|
|
<Name>CefSharp</Name>
|
|
<Private>True</Private>
|
|
</ProjectReference>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Include="app.config" />
|
|
<None Include="packages.config" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
|
|
</ItemGroup>
|
|
<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>
|
|
-->
|
|
<Import Project="$(SolutionDir)\CefSharp.props" />
|
|
<Import Project="$(SolutionDir)\CefSharp.Native.props" />
|
|
<Import Project="..\packages\cef.redist.x64.3.3071.1649\build\cef.redist.x64.targets" Condition="Exists('..\packages\cef.redist.x64.3.3071.1649\build\cef.redist.x64.targets')" />
|
|
<Import Project="..\packages\cef.redist.x86.3.3071.1649\build\cef.redist.x86.targets" Condition="Exists('..\packages\cef.redist.x86.3.3071.1649\build\cef.redist.x86.targets')" />
|
|
</Project> |