public void NotOverlapsMs() { char[] chars = new char[] { 'a', 'a', 'b', 'c', 'd', 'e' }; var ms = new MultiSet <char>(chars); char[] testChar = new char[] { 'x' }; Assert.AreEqual(false, ms.Overlaps(testChar)); }
public void StringBuilder_Overlaps_Method() { stringBuilderSet = new MultiSet <StringBuilder>(); stringBuilderSet.Add(a); stringBuilderSet.Add(c, 5); stringBuilderSet.Add(b, 10); bool isOverlaps = stringBuilderSet.Overlaps(stringBuilderCollection); Assert.IsTrue(isOverlaps); }
public void Overlaps_Method() { multiSet = new MultiSet <char>(); multiSet.Add('a'); multiSet.Add('x', 5); multiSet.Add('z', 10); bool isOverlaps = multiSet.Overlaps(collection); Assert.IsTrue(isOverlaps); }