mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
22 lines
622 B
C#
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]);
|
|
}
|
|
}
|
|
}
|