Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Sep 18, 2024
1 parent 7decbb5 commit 9380ced
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/parameterised.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ Produces:
public Task TestCaseUsage(string arg) =>
Verify(arg);
```
<sup><a href='/src/Verify.TUnit.Tests/Snippets/ParametersSample.cs#L63-L71' title='Snippet source file'>snippet source</a> | <a href='#snippet-TUnitTestCase' title='Start of snippet'>anchor</a></sup>
<sup><a href='/src/Verify.TUnit.Tests/Snippets/ParametersSample.cs#L113-L121' title='Snippet source file'>snippet source</a> | <a href='#snippet-TUnitTestCase' title='Start of snippet'>anchor</a></sup>
<!-- endSnippet -->


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
arg1: Value2,
arg2: 2,
arg3: FromTestCase2
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
value
50 changes: 50 additions & 0 deletions src/Verify.TUnit.Tests/Snippets/ParametersSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,56 @@ public Task IgnoreParametersForVerifiedCustomParamsFluent(string arg) =>

#endregion

#region IgnoreParametersTUnit

[Test]
[Arguments("One")]
[Arguments("Two")]
public Task IgnoreParameters(string arg)
{
var settings = new VerifySettings();
settings.IgnoreParameters();
return Verify("value", settings);
}

#endregion

#region IgnoreParametersFluentTUnit

[Test]
[Arguments("One")]
[Arguments("Two")]
public Task IgnoreParametersFluent(string arg) =>
Verify("value")
.IgnoreParameters();

#endregion

#region IgnoreParametersCustomParamsTUnit

[Test]
[Arguments("One")]
[Arguments("Two")]
public Task IgnoreParametersCustomParams(string arg)
{
var settings = new VerifySettings();
settings.IgnoreParameters(nameof(arg));
return Verify("value", settings);
}

#endregion

#region IgnoreParametersCustomParamsFluentTUnit

[Test]
[Arguments("One")]
[Arguments("Two")]
public Task IgnoreParametersCustomParamsFluent(string arg) =>
Verify("value")
.IgnoreParameters(nameof(arg));

#endregion

#region TUnitTestCase

[Test]
Expand Down

0 comments on commit 9380ced

Please sign in to comment.