forked from VerifyTests/Verify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOnHandlers.cs
33 lines (31 loc) · 1.02 KB
/
OnHandlers.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
// ReSharper disable UnusedParameter.Local
public class OnHandlers
{
#region OnStaticHandlers
public static class ModuleInitializer
{
[ModuleInitializer]
public static void Init()
{
VerifierSettings.OnVerify(
before: () => Debug.WriteLine("before"),
after: () => Debug.WriteLine("after"));
VerifierSettings.OnFirstVerify(
(receivedFile, receivedText, autoVerify) =>
{
Debug.WriteLine(receivedFile);
Debug.WriteLine(receivedText);
return Task.CompletedTask;
});
VerifierSettings.OnVerifyMismatch(
(filePair, message, autoVerify) =>
{
Debug.WriteLine(filePair.ReceivedPath);
Debug.WriteLine(filePair.VerifiedPath);
Debug.WriteLine(message);
return Task.CompletedTask;
});
}
}
#endregion
}