mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
25 lines
821 B
C#
25 lines
821 B
C#
using SabreTools.RedumpLib.Data;
|
|
using Xunit;
|
|
|
|
namespace MPF.Frontend.Test
|
|
{
|
|
public class InterfaceConstantsTests
|
|
{
|
|
[Theory]
|
|
[InlineData(MediaType.CDROM, 72)]
|
|
[InlineData(MediaType.DVD, 24)]
|
|
[InlineData(MediaType.NintendoGameCubeGameDisc, 24)]
|
|
[InlineData(MediaType.NintendoWiiOpticalDisc, 24)]
|
|
[InlineData(MediaType.HDDVD, 24)]
|
|
[InlineData(MediaType.BluRay, 16)]
|
|
[InlineData(MediaType.NintendoWiiUOpticalDisc, 16)]
|
|
[InlineData(MediaType.LaserDisc, 72)]
|
|
[InlineData(null, 72)]
|
|
public void GetAllowedDriveSpeedForMediaTypeTest(MediaType? mediaType, int maxExpected)
|
|
{
|
|
var actual = InterfaceConstants.GetSpeedsForMediaType(mediaType);
|
|
Assert.Equal(maxExpected, actual[^1]);
|
|
}
|
|
}
|
|
}
|