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/temp-directory.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ public void Usage()
35
35
// Directory and files automatically deleted here
36
36
}
37
37
```
38
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L35-L48'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectory'title='Start of snippet'>anchor</a></sup>
38
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L41-L54'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectory'title='Start of snippet'>anchor</a></sup>
39
39
<!-- endSnippet -->
40
40
41
41
@@ -64,7 +64,7 @@ public void PathProperty()
64
64
Assert.True(Path.IsPathRooted(path));
65
65
}
66
66
```
67
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L232-L243'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryPathProperty'title='Start of snippet'>anchor</a></sup>
67
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L238-L249'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryPathProperty'title='Start of snippet'>anchor</a></sup>
68
68
<!-- endSnippet -->
69
69
70
70
@@ -93,7 +93,7 @@ public void StringConversion()
93
93
Trace.WriteLine(files.Count());
94
94
}
95
95
```
96
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L50-L65'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryStringConversion'title='Start of snippet'>anchor</a></sup>
96
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L56-L71'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryStringConversion'title='Start of snippet'>anchor</a></sup>
97
97
<!-- endSnippet -->
98
98
99
99
@@ -118,7 +118,7 @@ public void DirectoryInfoConversion()
118
118
Trace.WriteLine(files.Count());
119
119
}
120
120
```
121
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L67-L83'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryDirectoryInfoConversion'title='Start of snippet'>anchor</a></sup>
121
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L73-L89'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryDirectoryInfoConversion'title='Start of snippet'>anchor</a></sup>
122
122
<!-- endSnippet -->
123
123
124
124
@@ -142,7 +142,7 @@ public void InfoProperty()
142
142
temp.Info.CreateSubdirectory("Subdirectory");
143
143
}
144
144
```
145
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L85-L100'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryInfoProperty'title='Start of snippet'>anchor</a></sup>
145
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L91-L106'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryInfoProperty'title='Start of snippet'>anchor</a></sup>
146
146
<!-- endSnippet -->
147
147
148
148
@@ -158,7 +158,7 @@ public void RootDirectory() =>
158
158
// Accessing the root directory for all TempDirectory instances
159
159
Trace.WriteLine(TempDirectory.RootDirectory);
160
160
```
161
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L102-L109'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryRootDirectory'title='Start of snippet'>anchor</a></sup>
161
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L108-L115'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryRootDirectory'title='Start of snippet'>anchor</a></sup>
162
162
<!-- endSnippet -->
163
163
164
164
@@ -222,7 +222,7 @@ public async Task BuildPath()
222
222
});
223
223
}
224
224
```
225
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L292-L312'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryBuildPath'title='Start of snippet'>anchor</a></sup>
225
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L298-L318'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryBuildPath'title='Start of snippet'>anchor</a></sup>
226
226
<!-- endSnippet -->
227
227
228
228
@@ -244,7 +244,7 @@ public async Task Scrubbing()
244
244
});
245
245
}
246
246
```
247
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L314-L329'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryScrubbing'title='Start of snippet'>anchor</a></sup>
247
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L320-L335'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryScrubbing'title='Start of snippet'>anchor</a></sup>
248
248
<!-- endSnippet -->
249
249
250
250
Result:
@@ -289,7 +289,7 @@ public void NoUsing()
289
289
Debug.WriteLine(temp);
290
290
}
291
291
```
292
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L275-L288'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryNoUsing'title='Start of snippet'>anchor</a></sup>
292
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L281-L294'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryNoUsing'title='Start of snippet'>anchor</a></sup>
293
293
<!-- endSnippet -->
294
294
295
295
The directory can then be manually inspected.
@@ -313,7 +313,7 @@ public void OpenExplorerAndDebug()
313
313
temp.OpenExplorerAndDebug();
314
314
}
315
315
```
316
-
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L260-L273'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryOpenExplorerAndDebug'title='Start of snippet'>anchor</a></sup>
316
+
<sup><ahref='/src/Verify.Tests/TempDirectoryTests.cs#L266-L279'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempDirectoryOpenExplorerAndDebug'title='Start of snippet'>anchor</a></sup>
317
317
<!-- endSnippet -->
318
318
319
319
This method is designed to help debug tests by enabling the inspection of the contents of the temporary directory while the test is paused. It performs two actions:
Copy file name to clipboardExpand all lines: docs/temp-file.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ public void Usage()
34
34
// file automatically deleted here
35
35
}
36
36
```
37
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L32-L44'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFile'title='Start of snippet'>anchor</a></sup>
37
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L38-L50'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFile'title='Start of snippet'>anchor</a></sup>
38
38
<!-- endSnippet -->
39
39
40
40
@@ -62,7 +62,7 @@ public void PathProperty()
62
62
Assert.True(Path.IsPathRooted(path));
63
63
}
64
64
```
65
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L46-L56'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFilePathProperty'title='Start of snippet'>anchor</a></sup>
65
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L52-L62'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFilePathProperty'title='Start of snippet'>anchor</a></sup>
66
66
<!-- endSnippet -->
67
67
68
68
@@ -91,7 +91,7 @@ public void StringConversion()
91
91
Trace.WriteLine(content);
92
92
}
93
93
```
94
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L327-L342'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileStringConversion'title='Start of snippet'>anchor</a></sup>
94
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L333-L348'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileStringConversion'title='Start of snippet'>anchor</a></sup>
95
95
<!-- endSnippet -->
96
96
97
97
@@ -114,7 +114,7 @@ public void FileInfoConversion()
114
114
Trace.WriteLine(directoryName);
115
115
}
116
116
```
117
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L344-L358'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileFileInfoConversion'title='Start of snippet'>anchor</a></sup>
117
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L350-L364'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileFileInfoConversion'title='Start of snippet'>anchor</a></sup>
118
118
<!-- endSnippet -->
119
119
120
120
@@ -135,7 +135,7 @@ public void InfoProperty()
135
135
Trace.WriteLine(directoryName);
136
136
}
137
137
```
138
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L360-L372'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileInfoProperty'title='Start of snippet'>anchor</a></sup>
138
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L366-L378'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileInfoProperty'title='Start of snippet'>anchor</a></sup>
139
139
<!-- endSnippet -->
140
140
141
141
@@ -151,7 +151,7 @@ public void RootDirectory() =>
151
151
// Accessing the root directory for all TempDirectory instances
152
152
Trace.WriteLine(TempFile.RootDirectory);
153
153
```
154
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L108-L115'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileRootDirectory'title='Start of snippet'>anchor</a></sup>
154
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L114-L121'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileRootDirectory'title='Start of snippet'>anchor</a></sup>
155
155
<!-- endSnippet -->
156
156
157
157
@@ -186,7 +186,7 @@ public async Task VerifyFileInstance()
186
186
awaitVerifyFile(file);
187
187
}
188
188
```
189
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L20-L30'title='Snippet source file'>snippet source</a> | <ahref='#snippet-VerifyTempFile'title='Start of snippet'>anchor</a></sup>
189
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L26-L36'title='Snippet source file'>snippet source</a> | <ahref='#snippet-VerifyTempFile'title='Start of snippet'>anchor</a></sup>
190
190
<!-- endSnippet -->
191
191
192
192
@@ -207,7 +207,7 @@ public async Task Scrubbing()
207
207
});
208
208
}
209
209
```
210
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L90-L104'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileScrubbing'title='Start of snippet'>anchor</a></sup>
210
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L96-L110'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileScrubbing'title='Start of snippet'>anchor</a></sup>
211
211
<!-- endSnippet -->
212
212
213
213
Result:
@@ -251,7 +251,7 @@ public void NoUsing()
251
251
Debug.WriteLine(temp);
252
252
}
253
253
```
254
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L73-L86'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileNoUsing'title='Start of snippet'>anchor</a></sup>
254
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L79-L92'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileNoUsing'title='Start of snippet'>anchor</a></sup>
255
255
<!-- endSnippet -->
256
256
257
257
The file can then be manually inspected.
@@ -275,7 +275,7 @@ public void OpenExplorerAndDebug()
275
275
temp.OpenExplorerAndDebug();
276
276
}
277
277
```
278
-
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L58-L71'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileOpenExplorerAndDebug'title='Start of snippet'>anchor</a></sup>
278
+
<sup><ahref='/src/Verify.Tests/TempFileTests.cs#L64-L77'title='Snippet source file'>snippet source</a> | <ahref='#snippet-TempFileOpenExplorerAndDebug'title='Start of snippet'>anchor</a></sup>
279
279
<!-- endSnippet -->
280
280
281
281
This method is designed to help debug tests by enabling the inspection of the contents of the temporary file while the test is paused. It performs two actions:
0 commit comments