public void IntersectWith_Method()
        {
            multiSet = new MultiSet <char>();
            multiSet.Add('a');

            MultiSet <char> multiSets = multiSet.IntersectWith(collection);

            Assert.AreEqual(1, multiSets.Count);
            Assert.AreEqual(1, multiSets['a']);
        }
        public void IntersectMs()
        {
            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.IntersectWith(ms2);
            string output = "a, b";

            Assert.AreEqual(output, ms.ToString());
        }
        public void StringBuilder_IntersectWith_Method()
        {
            stringBuilderSet = new MultiSet <StringBuilder>();
            stringBuilderSet.Add(a);
            stringBuilderSet.Add(a);
            stringBuilderSet.Add(a);
            stringBuilderSet.Add(a);

            MultiSet <StringBuilder> multiSets = stringBuilderSet.IntersectWith(stringBuilderCollection);

            Assert.AreEqual(1, multiSets.Count);
            Assert.AreEqual(3, multiSets[a]);
        }