public void StringBuilder_ExceptWith_Method() { stringBuilderSet = new MultiSet <StringBuilder>(); stringBuilderSet.Add(a); stringBuilderSet.Add(b); stringBuilderSet.Add(c); MultiSet <StringBuilder> multiSets = stringBuilderSet.ExceptWith(stringBuilderCollection); Assert.AreEqual(0, multiSets.Count); }
public void ExceptMs() { char[] chars = new char[] { 'a', 'b', 'c', 'd', 'e' }; var ms = new MultiSet <char>(chars); char[] chars2 = new char[] { 'a', 'b', 'x' }; var ms2 = new MultiSet <char>(chars2); ms = ms.ExceptWith(ms2); string output = "c, d, e"; Assert.AreEqual(output, ms.ToString()); }
public void ExceptWith_Method() { multiSet = new MultiSet <char>(); multiSet.Add('a'); multiSet.Add('b'); multiSet.Add('d'); multiSet.Add('e'); multiSet.Add('f'); MultiSet <char> multiSets = multiSet.ExceptWith(collection); Assert.AreEqual(3, multiSets.Count); }