mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-21 00:14:15 +08:00
[Build]Fix broken FZEditor test after concurrent merges(#29282)
* no longer needed test * update
This commit is contained in:
parent
a370c17918
commit
b6fa827e78
@ -8,17 +8,6 @@ namespace UnitTestsFancyZonesEditor;
|
||||
[TestClass]
|
||||
public class DefaultLayoutsModelTests
|
||||
{
|
||||
[TestMethod]
|
||||
public void LayoutCapacityShouldBeNumberOfMonitorConfigurations()
|
||||
{
|
||||
var defaultLayoutsModel = new DefaultLayoutsModel();
|
||||
var expectedOptionCount = Enum.GetValues(typeof(MonitorConfigurationType)).Length;
|
||||
|
||||
var actualCapacity = defaultLayoutsModel.Layouts.Capacity;
|
||||
|
||||
Assert.AreEqual(expectedOptionCount, actualCapacity);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void OverridingLayoutClearsOldDefault()
|
||||
{
|
||||
@ -42,7 +31,7 @@ public class DefaultLayoutsModelTests
|
||||
defaultLayoutsModel.Set(firstLayout, MonitorConfigurationType.Horizontal);
|
||||
defaultLayoutsModel.Set(firstLayout, MonitorConfigurationType.Vertical);
|
||||
|
||||
Assert.AreEqual(defaultLayoutsModel.Layouts[(int)MonitorConfigurationType.Vertical], firstLayout);
|
||||
Assert.AreEqual(defaultLayoutsModel.Layouts[MonitorConfigurationType.Vertical], firstLayout);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
@ -51,7 +40,7 @@ public class DefaultLayoutsModelTests
|
||||
var defaultLayoutsModel = new DefaultLayoutsModel();
|
||||
GridLayoutModel firstLayout = new GridLayoutModel();
|
||||
CanvasLayoutModel secondLayout = new CanvasLayoutModel("steve");
|
||||
var restoredLayouts = new List<LayoutModel> { firstLayout, secondLayout };
|
||||
var restoredLayouts = new Dictionary<MonitorConfigurationType, LayoutModel> { { MonitorConfigurationType.Horizontal, firstLayout }, { MonitorConfigurationType.Vertical, secondLayout } };
|
||||
defaultLayoutsModel.Restore(restoredLayouts);
|
||||
|
||||
CollectionAssert.AreEqual(defaultLayoutsModel.Layouts, restoredLayouts);
|
||||
|
Loading…
Reference in New Issue
Block a user