Skip to content

Commit

Permalink
Remove Capture and CaptureMatch
Browse files Browse the repository at this point in the history
  • Loading branch information
stakx committed Dec 27, 2020
1 parent c7dbdab commit 5b15506
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 272 deletions.
82 changes: 0 additions & 82 deletions src/Moq/Capture.cs

This file was deleted.

42 changes: 0 additions & 42 deletions src/Moq/CaptureMatch.cs

This file was deleted.

100 changes: 0 additions & 100 deletions tests/Moq.Tests/CaptureFixture.cs

This file was deleted.

44 changes: 0 additions & 44 deletions tests/Moq.Tests/CaptureMatchFixture.cs

This file was deleted.

6 changes: 2 additions & 4 deletions tests/Moq.Tests/Matchers/ParamArrayMatcherFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public class ParamArrayMatcherFixture
[InlineData(null, "", false)]
public void Matches_several_matchers_from_params_array(object first, object second, bool shouldMatch)
{
var seconds = new List<string>();
var methodCallExpr = (MethodCallExpression)ToExpression<IX>(x => x.Method(It.IsAny<int>(), Capture.In(seconds))).Body;
var methodCallExpr = (MethodCallExpression)ToExpression<IX>(x => x.Method(It.IsAny<int>(), It.IsAny<string>())).Body;
var expr = methodCallExpr.Arguments.Single();
var parameter = typeof(IX).GetMethod("Method").GetParameters().Single();

Expand All @@ -31,8 +30,7 @@ public void Matches_several_matchers_from_params_array(object first, object seco
[Fact]
public void SetupEvaluatedSuccessfully_succeeds_for_matching_values()
{
var seconds = new List<string>();
var methodCallExpr = (MethodCallExpression)ToExpression<IX>(x => x.Method(It.IsAny<int>(), Capture.In(seconds))).Body;
var methodCallExpr = (MethodCallExpression)ToExpression<IX>(x => x.Method(It.IsAny<int>(), It.IsAny<string>())).Body;
var expr = methodCallExpr.Arguments.Single();
var parameter = typeof(IX).GetMethod("Method").GetParameters().Single();

Expand Down

0 comments on commit 5b15506

Please sign in to comment.