mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
Added unit test
This commit is contained in:
parent
21d1df824f
commit
e79448df48
1 changed files with 8 additions and 0 deletions
|
@ -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'" });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue