public void StringBuilder_IsSubsetOf_Method() { stringBuilderSet = new MultiSet <StringBuilder>(); stringBuilderSet.Add(a); stringBuilderSet.Add(b); bool isSubset = stringBuilderSet.IsSubsetOf(stringBuilderCollection); Assert.IsTrue(isSubset); }
public void IsNotSubsetMs() { 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); Assert.AreEqual(false, ms2.IsSubsetOf(ms)); }
public void IsSubsetOf_Method() { multiSet = new MultiSet <char>(); multiSet.Add('a'); multiSet.Add('b'); bool isSubset = multiSet.IsSubsetOf(collection); Assert.IsTrue(isSubset); }