public void RemoveNull() { // Setup var sequence = InitializeSequence(); var set = new TestSet <SimpleType>(sequence); // Execute var result = set.Remove(a_entity: null); // Assert Assert.IsFalse(result); Assert.AreEqual(sequence.Length, set.Count); }
public void RemoveEntity() { // Setup var sequence = InitializeSequence(); var removedItem = sequence[1]; var set = new TestSet <SimpleType>(sequence); // Execute var result = set.Remove(removedItem); // Assert Assert.IsTrue(result); Assert.AreEqual(sequence.Length - 1, set.Count); }
public void RemoveNonexistingEntity() { // Setup var sequence = InitializeSequence(); var removedItem = new SimpleType { Name = "NoExisty", Price = 0m, Value = 1000000 }; var set = new TestSet <SimpleType>(sequence); // Execute var result = set.Remove(removedItem); // Assert Assert.IsFalse(result); Assert.AreEqual(sequence.Length, set.Count); }
public void RemoveNull() { // Setup var sequence = InitializeSequence(); var set = new TestSet<SimpleType>(sequence); // Execute var result = set.Remove(a_entity: null); // Assert Assert.IsFalse(result); Assert.AreEqual(sequence.Length, set.Count); }
public void RemoveNonexistingEntity() { // Setup var sequence = InitializeSequence(); var removedItem = new SimpleType { Name = "NoExisty", Price = 0m, Value = 1000000 }; var set = new TestSet<SimpleType>(sequence); // Execute var result = set.Remove(removedItem); // Assert Assert.IsFalse(result); Assert.AreEqual(sequence.Length, set.Count); }
public void RemoveEntity() { // Setup var sequence = InitializeSequence(); var removedItem = sequence[1]; var set = new TestSet<SimpleType>(sequence); // Execute var result = set.Remove(removedItem); // Assert Assert.IsTrue(result); Assert.AreEqual(sequence.Length - 1, set.Count); }