Skip to content

Commit

Permalink
Merge pull request #29 from dlemstra/restore-netstandard2.0-support
Browse files Browse the repository at this point in the history
Restore support for netstandard2.0
  • Loading branch information
romantitov authored Apr 17, 2020
2 parents eef66f2 + 621cc18 commit a604f58
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>MockQueryable.FakeItEasy</PackageId>
<Authors>Roman Titov</Authors>
<Description>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>MockQueryable.Moq</PackageId>
<Authors>Roman Titov</Authors>
<Description>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>MockQueryable.NSubstitute</PackageId>
<Authors>Roman Titov</Authors>
<Description>
Expand Down
2 changes: 1 addition & 1 deletion src/MockQueryable/MockQueryable/MockQueryable.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>netstandard2.0</TargetFramework>
<PackageId>MockQueryable.Core</PackageId>
<Authors>Roman Titov</Authors>
<Description>
Expand Down
7 changes: 3 additions & 4 deletions src/MockQueryable/MockQueryable/TestAsyncEnumerable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ public TResult ExecuteAsync<TResult>(Expression expression, CancellationToken ca
{
var expectedResultType = typeof(TResult).GetGenericArguments()[0];
var executionResult = typeof(IQueryProvider)
.GetMethod(
name: nameof(IQueryProvider.Execute),
genericParameterCount: 1,
types: new[] {typeof(Expression)})
.GetMethods()
.Where(method => method.Name == nameof(IQueryProvider.Execute) && method.IsGenericMethod)
.First()
.MakeGenericMethod(expectedResultType)
.Invoke(this, new[] {expression});

Expand Down

0 comments on commit a604f58

Please sign in to comment.