Skip to content

Commit ed71792

Browse files
committed
test
1 parent 3c53201 commit ed71792

File tree

3 files changed

+25
-11
lines changed

3 files changed

+25
-11
lines changed

docs/recording.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public Task Usage()
2525
return Verify("TheValue");
2626
}
2727
```
28-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L14-L24' title='Snippet source file'>snippet source</a> | <a href='#snippet-recording' title='Start of snippet'>anchor</a></sup>
28+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L24-L34' title='Snippet source file'>snippet source</a> | <a href='#snippet-recording' title='Start of snippet'>anchor</a></sup>
2929
<!-- endSnippet -->
3030

3131
Results in:
@@ -61,7 +61,7 @@ public Task TryAdd()
6161
return Verify("TheValue");
6262
}
6363
```
64-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L50-L62' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingtryadd' title='Start of snippet'>anchor</a></sup>
64+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L60-L72' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingtryadd' title='Start of snippet'>anchor</a></sup>
6565
<!-- endSnippet -->
6666

6767

@@ -85,7 +85,7 @@ public Task RecordingScoped()
8585
return Verify();
8686
}
8787
```
88-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L64-L79' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingscoped' title='Start of snippet'>anchor</a></sup>
88+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L74-L89' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingscoped' title='Start of snippet'>anchor</a></sup>
8989
<!-- endSnippet -->
9090

9191
Results in:
@@ -117,7 +117,7 @@ public Task SameKey()
117117
return Verify("TheValue");
118118
}
119119
```
120-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L263-L274' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingsamekey' title='Start of snippet'>anchor</a></sup>
120+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L273-L284' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingsamekey' title='Start of snippet'>anchor</a></sup>
121121
<!-- endSnippet -->
122122

123123
Results in:
@@ -154,7 +154,7 @@ public Task Identifier()
154154
return Verify(Recording.Stop("identifier"));
155155
}
156156
```
157-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L81-L91' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingidentifier' title='Start of snippet'>anchor</a></sup>
157+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L91-L101' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingidentifier' title='Start of snippet'>anchor</a></sup>
158158
<!-- endSnippet -->
159159

160160
Results in:
@@ -186,7 +186,7 @@ public Task Case()
186186
return Verify("TheValue");
187187
}
188188
```
189-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L285-L296' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingignorecase' title='Start of snippet'>anchor</a></sup>
189+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L295-L306' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingignorecase' title='Start of snippet'>anchor</a></sup>
190190
<!-- endSnippet -->
191191

192192
Results in:
@@ -221,7 +221,7 @@ public Task Stop()
221221
return Verify(appends.Where(_ => _.Name != "name1"));
222222
}
223223
```
224-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L123-L135' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingstop' title='Start of snippet'>anchor</a></sup>
224+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L133-L145' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingstop' title='Start of snippet'>anchor</a></sup>
225225
<!-- endSnippet -->
226226

227227
Results in:
@@ -253,7 +253,7 @@ public Task StopNotInResult()
253253
return Verify("other data");
254254
}
255255
```
256-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L137-L149' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingstopnotinresult' title='Start of snippet'>anchor</a></sup>
256+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L147-L159' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingstopnotinresult' title='Start of snippet'>anchor</a></sup>
257257
<!-- endSnippet -->
258258

259259
Results in:
@@ -282,7 +282,7 @@ public void IsRecording()
282282
Assert.True(Recording.IsRecording());
283283
}
284284
```
285-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L93-L103' title='Snippet source file'>snippet source</a> | <a href='#snippet-isrecording' title='Start of snippet'>anchor</a></sup>
285+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L103-L113' title='Snippet source file'>snippet source</a> | <a href='#snippet-isrecording' title='Start of snippet'>anchor</a></sup>
286286
<!-- endSnippet -->
287287

288288
This can be helpful if the cost of capturing data, to add to recording, is high.
@@ -305,7 +305,7 @@ public Task Clear()
305305
return Verify();
306306
}
307307
```
308-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L183-L195' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingclear' title='Start of snippet'>anchor</a></sup>
308+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L193-L205' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingclear' title='Start of snippet'>anchor</a></sup>
309309
<!-- endSnippet -->
310310

311311
Results in:
@@ -341,7 +341,7 @@ public Task PauseResume()
341341
return Verify();
342342
}
343343
```
344-
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L207-L222' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingpauseresume' title='Start of snippet'>anchor</a></sup>
344+
<sup><a href='/src/Verify.Tests/RecordingTests.cs#L217-L232' title='Snippet source file'>snippet source</a> | <a href='#snippet-recordingpauseresume' title='Start of snippet'>anchor</a></sup>
345345
<!-- endSnippet -->
346346

347347
Results in:
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
typed: DateTime_1,
3+
inline: a DateTime_2 b
4+
}

src/Verify.Tests/RecordingTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ public Task IgnoreNames()
1111
return Verify();
1212
}
1313

14+
[Fact]
15+
public Task Dates()
16+
{
17+
Recording.Start();
18+
var dateTime = DateTime.Now;
19+
Recording.Add("typed", dateTime);
20+
Recording.Add("inline", $"a {dateTime:F} b");
21+
return Verify().ScrubInlineDateTimes("F");
22+
}
23+
1424
#region Recording
1525

1626
[Fact]

0 commit comments

Comments
 (0)