mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-15 05:36:04 +00:00
* Update commented code * Add Parameters class This class is currently unused, but represents a set of parameters that can be passed to and from any given method. It has some copied/modified code from Validators.cs, for the time being due to the current overlap. * Add better documentation * Add and use DICFlag enumeration * Port more things to Parameter-specific version * Add commented code for later * Added new options (#90) * Split type combobox into system combobox and disc type combobox * corrected indentation for xaml file * fixed merge with head * fixed format * fixed issues for PR, added KnownSystem.CUSTOM * removed Updater.cs which ended by error in commit * fixed GetOuptutName() for new drive/system combobox * added 4 new options: quiet mode, paranoid mode, disable media type detect and c2 reread amount * added default C2 reread tries to config * fixed issues for PR * removed commented leftover * Update commented code * Add Parameters class This class is currently unused, but represents a set of parameters that can be passed to and from any given method. It has some copied/modified code from Validators.cs, for the time being due to the current overlap. * Add better documentation * Add and use DICFlag enumeration * Port more things to Parameter-specific version * Add commented code for later * Use Parameters object * Fix dumping process * Cleanup Validators
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);
|
|
}
|
|
}
|
|
}
|
|
}
|