Skip to content

Commit

Permalink
NET461 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Oct 15, 2021
1 parent abf2ce5 commit 576a6b2
Show file tree
Hide file tree
Showing 19 changed files with 56 additions and 55 deletions.
38 changes: 19 additions & 19 deletions docs/serializer-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ var target = new GuidTarget

await Verifier.Verify(target);
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L957-L970' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L958-L971' title='Snippet source file'>snippet source</a> | <a href='#snippet-guid' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Results in the following:
Expand Down Expand Up @@ -595,7 +595,7 @@ public Task ScopedSerializerFluent()
_ => { _.TypeNameHandling = TypeNameHandling.All; });
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1889-L1918' title='Snippet source file'>snippet source</a> | <a href='#snippet-scopedserializer' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1890-L1919' title='Snippet source file'>snippet source</a> | <a href='#snippet-scopedserializer' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -658,7 +658,7 @@ public Task IgnoreTypeFluent()

}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1275-L1315' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoretype' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1276-L1316' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoretype' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally:
Expand All @@ -669,7 +669,7 @@ Or globally:
VerifierSettings.ModifySerialization(
_ => _.IgnoreMembersWithType<ToIgnore>());
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1267-L1272' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoretypeglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1268-L1273' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoretypeglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -733,7 +733,7 @@ public Task AddIgnoreInstanceFluent()
_ => { _.IgnoreInstance<Instance>(x => x.Property == "Ignore"); });
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1211-L1252' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoreinstance' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1212-L1253' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoreinstance' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally:
Expand All @@ -744,7 +744,7 @@ Or globally:
VerifierSettings.ModifySerialization(
_ => { _.IgnoreInstance<Instance>(x => x.Property == "Ignore"); });
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1203-L1208' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoreinstanceglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1204-L1209' title='Snippet source file'>snippet source</a> | <a href='#snippet-addignoreinstanceglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -788,7 +788,7 @@ public Task WithObsoleteProp()
return Verifier.Verify(target);
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1850-L1871' title='Snippet source file'>snippet source</a> | <a href='#snippet-withobsoleteprop' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1851-L1872' title='Snippet source file'>snippet source</a> | <a href='#snippet-withobsoleteprop' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -836,7 +836,7 @@ public Task WithObsoletePropIncludedFluent()
.ModifySerialization(_ => { _.IncludeObsoletes(); });
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1821-L1848' title='Snippet source file'>snippet source</a> | <a href='#snippet-withobsoletepropincluded' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1822-L1849' title='Snippet source file'>snippet source</a> | <a href='#snippet-withobsoletepropincluded' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally:
Expand All @@ -846,7 +846,7 @@ Or globally:
```cs
VerifierSettings.ModifySerialization(_ => { _.IncludeObsoletes(); });
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1814-L1818' title='Snippet source file'>snippet source</a> | <a href='#snippet-withobsoletepropincludedglobally' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1815-L1819' title='Snippet source file'>snippet source</a> | <a href='#snippet-withobsoletepropincludedglobally' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -911,7 +911,7 @@ public Task IgnoreMemberByExpressionFluent()
});
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1418-L1461' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbyexpression' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1419-L1462' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbyexpression' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally
Expand All @@ -928,7 +928,7 @@ VerifierSettings.ModifySerialization(_ =>
_.IgnoreMember<IgnoreExplicitTarget>(x => x.PropertyThatThrows);
});
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1404-L1415' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbyexpressionglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1405-L1416' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbyexpressionglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -996,7 +996,7 @@ public Task IgnoreMemberByNameFluent()
});
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1545-L1592' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbyname' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1546-L1593' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbyname' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally:
Expand All @@ -1014,7 +1014,7 @@ VerifierSettings.ModifySerialization(_ =>
_.IgnoreMember(type, "PropertyThatThrows");
});
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1530-L1542' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbynameglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1531-L1543' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignorememberbynameglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -1060,7 +1060,7 @@ public Task CustomExceptionPropFluent()
.ModifySerialization(_ => _.IgnoreMembersThatThrow<CustomException>());
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1711-L1730' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrow' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1712-L1731' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrow' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally:
Expand All @@ -1070,7 +1070,7 @@ Or globally:
```cs
VerifierSettings.ModifySerialization(_ => _.IgnoreMembersThatThrow<CustomException>());
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1704-L1708' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrowglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1705-L1709' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrowglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -1109,7 +1109,7 @@ public Task ExceptionMessagePropFluent()
_ => _.IgnoreMembersThatThrow<Exception>(x => x.Message == "Ignore"));
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1148-L1171' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrowexpression' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1149-L1172' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrowexpression' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Or globally:
Expand All @@ -1120,7 +1120,7 @@ Or globally:
VerifierSettings.ModifySerialization(
_ => _.IgnoreMembersThatThrow<Exception>(x => x.Message == "Ignore"));
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1140-L1145' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrowexpressionglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1141-L1146' title='Snippet source file'>snippet source</a> | <a href='#snippet-ignoremembersthatthrowexpressionglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Result:
Expand Down Expand Up @@ -1273,7 +1273,7 @@ public Task MemberConverterByExpressionFluent()
});
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1464-L1503' title='Snippet source file'>snippet source</a> | <a href='#snippet-memberconverter' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1465-L1504' title='Snippet source file'>snippet source</a> | <a href='#snippet-memberconverter' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

