Skip to content

Commit

Permalink
Apply review comments for #325
Browse files Browse the repository at this point in the history
- Fix param doc
- Change minimum System.Threading.Tasks.Extensions to 4.3 (was 4.4)
  • Loading branch information
dtchepak committed Oct 11, 2017
1 parent 8c79da4 commit fb1dcae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### 3.0.2 (unreleased)
* [NEW] Support for auto-substituting `ValueTask<T>` results. Thanks to
@KrzysztofBranicki for this change. (#325)

### 3.0.1 (October 2017)
* [FIX] Signing 3.x release to prevent problems with other packages that work
with different versions of NSubstitute. Thanks Alex Povar for raising this. (#324)
Expand Down
4 changes: 2 additions & 2 deletions src/NSubstitute/NSubstitute.csproj
Expand Up @@ -32,8 +32,8 @@
<ItemGroup>
<PackageReference Include="Castle.Core" Version="4.2.0-*" />
<PackageReference Include="System.Linq.Queryable" Version="4.3.0-*" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.4.0" />
<PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0-*" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.3.0-*" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/NSubstitute/SubstituteExtensions.cs
Expand Up @@ -42,7 +42,7 @@ public static ConfiguredCall Returns<T>(this T value, Func<CallInfo, T> returnTh
/// <typeparam name="T"></typeparam>
/// <param name="value"></param>
/// <param name="returnThis">Value to return. Will be wrapped in a Task</param>
/// <param name="returnThese">Optionally use these functions next</param>
/// <param name="returnThese">Optionally use these values next</param>
/// <returns></returns>
public static ConfiguredCall Returns<T>(this Task<T> value, T returnThis, params T[] returnThese)
{
Expand Down Expand Up @@ -75,7 +75,7 @@ public static ConfiguredCall Returns<T>(this Task<T> value, Func<CallInfo, T> re
/// <typeparam name="T"></typeparam>
/// <param name="value"></param>
/// <param name="returnThis">Value to return. Will be wrapped in a ValueTask</param>
/// <param name="returnThese">Optionally use these functions next</param>
/// <param name="returnThese">Optionally use these values next</param>
/// <returns></returns>
public static ConfiguredCall Returns<T>(this ValueTask<T> value, T returnThis, params T[] returnThese)
{
Expand Down

0 comments on commit fb1dcae

Please sign in to comment.