mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Adjusting settings to leverage base class (#5127)
* renaming / deleting file * adding in base class Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
@@ -45,8 +45,8 @@ namespace ViewModelTests
|
||||
viewModel.SearchTypePreference = "SearchOptionsAreNotValidated";
|
||||
|
||||
Assert.AreEqual(sendCallbackMock.TimesSent, 2);
|
||||
Assert.IsTrue(mockSettings.properties.search_result_preference == "SearchOptionsAreNotValidated");
|
||||
Assert.IsTrue(mockSettings.properties.search_type_preference == "SearchOptionsAreNotValidated");
|
||||
Assert.IsTrue(mockSettings.Properties.search_result_preference == "SearchOptionsAreNotValidated");
|
||||
Assert.IsTrue(mockSettings.Properties.search_type_preference == "SearchOptionsAreNotValidated");
|
||||
}
|
||||
|
||||
public void AssertHotkeySettings(HotkeySettings setting, bool win, bool ctrl, bool alt, bool shift, int code)
|
||||
@@ -85,7 +85,7 @@ namespace ViewModelTests
|
||||
Assert.AreEqual(4, sendCallbackMock.TimesSent);
|
||||
|
||||
AssertHotkeySettings(
|
||||
mockSettings.properties.open_powerlauncher,
|
||||
mockSettings.Properties.open_powerlauncher,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
@@ -93,7 +93,7 @@ namespace ViewModelTests
|
||||
(int)Windows.System.VirtualKey.S
|
||||
);
|
||||
AssertHotkeySettings(
|
||||
mockSettings.properties.open_file_location,
|
||||
mockSettings.Properties.open_file_location,
|
||||
false,
|
||||
true,
|
||||
false,
|
||||
@@ -101,7 +101,7 @@ namespace ViewModelTests
|
||||
(int)Windows.System.VirtualKey.A
|
||||
);
|
||||
AssertHotkeySettings(
|
||||
mockSettings.properties.open_console,
|
||||
mockSettings.Properties.open_console,
|
||||
false,
|
||||
false,
|
||||
true,
|
||||
@@ -109,7 +109,7 @@ namespace ViewModelTests
|
||||
(int)Windows.System.VirtualKey.D
|
||||
);
|
||||
AssertHotkeySettings(
|
||||
mockSettings.properties.copy_path_location,
|
||||
mockSettings.Properties.copy_path_location,
|
||||
false,
|
||||
false,
|
||||
false,
|
||||
@@ -127,8 +127,8 @@ namespace ViewModelTests
|
||||
|
||||
Assert.AreEqual(1, sendCallbackMock.TimesSent);
|
||||
|
||||
Assert.IsTrue(mockSettings.properties.override_win_r_key);
|
||||
Assert.IsFalse(mockSettings.properties.override_win_s_key);
|
||||
Assert.IsTrue(mockSettings.Properties.override_win_r_key);
|
||||
Assert.IsFalse(mockSettings.Properties.override_win_s_key);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
@@ -139,7 +139,7 @@ namespace ViewModelTests
|
||||
|
||||
// Assert
|
||||
Assert.AreEqual(1, sendCallbackMock.TimesSent);
|
||||
Assert.IsTrue(mockSettings.properties.disable_drive_detection_warning);
|
||||
Assert.IsTrue(mockSettings.Properties.disable_drive_detection_warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user