-
-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathScrubberLevelsSample.cs
More file actions
31 lines (25 loc) · 776 Bytes
/
ScrubberLevelsSample.cs
File metadata and controls
31 lines (25 loc) · 776 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
#region ScrubberLevelsSampleTUnit
public class ScrubberLevelsSample
{
VerifySettings classLevelSettings;
public ScrubberLevelsSample()
{
classLevelSettings = new();
classLevelSettings.AddScrubber(_ => _.Replace("Three", "C"));
}
[Test]
public Task Simple()
{
var settings = new VerifySettings(classLevelSettings);
settings.AddScrubber(_ => _.Replace("Two", "B"));
return Verify("One Two Three", settings);
}
[Test]
public Task SimpleFluent() =>
Verify("One Two Three", classLevelSettings)
.AddScrubber(_ => _.Replace("Two", "B"));
[ModuleInitializer]
public static void Setup() =>
VerifierSettings.AddScrubber(_ => _.Replace("One", "A"));
}
#endregion