This can also be configured globally:
Expand All @@ -1291,7 +1291,7 @@ VerifierSettings.ModifySerialization(_ =>
(target, value) => value + "Suffix");
});
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1507-L1519' title='Snippet source file'>snippet source</a> | <a href='#snippet-memberconverterglobal' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1508-L1520' title='Snippet source file'>snippet source</a> | <a href='#snippet-memberconverterglobal' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public Task VerifyJsonJToken()
return Verifier.VerifyJson(target);
}
```
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1642-L1667' title='Snippet source file'>snippet source</a> | <a href='#snippet-verifyjson' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.Tests/Serialization/SerializationTests.cs#L1643-L1668' title='Snippet source file'>snippet source</a> | <a href='#snippet-verifyjson' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->

Results in:
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.Expecto/Verifier_Tuple.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !NETSTANDARD2_0
#if !NETSTANDARD2_0 && !NET461
using System.Linq.Expressions;
using VerifyTests;

Expand Down
8 changes: 4 additions & 4 deletions src/Verify.Expecto/Verify.Expecto.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<NoWarn>$(NoWarn);CS0436</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net5;net6</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net472;net5;net6</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Expecto" Version="9.0.4" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="ProjectDefaults" Version="1.0.61" PrivateAssets="All" />
<PackageReference Include="EmptyFiles" Version="2.8.0" PrivateAssets="None" />
<PackageReference Include="Nullable" Version="1.3.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" />
<PackageReference Include="Nullable" Version="1.3.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<ProjectReference Include="..\Verify\Verify.csproj" PrivateAssets="None" />
</ItemGroup>
Expand Down
8 changes: 4 additions & 4 deletions src/Verify.MSTest/Verify.MSTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<NoWarn>$(NoWarn);CS0436</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net5;net6</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net472;net5;net6</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="ProjectDefaults" Version="1.0.61" PrivateAssets="All" />
<PackageReference Include="EmptyFiles" Version="2.8.0" PrivateAssets="None" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.7" />
<PackageReference Include="Nullable" Version="1.3.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" />
<PackageReference Include="Nullable" Version="1.3.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<ProjectReference Include="..\Verify\Verify.csproj" PrivateAssets="None" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.MSTest/VerifyBase_Tuple.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !NETSTANDARD2_0
#if !NETSTANDARD2_0 && !NET461
using System.Linq.Expressions;
using VerifyTests;

Expand Down
2 changes: 1 addition & 1 deletion src/Verify.NUnit/Verifier_Tuple.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !NETSTANDARD2_0
#if !NETSTANDARD2_0 && !NET461
using System.Linq.Expressions;
using VerifyTests;

Expand Down
8 changes: 4 additions & 4 deletions src/Verify.NUnit/Verify.NUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
<TargetFrameworks>netstandard2.0;netstandard2.1;net5;net6</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net5;net6</TargetFrameworks>
<TargetFrameworks>netstandard2.0;netstandard2.1;net461;net472;net5;net6</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="ProjectDefaults" Version="1.0.61" PrivateAssets="All" />
<PackageReference Include="EmptyFiles" Version="2.8.0" PrivateAssets="None" />
<PackageReference Include="Nullable" Version="1.3.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461'" />
<PackageReference Include="Nullable" Version="1.3.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" PrivateAssets="all" />
<PackageReference Include="IndexRange" Version="1.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" PrivateAssets="all" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'netstandard2.0' OR $(TargetFramework) == 'net461' OR $(TargetFramework) == 'net472'" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" Condition="$(Configuration) == 'Release'" />
<ProjectReference Include="..\Verify\Verify.csproj" PrivateAssets="None" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.NUnit/VerifyBase_Tuple.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !NETSTANDARD2_0
#if !NETSTANDARD2_0 && !NET461
using System.Linq.Expressions;
using VerifyTests;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Foo
5 changes: 3 additions & 2 deletions src/Verify.Tests/Serialization/SerializationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ public async Task ShouldUseShortTypeName()
#endregion
}

#if(!NETSTANDARD2_0)
#if(!NETSTANDARD2_0 && !NET461)
[Fact]
public async Task NamedTuple()
{
Expand All @@ -896,14 +896,15 @@ public async Task NamedTuple()
}

#endregion

#if !NET461
[Fact]
public async Task PartialNamedTuple()
{
var exception = await Assert.ThrowsAsync<Exception>(() => Verifier.VerifyTuple(() => MethodWithPartialNamedTuple()));
PrefixUnique.Clear();
await Verifier.Verify(exception.Message);
}
#endif

static (bool, string Member2, string Member3) MethodWithPartialNamedTuple()
{
Expand Down
4 changes: 2 additions & 2 deletions src/Verify.Tests/Verify.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<NoWarn>$(NoWarn);CS8002</NoWarn>
</PropertyGroup>
<PropertyGroup Condition=" '$(OS)' == 'Windows_NT' ">
<TargetFrameworks>net48;net6</TargetFrameworks>
<TargetFrameworks>net461;net48;net6</TargetFrameworks>
</PropertyGroup>
<ItemGroup Condition=" '$(OS)' != 'Windows_NT' ">
<Compile Remove="Converters\TypeConverterTests.cs" />
Expand All @@ -27,7 +27,7 @@
<ProjectReference Include="..\TargetLibrary\TargetLibrary.csproj" />
<ProjectReference Include="..\Verify.Xunit\Verify.Xunit.csproj" />
<ProjectReference Include="..\Verify\Verify.csproj" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'net48'" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" Condition="$(TargetFramework) == 'net461' OR $(TargetFramework) == 'net48'" />
<None Update="sample.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
2 changes: 1 addition & 1 deletion src/Verify.Xunit/Verifier_Tuple.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !NETSTANDARD2_0
#if !NETSTANDARD2_0 && !NET461
using System.Linq.Expressions;
using VerifyTests;

Expand Down
Loading

0 comments on commit 576a6b2

Please sign in to comment.