public void IsNotProperSupersetMs() { char[] chars = new char[] { 'a', 'b', 'c', 'd', 'e' }; var ms = new MultiSet <char>(chars); char[] chars2 = new char[] { 'a', 'b', 'c', 'd', 'e' }; var ms2 = new MultiSet <char>(chars2); Assert.AreEqual(false, ms.IsProperSupersetOf(ms2)); }
public void StringBuilder_IsProperSupersetOf_Method() { stringBuilderSet = new MultiSet <StringBuilder>(); stringBuilderSet.Add(a, 3); stringBuilderSet.Add(b, 2); stringBuilderSet.Add(c); stringBuilderSet.Add(c, 5); bool isProperSupersetOf = stringBuilderSet.IsProperSupersetOf(stringBuilderCollection); Assert.IsTrue(isProperSupersetOf); }
public void IsProperSupersetOf_Method() { multiSet = new MultiSet <char>(); multiSet.Add('a', 3); multiSet.Add('b', 2); multiSet.Add('c'); multiSet.Add('x', 5); bool isProperSupersetOf = multiSet.IsProperSupersetOf(collection); Assert.IsTrue(isProperSupersetOf); }