Added unit test

Former-commit-id: e79448df48
This commit is contained in:
Jonas Kamsker 2022-01-04 17:47:10 +01:00
parent 65bb8ecd2b
commit e950cdf068

View file

@ -1,6 +1,7 @@
using Microsoft.VisualStudio.TestTools.UnitTesting; using Microsoft.VisualStudio.TestTools.UnitTesting;
using FluentAssertions; using FluentAssertions;
using System.Reflection; using System.Reflection;
using FFMpegCore.Arguments;
namespace FFMpegCore.Test namespace FFMpegCore.Test
{ {
@ -86,5 +87,12 @@ FFMpegArgumentProcessor CreateArgumentProcessor() => FFMpegArguments
var options2 = processor2.GetConfiguredOptions(null); var options2 = processor2.GetConfiguredOptions(null);
options2.WorkingDirectory.Should().Be(globalWorkingDir); options2.WorkingDirectory.Should().Be(globalWorkingDir);
} }
[TestMethod]
public void Concat_Escape()
{
var arg = new DemuxConcatArgument(new[] { @"Heaven's River\05 - Investigation.m4b" });
arg.Values.Should().BeEquivalentTo(new[] { @"file 'Heaven'\''s River\05 - Investigation.m4b'" });
}
} }
} }