-
-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathCounterTests.cs
More file actions
33 lines (28 loc) · 807 Bytes
/
CounterTests.cs
File metadata and controls
33 lines (28 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
public class CounterTests
{
#region CounterTryConvert
[Fact]
public Task CounterTryConvert()
{
var settings = new VerifySettings();
settings.AddScrubber((builder, counter) =>
{
var values = builder.ToString().Split();
builder.Clear();
foreach (var value in values)
{
if (counter.TryConvert(value, out var result))
{
builder.Append(result);
}
else
{
builder.Append(value);
}
builder.Append(' ');
}
});
return Verify("The user with id c9cb98bf-3def-415e-a009-7d58055f5ffc was created on 2022-10-12", settings);
}
#endregion
}