-
-
Notifications
You must be signed in to change notification settings - Fork 142
/
Tests.cs
39 lines (35 loc) · 1.1 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
// ReSharper disable UnusedParameter.Local
public class Tests
{
// ReSharper disable once UnusedMember.Local
static void DerivePathInfo() =>
#region DerivePathInfoExpecto
Verifier.DerivePathInfo(
(sourceFile, projectDirectory, type, method) => new(
directory: Path.Combine(projectDirectory, "Snapshots"),
typeName: type,
methodName: method));
#endregion
[Tests]
public static Test myTest = Runner.TestCase(
nameof(myTest),
() => Verify(
name: nameof(myTest),
target: "value"));
[Tests]
public static Test stringTarget = Runner.TestCase(
nameof(stringTarget),
() => Verify(
name: nameof(stringTarget),
target: new Target("txt", "Value")));
[Tests]
public static Test withTargets = Runner.TestCase(
nameof(withTargets),
() => Verify(
name: nameof(withTargets),
target: new
{
Property = "Value"
},
rawTargets: [new("txt", "TextTarget")]));
}