Skip to content

Commit

Permalink
Extends AutoFakeItEasy support for FakeItEasy v7.0 (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
aivascu committed Apr 16, 2021
1 parent c127ca4 commit 730b478
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 6 deletions.
10 changes: 9 additions & 1 deletion Src/All.sln
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoFakeItEasy.FakeItEasy5U
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoNSubstitute.NSubstitute4UnitTest", "AutoNSubstitute.NSubstitute4UnitTest\AutoNSubstitute.NSubstitute4UnitTest.csproj", "{4BDBE8A1-CF75-4049-9B3D-B194B1F45369}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AutoFakeItEasy.FakeItEasy6UnitTest", "AutoFakeItEasy.FakeItEasy6UnitTest\AutoFakeItEasy.FakeItEasy6UnitTest.csproj", "{311A3010-B938-4832-9D3A-21A1A56FE5EA}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoFakeItEasy.FakeItEasy6UnitTest", "AutoFakeItEasy.FakeItEasy6UnitTest\AutoFakeItEasy.FakeItEasy6UnitTest.csproj", "{311A3010-B938-4832-9D3A-21A1A56FE5EA}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoFakeItEasy.FakeItEasy7UnitTest", "AutoFakeItEasy.FakeItEasy7UnitTest\AutoFakeItEasy.FakeItEasy7UnitTest.csproj", "{1B42519B-24C2-4141-83A3-AB68AB09EE28}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -325,6 +327,12 @@ Global
{311A3010-B938-4832-9D3A-21A1A56FE5EA}.Release|Any CPU.Build.0 = Release|Any CPU
{311A3010-B938-4832-9D3A-21A1A56FE5EA}.Verify|Any CPU.ActiveCfg = Verify|Any CPU
{311A3010-B938-4832-9D3A-21A1A56FE5EA}.Verify|Any CPU.Build.0 = Verify|Any CPU
{1B42519B-24C2-4141-83A3-AB68AB09EE28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1B42519B-24C2-4141-83A3-AB68AB09EE28}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1B42519B-24C2-4141-83A3-AB68AB09EE28}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1B42519B-24C2-4141-83A3-AB68AB09EE28}.Release|Any CPU.Build.0 = Release|Any CPU
{1B42519B-24C2-4141-83A3-AB68AB09EE28}.Verify|Any CPU.ActiveCfg = Verify|Any CPU
{1B42519B-24C2-4141-83A3-AB68AB09EE28}.Verify|Any CPU.Build.0 = Verify|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<PropertyGroup>
<TargetFrameworks>net452;netcoreapp1.1;netcoreapp2.1</TargetFrameworks>
<AssemblyTitle>AutoFakeItEasy.FakeItEasy5.UnitTest</AssemblyTitle>
<AssemblyName>AutoFixture.AutoFakeItEasy.FakeItEasy5UnitTest</AssemblyName>
<AssemblyTitle>AutoFakeItEasy.FakeItEasy6.UnitTest</AssemblyTitle>
<AssemblyName>AutoFixture.AutoFakeItEasy.FakeItEasy6UnitTest</AssemblyName>
<RootNamespace>AutoFixture.AutoFakeItEasy.UnitTest</RootNamespace>

<DefineConstants>$(DefineConstants);CAN_FAKE_DELEGATES;HAS_A_CALL_TO_SET_SPECIFIER</DefineConstants>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Common.props" />
<Import Project="..\Common.Test.props" />

<PropertyGroup>
<TargetFrameworks>net452;netcoreapp2.1</TargetFrameworks>
<AssemblyTitle>AutoFakeItEasy.FakeItEasy7.UnitTest</AssemblyTitle>
<AssemblyName>AutoFixture.AutoFakeItEasy.FakeItEasy7UnitTest</AssemblyName>
<RootNamespace>AutoFixture.AutoFakeItEasy.UnitTest</RootNamespace>

<DefineConstants>$(DefineConstants);CAN_FAKE_DELEGATES;HAS_A_CALL_TO_SET_SPECIFIER</DefineConstants>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="FakeItEasy" Version="[7.0.1]" />
</ItemGroup>

<ItemGroup>
<Compile Include="..\AutoFakeItEasyUnitTest\**\*.cs" Link="%(RecursiveDir)%(Filename)%(Extension)" />
<Compile Remove="..\AutoFakeItEasyUnitTest\obj\**" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\AutoFakeItEasy\AutoFakeItEasy.csproj" />
<ProjectReference Include="..\AutoFixture\AutoFixture.csproj" />
<ProjectReference Include="..\TestTypeFoundation\TestTypeFoundation.csproj" />
</ItemGroup>

<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions Src/AutoFakeItEasy/AutoFakeItEasy.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FakeItEasy" Version="[1.7.4109.1,7.0.0)" Condition=" '$(TargetFramework)'=='net452' " />
<PackageReference Include="FakeItEasy" Version="[1.7.4109.1,8.0.0)" Condition=" '$(TargetFramework)'=='net452' " />
<PackageReference Include="FakeItEasy" Version="[3.0.0,7.0.0)" Condition=" '$(TargetFramework)'=='netstandard1.6' " />
<PackageReference Include="FakeItEasy" Version="[4.9.0,7.0.0)" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
<PackageReference Include="FakeItEasy" Version="[4.9.0,8.0.0)" Condition=" '$(TargetFramework)'=='netstandard2.0' " />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Src/Common.Test.xUnit.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ItemGroup>
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />

<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
</ItemGroup>
</Project>

0 comments on commit 730b478

Please sign in to comment.