Files
MPF/MPF.ExecutionContexts.Test/DiscImageCreatorTests.cs
2024-12-04 15:57:33 -05:00

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);
}
}
}