BililiveRecorder/test/BililiveRecorder.Flv.Tests/VerifyConfig.cs
Genteure d7c03f4736
feat: add option to disable spliting when H264 Annex-B is detected (#614)
* feat: add option to disable spliting when H264 Annex-B is detected

* add wpf ui toggles

* chore: remove public api check for flv

* fix warning unboxing a possibly null value

* fix cli tool help text

* feat(wpf): add disable split on h264annexb option for toolbox
2024-11-22 13:55:20 +00:00

29 lines
919 B
C#

using System;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using DiffEngine;
using VerifyTests;
using VerifyXunit;
namespace BililiveRecorder.Flv.Tests
{
public static class VerifyConfig
{
[ModuleInitializer]
public static void Init()
{
Verifier.DerivePathInfo((string sourceFile, string projectDirectory, Type type, MethodInfo method) =>
{
if (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);
}
}
}