public void MultiSetEqualsMs() { char[] chars = new char[] { 'a', 'a', 'b', 'c', 'd', 'e' }; var ms = new MultiSet <char>(chars); char[] chars2 = new char[] { 'e', 'd', 'c', 'b', 'a', 'a' }; var ms2 = new MultiSet <char>(chars); Assert.AreEqual(true, ms.MultiSetEquals(ms2)); }
public void StringBuilder_MultiSetEquals_Method() { stringBuilderSet = new MultiSet <StringBuilder>(); stringBuilderSet.Add(a, 3); stringBuilderSet.Add(b, 2); stringBuilderSet.Add(c); bool isEqual = stringBuilderSet.MultiSetEquals(stringBuilderCollection); Assert.IsTrue(isEqual); }
public void MultiSetEquals_Method() { multiSet = new MultiSet <char>(); multiSet.Add('a', 2); multiSet.Add('b', 2); multiSet.Add('c'); bool isEqual = multiSet.MultiSetEquals(collection); Assert.IsTrue(isEqual); }