public void GlobalList_RemoveTwice_Succeeded() { const string globalListName = "Aggregator - UserParameters"; const string testItem = "myParameter=30"; var repository = new WorkItemRepositoryMock(DefaultGlobalLists); repository.RemoveItemFromGlobalList(globalListName, testItem); repository.RemoveItemFromGlobalList(globalListName, testItem); var gl = repository.GetGlobalList(globalListName).ToArray(); Assert.IsNotNull(gl); Assert.AreEqual(0, gl.Length); }
public void GlobalList_RemoveNonExistingList_Succeeded() { const string globalListName = "Aggregator - DoesNotExists"; const string testItem = "anything"; var repository = new WorkItemRepositoryMock(DefaultGlobalLists); repository.RemoveItemFromGlobalList(globalListName, testItem); var gl = repository.GetGlobalList(globalListName).ToArray(); Assert.IsNotNull(gl); Assert.AreEqual(0, gl.Length); }