mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
* 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 * Refactored KnownSystem combobox management - created KnownSystemComboBoxItem to manage both header and system items - totally rewrote KnownSystem category (through KnownSystemCategory enum and markers) - fixed null access in EnsureDiscInformation caused by null _drives - rewrote cmb_SystemType management to use new classes * - created Drive class to keep drive letters, volume label and is floppy flag altogether - changed all the code to use the new Drive class in combobox and in DumpEnvironment * fixed retrieval of value from cmb_KnownSystem combobox * removed OrderedDictionary, not needed anymore
22 lines
426 B
C#
22 lines
426 B
C#
using DICUI.Utilities;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
|
|
namespace DICUI.Test.Utilities
|
|
{
|
|
public class DriveTest
|
|
{
|
|
[Fact]
|
|
public void DriveConstructorsTest()
|
|
{
|
|
Assert.True(Drive.Floppy('a').IsFloppy);
|
|
Assert.False(Drive.Optical('d', "test").IsFloppy);
|
|
}
|
|
}
|
|
}
|