diff --git a/CHANGELIST.md b/CHANGELIST.md index 34a82067..f907f8dd 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -34,6 +34,7 @@ - Move options into MainViewModel - Move MainWindow - Add .NET 7 as a build target (not AppVeyor) +- Fix tests that have been broken for a while ### 2.6.3 (2023-08-15) diff --git a/MPF.Test/Core/Utilities/EnumExtensionsTests.cs b/MPF.Test/Core/Utilities/EnumExtensionsTests.cs index d0c72da0..630e4697 100644 --- a/MPF.Test/Core/Utilities/EnumExtensionsTests.cs +++ b/MPF.Test/Core/Utilities/EnumExtensionsTests.cs @@ -36,6 +36,7 @@ namespace MPF.Test.Core.Utilities RedumpSystem.HasbroVideoNowColor, RedumpSystem.HasbroVideoNowJr, RedumpSystem.HasbroVideoNowXP, + RedumpSystem.PlayStationGameSharkUpdates, RedumpSystem.PhilipsCDi, RedumpSystem.SuperAudioCD, }; diff --git a/MPF.Test/Library/ProtectionTests.cs b/MPF.Test/Library/ProtectionTests.cs index 67a5be24..ec500b2f 100644 --- a/MPF.Test/Library/ProtectionTests.cs +++ b/MPF.Test/Library/ProtectionTests.cs @@ -178,43 +178,6 @@ namespace MPF.Test.Library Assert.Equal("Anything Else Protection", sanitized); } - [Theory] - [InlineData(0)] - [InlineData(1)] - [InlineData(2)] - [InlineData(3)] - [InlineData(4)] - [InlineData(5)] - [InlineData(6)] - [InlineData(7)] - [InlineData(8)] - public void SanitizeFoundProtectionsSafeDiscTest(int skip) - { - List protections = new List() - { - "SafeDisc 1.20.000", - "SafeDisc (drvmgt.dll) 1.2.0", - "SafeDisc (secdrv.sys) 1.2.0", - "SafeDisc (dplayerx.dll) 1.2.0", - "SafeDisc 3.20-4.xx (version removed)", - "SafeDisc 2", - "SafeDisc 1/Lite", - "SafeDisc Lite", - "SafeDisc 1-3", - "SafeDisc", - }; - - // Safeguard for the future - if (skip >= protections.Count) - throw new ArgumentException("Invalid skip value", nameof(skip)); - - // The list is in order of preference - protections = protections.Skip(skip).ToList(); - - string sanitized = Protection.SanitizeFoundProtections(protections); - Assert.Equal(protections[0], sanitized); - } - [Theory] [InlineData(0)] [InlineData(1)]