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
Call `VerifyDiffPlex.Initialize()` in a `[ModuleInitializer]`. Alternatively, use `VerifyDiffPlex.Initialize(OutputType.Full)`or `VerifyDiffPlex.Initialize(OutputType.Compact)` to specify the type of output (see below).
23
+
Call `VerifyDiffPlex.Initialize()` in a `[ModuleInitializer]`. Alternatively, use `VerifyDiffPlex.Initialize(OutputType.Full)`, `VerifyDiffPlex.Initialize(OutputType.Compact)`or `VerifyDiffPlex.Initialize(OutputType.Minimal)` to specify the type of output (see below).
24
24
25
25
<!-- snippet: ModuleInitializer.cs -->
26
26
<aid='snippet-ModuleInitializer.cs'></a>
@@ -89,7 +89,7 @@ Compare Result:
89
89
90
90
### Output types
91
91
92
-
The library currently supports two different types of diff outputs; the desired type can be specified during library initialization.
92
+
The library currently supports three different types of diff outputs; the desired type can be specified during library initialization.
93
93
94
94
<!-- snippet: OutputTypeCompact -->
95
95
<aid='snippet-outputtypecompact'></a>
@@ -116,7 +116,7 @@ public static void Init() =>
116
116
Eighth line
117
117
```
118
118
119
-
This output type gives the most information, but if verified files are long, it can be difficult to read through and find the actual differences. `OutputType.Compact` will show only the changed lines, with one line of context (with line number) before and after each changed section to help identify where the change is. The `Full` output above would look like this as `Compact`.
119
+
This output type gives the most information, but if verified files are long, it can be difficult to read through and find the actual differences. `OutputType.Compact` will show only the changed lines, with one line of context (with line number) before and after each changed section to help identify where the change is.
120
120
121
121
```
122
122
1 First line
@@ -130,6 +130,15 @@ This output type gives the most information, but if verified files are long, it
130
130
7 Seventh line
131
131
```
132
132
133
+
Lastly, there is `OutputType.Minimal` which will show only the changed lines.
134
+
135
+
```
136
+
- Second line
137
+
+ Second line changed
138
+
- Sixth line
139
+
+ Sixth line changed
140
+
```
141
+
133
142
134
143
### Test level settings
135
144
@@ -147,7 +156,7 @@ public Task TestLevelUsage()
147
156
returnVerify(target, settings);
148
157
}
149
158
```
150
-
<sup><ahref='/src/Tests/Tests.cs#L93-L104'title='Snippet source file'>snippet source</a> | <ahref='#snippet-testlevelusage'title='Start of snippet'>anchor</a></sup>
159
+
<sup><ahref='/src/Tests/Tests.cs#L111-L122'title='Snippet source file'>snippet source</a> | <ahref='#snippet-testlevelusage'title='Start of snippet'>anchor</a></sup>
151
160
<!-- endSnippet -->
152
161
153
162
Or Fluently
@@ -163,5 +172,5 @@ public Task TestLevelUsageFluent()
163
172
.UseDiffPlex();
164
173
}
165
174
```
166
-
<sup><ahref='/src/Tests/Tests.cs#L106-L116'title='Snippet source file'>snippet source</a> | <ahref='#snippet-testlevelusagefluent'title='Start of snippet'>anchor</a></sup>
175
+
<sup><ahref='/src/Tests/Tests.cs#L124-L134'title='Snippet source file'>snippet source</a> | <ahref='#snippet-testlevelusagefluent'title='Start of snippet'>anchor</a></sup>
0 commit comments