-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Tests.cs
47 lines (41 loc) · 1.01 KB
/
Tests.cs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using VerifyTests.DiffPlex;
[TestFixture]
public class Tests
{
#region OutputTypeCompact
[ModuleInitializer]
public static void Init() =>
VerifyDiffPlex.Initialize(OutputType.Compact);
#endregion
[ModuleInitializer]
public static void OtherInit()
{
VerifierSettings.ScrubLinesContaining("DiffEngineTray");
VerifierSettings.IgnoreStackTrace();
}
[Test]
public Task Compact()
{
var settings = new VerifySettings();
settings.UseMethodName("Bar");
settings.DisableDiff();
return ThrowsTask(() =>
Verify(
"""
Line 1 changed
Line 2
Line 3
Line 4
Line 5 changed
Line 6
Added
Line 7 changed
Line 8
Line 9
Line 10
Line 11 changed
Line 12 changed
""",
settings));
}
}