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: README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,3 +5,19 @@
5
5
6
6
> [!IMPORTANT]
7
7
> This is **not** an official package produced by MSTest team at Microsoft.
8
+
9
+
For examples, see [SampleUseTests](https://github.com/Youssef1313/Combinatorial.MSTest/blob/main/tests/Combinatorial.MSTest.Tests/SampleUseTests.cs).
10
+
11
+
In short, the attribute `CombinatorialData` must be added along with `TestMethod`. The values used for each parameter is determined by the following rules:
12
+
13
+
1. If the parameter has an attribute that implements `ICombinatorialValuesProvider`, the attribute's `GetValues` method is called to determine the possible values for the given parameter.
14
+
- The following attributes are already shipped and implementing `ICombinatorialValuesProvider`:
15
+
-`CombinatorialValuesAttribute`
16
+
-`CombinatorialRangeAttribute`
17
+
-`CombinatorialRandomDataAttribute`
18
+
2. Otherwise, the possible values are determined depending on the parameter type:
19
+
-`bool`: `true` and `false`
20
+
-`int`: `0` and `1`
21
+
-`enum`: The values as returned by `Enum.GetNames`
22
+
-`Nullable<T>`: The possible values of `T` plus the `null` value.
0 commit comments