mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-15 13:46:45 +00:00
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using System;
|
|
using System.Linq;
|
|
using MPF.Data;
|
|
using MPF.Utilities;
|
|
using Xunit;
|
|
|
|
namespace MPF.Test.Utilities
|
|
{
|
|
public class ValidatorsTest
|
|
{
|
|
[Theory]
|
|
[InlineData(KnownSystem.BandaiApplePippin, MediaType.CDROM)]
|
|
[InlineData(KnownSystem.MicrosoftXBOX, MediaType.DVD)]
|
|
[InlineData(KnownSystem.NintendoGameCube, MediaType.NintendoGameCubeGameDisc)]
|
|
[InlineData(KnownSystem.NintendoWii, MediaType.NintendoWiiOpticalDisc)]
|
|
[InlineData(KnownSystem.NintendoWiiU, MediaType.NintendoWiiUOpticalDisc)]
|
|
[InlineData(KnownSystem.SonyPlayStationPortable, MediaType.UMD)]
|
|
public void GetValidMediaTypesTest(KnownSystem? knownSystem, MediaType? expected)
|
|
{
|
|
var actual = Validators.GetValidMediaTypes(knownSystem);
|
|
Assert.Contains(expected, actual);
|
|
}
|
|
|
|
[Fact]
|
|
public void CreateListOfSystemsTest()
|
|
{
|
|
int expected = Enum.GetValues(typeof(KnownSystem)).Length;
|
|
var actual = KnownSystemComboBoxItem.GenerateElements().ToList();
|
|
Assert.Equal(expected, actual.Count);
|
|
}
|
|
|
|
[Fact]
|
|
public void CreateListOfDrivesTest()
|
|
{
|
|
// TODO: Implement
|
|
Assert.True(true);
|
|
}
|
|
|
|
[Fact]
|
|
public void GetDiscTypeTest()
|
|
{
|
|
// TODO: Implement
|
|
Assert.True(true);
|
|
}
|
|
}
|
|
}
|