mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2026-05-04 14:19:37 -05:00
33 lines
881 B
C#
33 lines
881 B
C#
#if(DEBUG)
|
|
|
|
namespace VideoNodes.Tests;
|
|
|
|
using FileFlows.VideoNodes;
|
|
using FileFlows.VideoNodes.FfmpegBuilderNodes;
|
|
using FileFlows.VideoNodes.VideoNodes;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
|
|
[TestClass]
|
|
public class EndCreditsTests : TestBase
|
|
{
|
|
[TestMethod]
|
|
public void EndCredits_Base()
|
|
{
|
|
var logger = new TestLogger();
|
|
string file = @"D:\videos\testfiles\pgs.mkv";
|
|
var vi = new VideoInfoHelper(FfmpegPath, logger);
|
|
var vii = vi.Read(file);
|
|
|
|
var args = new NodeParameters(file, logger, false, string.Empty);
|
|
args.GetToolPathActual = (string tool) => FfmpegPath;
|
|
args.TempPath = TempPath;
|
|
|
|
var node = new DetectEndCredits();
|
|
node.PreExecute(args);
|
|
var result = node.Execute(args);
|
|
var log = logger.ToString();
|
|
Assert.AreEqual(1, result);
|
|
}
|
|
}
|
|
|
|
#endif |