mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-12-14 18:15:44 +00:00
Move tests
This commit is contained in:
parent
70668ce623
commit
65e8ba85e3
2 changed files with 21 additions and 21 deletions
|
|
@ -682,4 +682,25 @@ public class ArgumentBuilderTest
|
|||
// Act & Assert
|
||||
Assert.ThrowsExactly<FileNotFoundException>(() => argument.Pre());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Concat_Escape()
|
||||
{
|
||||
var arg = new DemuxConcatArgument([@"Heaven's River\05 - Investigation.m4b"]);
|
||||
CollectionAssert.AreEquivalent(new[] { @"file 'Heaven'\''s River\05 - Investigation.m4b'" }, arg.Values.ToArray());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Audible_Aaxc_Test()
|
||||
{
|
||||
var arg = new AudibleEncryptionKeyArgument("123", "456");
|
||||
Assert.AreEqual("-audible_key 123 -audible_iv 456", arg.Text);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Audible_Aax_Test()
|
||||
{
|
||||
var arg = new AudibleEncryptionKeyArgument("62689101");
|
||||
Assert.AreEqual("-activation_bytes 62689101", arg.Text);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,25 +97,4 @@ public class FFMpegArgumentProcessorTest
|
|||
GlobalFFOptions.Configure(new FFOptions());
|
||||
}
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Concat_Escape()
|
||||
{
|
||||
var arg = new DemuxConcatArgument([@"Heaven's River\05 - Investigation.m4b"]);
|
||||
CollectionAssert.AreEquivalent(new[] { @"file 'Heaven'\''s River\05 - Investigation.m4b'" }, arg.Values.ToArray());
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Audible_Aaxc_Test()
|
||||
{
|
||||
var arg = new AudibleEncryptionKeyArgument("123", "456");
|
||||
Assert.AreEqual("-audible_key 123 -audible_iv 456", arg.Text);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void Audible_Aax_Test()
|
||||
{
|
||||
var arg = new AudibleEncryptionKeyArgument("62689101");
|
||||
Assert.AreEqual("-activation_bytes 62689101", arg.Text);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue