You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mdsource/parameterised-mstest.source.md
+1-12Lines changed: 1 addition & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,9 +5,7 @@
5
5
6
6
`UseParameters()` controls what parameters are used when naming files.
7
7
8
-
Verify.MSTest does not detect the parametrised arguments, as such `UseParameters()` is required.
9
-
10
-
snippet: UseParametersMSTest
8
+
Verify.MSTest automatically detects the method parameters. So `UseParameters()` is not required unless using custom parameters.
11
9
12
10
If not all parameters are required, a subset can be passed in. In this scenario, the parameters passed in will match with the method parameter names from the start. For example the following will result in a file named `ParametersSample.UseParametersSubSet_arg1=Value1_arg2=Value2.verified.txt`
13
11
@@ -18,22 +16,13 @@ If the number of parameters passed to `UseParameters()` is greater than the numb
Copy file name to clipboardExpand all lines: docs/parameterised-mstest.md
+9-49Lines changed: 9 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,23 +12,7 @@ To change this file edit the source file and then run MarkdownSnippets.
12
12
13
13
`UseParameters()` controls what parameters are used when naming files.
14
14
15
-
Verify.MSTest does not detect the parametrised arguments, as such `UseParameters()` is required.
16
-
17
-
<!-- snippet: UseParametersMSTest -->
18
-
<aid='snippet-UseParametersMSTest'></a>
19
-
```cs
20
-
[DataTestMethod]
21
-
[DataRow("Value1")]
22
-
[DataRow("Value2")]
23
-
publicTaskUseParametersUsage(stringarg)
24
-
{
25
-
varsomethingToVerify=$"{arg} some text";
26
-
returnVerify(somethingToVerify)
27
-
.UseParameters(arg);
28
-
}
29
-
```
30
-
<sup><ahref='/src/Verify.MSTest.Tests/Snippets/ParametersSample.cs#L131-L143'title='Snippet source file'>snippet source</a> | <ahref='#snippet-UseParametersMSTest'title='Start of snippet'>anchor</a></sup>
31
-
<!-- endSnippet -->
15
+
Verify.MSTest automatically detects the method parameters. So `UseParameters()` is not required unless using custom parameters.
32
16
33
17
If not all parameters are required, a subset can be passed in. In this scenario, the parameters passed in will match with the method parameter names from the start. For example the following will result in a file named `ParametersSample.UseParametersSubSet_arg1=Value1_arg2=Value2.verified.txt`
0 commit comments