public void IntersectionTest()
 {
     Multiplicity<int> many = new Multiplicity<int>();
     many.AddElement(1);
     Multiplicity<int> many2 = new Multiplicity<int>();
     Multiplicity<int> result = many.Intersection(many2);
     Assert.IsTrue(result.IsEmpty());
 }
Exemple #2
0
        public void Intersection2Test()
        {
            Multiplicity <int> multiplicity1 = new Multiplicity <int>();

            multiplicity1.Insert(1);
            Multiplicity <int> multiplicity2 = new Multiplicity <int>();

            multiplicity2.Insert(1);
            Multiplicity <int> result = new Multiplicity <int>();

            result.Intersection(multiplicity1, multiplicity2);
            Assert.IsFalse(result.IsEmpty());
        }