mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
28 lines
937 B
C#
28 lines
937 B
C#
using System;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
using System.Runtime.CompilerServices;
|
|
using DiffEngine;
|
|
using VerifyTests;
|
|
|
|
namespace BililiveRecorder.Flv.Tests
|
|
{
|
|
public static class VerifyConfig
|
|
{
|
|
[ModuleInitializer]
|
|
public static void Init()
|
|
{
|
|
VerifierSettings.DerivePathInfo((string sourceFile, string projectDirectory, Type type, MethodInfo method) =>
|
|
{
|
|
if (type != typeof(PublicApi) && type != typeof(TestData))
|
|
projectDirectory = Path.Combine(projectDirectory, "..", "data", "flv");
|
|
|
|
return Expectations.Initialize(sourceFile, projectDirectory, type, method);
|
|
});
|
|
VerifierSettings.IgnoreMembersWithType<Stream>();
|
|
DiffRunner.Disabled = false;
|
|
DiffTools.UseOrder(DiffTool.VisualStudioCode, DiffTool.Rider, DiffTool.WinMerge, DiffTool.VisualStudio);
|
|
}
|
|
}
|
|
}
|