[Build]Fix broken FZEditor test after concurrent merges(#29282)

* no longer needed test

* update
This commit is contained in:
Seraphima Zykova 2023-10-18 13:27:39 +02:00 committed by GitHub
parent a370c17918
commit b6fa827e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);