public void SymmetricExceptWith () { var set = new SortedSet<int> { 1, 3, 5, 7, 9 }; set.SymmetricExceptWith (new [] { 5, 7, 3, 7, 11, 7, 5, 2 }); Assert.IsTrue (set.SequenceEqual (new [] { 1, 2, 9, 11 })); }
public void SymetricExceptWithItself () { var set = new SortedSet<int> (new [] { 1, 5 }); set.SymmetricExceptWith (set); Assert.AreEqual (0, set.Count); }
public void SymmetricExceptWith_Null () { var set = new SortedSet<int> (); set.SymmetricExceptWith (null); }