public void SymmetricExceptWith(IEnumerable <T> other) { var otherHashSet = new HashSet <T>(other); var first = _Letter.Where(n => !otherHashSet.Contains(n)); var second = otherHashSet.Where(n => !_Letter.Contains(n)); _Letter = LetterSimpleSetFactoryBuilder.Factory.GetDefault(first.Concat(second)); }
private void SetUp(ISet <string> FakeCollection) { _LetterSimpleSetSubstitute.GetEnumerator().Returns(FakeCollection.GetEnumerator()); _LetterSimpleSetSubstitute.Contains(Arg.Any <string>()) .Returns(argument => FakeCollection.Contains(argument[0])); _LetterSimpleSetSubstitute.Count.Returns(FakeCollection.Count); }