Compare commits

..

No commits in common. "cd258991bd528ee1e215ca126a0e9731a5247b29" and "0c467e3a0563f9a315d171553e1d5982b56c63ed" have entirely different histories.

6 changed files with 11 additions and 9 deletions

View file

@ -1 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
[assembly: Parallelize(Scope = ExecutionScope.ClassLevel)]

View file

@ -11,7 +11,7 @@ public class FFMpegArgumentProcessorTest
}
[TestMethod]
public void ZZZ_Processor_GlobalOptions_GetUsed()
public void Processor_GlobalOptions_GetUsed()
{
var globalWorkingDir = "Whatever";
var processor = CreateArgumentProcessor();
@ -43,7 +43,7 @@ public class FFMpegArgumentProcessorTest
}
[TestMethod]
public void ZZZ_Processor_Options_CanBeOverridden_And_Configured()
public void Processor_Options_CanBeOverridden_And_Configured()
{
var globalConfig = "Whatever";
@ -73,7 +73,7 @@ public class FFMpegArgumentProcessorTest
}
[TestMethod]
public void ZZZ_Options_Global_And_Session_Options_Can_Differ()
public void Options_Global_And_Session_Options_Can_Differ()
{
var globalWorkingDir = "Whatever";

View file

@ -5,7 +5,6 @@
<IsPackable>false</IsPackable>
<Nullable>disable</Nullable>
<LangVersion>default</LangVersion>
<OrderTestsByNameInClass>true</OrderTestsByNameInClass>
</PropertyGroup>
<ItemGroup>

View file

@ -27,12 +27,15 @@ public class FFMpegOptionsTest
}
[TestMethod]
public void ZZZ_Options_Set_Programmatically()
public void Options_Set_Programmatically()
{
try
{
GlobalFFOptions.Configure(new FFOptions { BinaryFolder = "Whatever" });
Assert.AreEqual("Whatever", GlobalFFOptions.Current.BinaryFolder);
Assert.AreEqual(
"Whatever",
GlobalFFOptions.Current.BinaryFolder
);
}
finally
{

View file

@ -824,6 +824,7 @@ public class VideoTest
using var outputFile = new TemporaryFile("out.mp4");
var dataReceived = false;
GlobalFFOptions.Configure(opt => opt.Encoding = Encoding.UTF8);
var success = FFMpegArguments
.FromFileInput(TestResources.Mp4Video)
.WithGlobalOptions(options => options
@ -831,7 +832,6 @@ public class VideoTest
.OutputToFile(outputFile, false, opt => opt
.WithDuration(TimeSpan.FromSeconds(2)))
.NotifyOnError(_ => dataReceived = true)
.Configure(opt => opt.Encoding = Encoding.UTF8)
.ProcessSynchronously();
Assert.IsTrue(dataReceived);

View file

@ -1,3 +1,3 @@
{
"BinaryFolder": ""
"RootDirectory": ""
}