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/articles/nunit/writing-tests/attributes/testcase.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,37 +44,37 @@ TestCaseAttribute supports a number of additional named parameters:
44
44
45
45
## Be aware of mixing the syntax for named parameters and attributes with the same name
46
46
47
-
### Ignore done right and wrong
47
+
### Correct `Ignore` Attribute Usage, by Example
48
48
49
-
[!WARNING]
50
-
When using the **Ignore** parameter (and others, see below), note that this has to be a named parameter. It is easy to add another Ignore attribute after the TestCase attribute. That will be the same as adding it separately, and it will apply to the complete fixture. Note, that this might apply to more of these named parameters, with names equal to other attributes, like the Explicit and Category parameters.
51
-
52
-
[!TIP]
53
-
Doing it right!
49
+
> [!WARNING]
50
+
> When using the `Ignore` parameter (and others, see below), note that this has to be a named parameter. It is easy to accidentally add another `Ignore` attribute after the `TestCase` attribute. That will be the same as adding it separately, and it will apply to the complete fixture. This may apply to other named parameters, with names equal to other attributes, like the `Explicit` and `Category` parameters.
Note that adding the Reason is optional, and Visual Studio TestExplorer will not even show it.
73
+
Note that adding the `Reason` is optional, and Visual Studio TestExplorer will not even show it.
74
74
75
-
### Category done correct
75
+
### Correct `Category` Attribute Usage, by Example
76
76
77
-
Categories can be applied to a single testcase the same way, as a named parameter. Otherwise it will apply to the whole fixture. Be sure what you're asking for!
77
+
Categories can be applied to a single `TestCase` the same way, as a named parameter. Otherwise, it will apply to the whole fixture. Be sure what you're asking for!
0 commit comments