mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
24 lines
544 B
C#
24 lines
544 B
C#
|
|
using System;
|
|||
|
|
using DICUI.Data;
|
|||
|
|
using DICUI.Utilities;
|
|||
|
|
using Xunit;
|
|||
|
|
|
|||
|
|
namespace DICUI.Test.Utilities
|
|||
|
|
{
|
|||
|
|
public class DICCommandExtensionsTest
|
|||
|
|
{
|
|||
|
|
[Fact]
|
|||
|
|
public void NameTest()
|
|||
|
|
{
|
|||
|
|
var values = (DICCommand[])Enum.GetValues(typeof(DICCommand));
|
|||
|
|
foreach(var command in values)
|
|||
|
|
{
|
|||
|
|
string expected = Converters.DICCommandToString(command);
|
|||
|
|
string actual = command.Name();
|
|||
|
|
|
|||
|
|
Assert.Equal(expected, actual);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|