public void DeleteElementTest()
 {
     Multiplicity<int> many = new Multiplicity<int>();
     many.AddElement(1);
     many.DeleteELement(1);
     Assert.IsTrue(many.IsEmpty());
 }
 public void UnificationTest()
 {
     Multiplicity<int> many = new Multiplicity<int>();
     many.AddElement(1);
     Multiplicity<int> many2 = new Multiplicity<int>();
     many2.Unification(many);
     Assert.IsFalse(many2.IsEmpty());
 }
Esempio n. 3
0
        public void RemovingOfElementTest()
        {
            Multiplicity <int> multiplicity = new Multiplicity <int>();

            multiplicity.Insert(1);
            multiplicity.RemovingOfElement(1);
            Assert.IsTrue(multiplicity.IsEmpty());
        }
Esempio n. 4
0
        public void UnionTest()
        {
            Multiplicity <int> multiplicity1 = new Multiplicity <int>();

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

            result.Union(multiplicity1, multiplicity2);
            Assert.IsFalse(result.IsEmpty());
        }
Esempio n. 5
0
        public void Intersection1Test()
        {
            Multiplicity <int> multiplicity1 = new Multiplicity <int>();

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

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

            result.Insert(1234);
            result.Intersection(multiplicity1, multiplicity2);
            Assert.IsTrue(result.IsEmpty());
        }
 public void EmptyTest()
 {
     Multiplicity<int> many = new Multiplicity<int>();
     Assert.IsTrue(many.IsEmpty());
 }
Esempio n. 7
0
        public void DetectionOfEmptinessTest()
        {
            Multiplicity <int> multiplicity = new Multiplicity <int>();

            Assert.IsTrue(multiplicity.IsEmpty());
        }