Files
MPF/MPF.Frontend.Test/AllowedSpeedsTest.cs
2024-12-03 13:27:55 -05:00

22 lines
622 B
C#

using MPF.Frontend;
using SabreTools.RedumpLib.Data;
using Xunit;
namespace MPF.Frontend.Test
{
public class UIElementsTest
{
[Theory]
[InlineData(MediaType.CDROM, 72)]
[InlineData(MediaType.DVD, 24)]
[InlineData(MediaType.BluRay, 16)]
[InlineData(MediaType.LaserDisc, 1)]
[InlineData(null, 1)]
public void GetAllowedDriveSpeedForMediaTypeTest(MediaType? mediaType, int maxExpected)
{
var actual = InterfaceConstants.GetSpeedsForMediaType(mediaType);
Assert.Equal(maxExpected, actual[actual.Count - 1]);
}
}
}