mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
39 lines
1.4 KiB
C#
39 lines
1.4 KiB
C#
using MPF.ExecutionContexts.DiscImageCreator;
|
|
using Xunit;
|
|
|
|
namespace MPF.ExecutionContexts.Test
|
|
{
|
|
public class DiscImageCreatorTests
|
|
{
|
|
[Fact]
|
|
public void DiscImageCreatorAudioParametersTest()
|
|
{
|
|
string originalParameters = "audio F \"ISO\\Audio CD\\Audio CD.bin\" 72 -5 0";
|
|
|
|
// Validate that a common audio commandline is parsed
|
|
var executionContext = new ExecutionContext(originalParameters);
|
|
Assert.NotNull(executionContext);
|
|
|
|
// Validate that the same set of parameters are generated on the output
|
|
var newParameters = executionContext.GenerateParameters();
|
|
Assert.NotNull(newParameters);
|
|
Assert.Equal(originalParameters, newParameters);
|
|
}
|
|
|
|
[Fact]
|
|
public void DiscImageCreatorDataParametersTest()
|
|
{
|
|
string originalParameters = "data F \"ISO\\Data CD\\Data CD.bin\" 72 -5 0";
|
|
|
|
// Validate that a common audio commandline is parsed
|
|
var executionContext = new ExecutionContext(originalParameters);
|
|
Assert.NotNull(executionContext);
|
|
|
|
// Validate that the same set of parameters are generated on the output
|
|
var newParameters = executionContext.GenerateParameters();
|
|
Assert.NotNull(newParameters);
|
|
Assert.Equal(originalParameters, newParameters);
|
|
}
|
|
}
|
|
}
|