public void Single_Remove_Ignored() { // Property exists, but not in current set _intsAndString.Exclude(x => x.Int1); // Nothing should happen Assert.AreEqual(_intsAndString.Names.Count(), 0, "Expected the set to be empty"); }
public void RemoveFromExisting() { // Start with string included AddToExisting(); // Remove it _intsAndString.Exclude(x => x.StringProp); // String should now *not* be included Assert.IsFalse(_intsAndString.Names.Any(x => x.Equals("StringProp")), "Contained StringProp when it should have been removed"); }