BililiveRecorder/test/BililiveRecorder.Flv.Tests/VerifyConfig.cs

28 lines
937 B
C#
Raw Normal View History

using System;
using System.IO;
using System.Reflection;
2021-11-02 21:46:44 +08:00
using System.Runtime.CompilerServices;
using DiffEngine;
using VerifyTests;
namespace BililiveRecorder.Flv.Tests
2021-11-02 21:46:44 +08:00
{
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);
});
2022-06-07 22:41:09 +08:00
VerifierSettings.IgnoreMembersWithType<Stream>();
DiffRunner.Disabled = false;
DiffTools.UseOrder(DiffTool.VisualStudioCode, DiffTool.Rider, DiffTool.WinMerge, DiffTool.VisualStudio);
2021-11-02 21:46:44 +08:00
}
}
}