public async Task Can_Remove_value_from_IList() { var storeMembers = Factory.CreateList(); await storeMembers.ForEachAsync(x => List.AddAsync(x)); storeMembers.Remove(Factory.ExistingValue); await List.RemoveAsync(Factory.ExistingValue); var members = await List.ToListAsync <T>(); Factory.AssertListsAreEqual(members, storeMembers); }
public async Task Can_Remove_value_from_IList() { var storeMembers = Factory.CreateList(); await storeMembers.ForEachAsync(x => List.AddAsync(x)); var equalItem = new CustomType() { CustomId = 4 }; storeMembers.Remove(equalItem); await List.RemoveAsync(equalItem); var members = await List.ToListAsync(); Factory.AssertListsAreEqual(members, storeMembers); }