public void ClearTabs() { Given_A_TextFormatter(); _sut.SetTab(10); _sut.SetTab(20); _sut.SetTab(20); Assert.AreEqual(3, _sut.Tabs.Count()); var tab10 = _sut.Tabs.Where(o => o.Position == 10).ToArray()[0]; var tab20_1 = _sut.Tabs.Where(o => o.Position == 20).ToArray()[0]; var tab20_2 = _sut.Tabs.Where(o => o.Position == 20).ToArray()[1]; _sut.ClearTabs(new TextFormatter.Tab[] { new TextFormatter.Tab(5), tab10 }); Assert.AreEqual(2, _sut.Tabs.Count()); _sut.ClearTabs(new TextFormatter.Tab[] { tab20_1 }); Assert.AreEqual(1, _sut.Tabs.Count()); }