Ejemplo n.º 1
0
        public void ToArrayTest04()
        {
            HashSet <int> hashSet;

            int[] ints = new int[90];
            hashSet = HashSetFactory.Create(ints);
            this.ToArrayTest(hashSet);
        }
Ejemplo n.º 2
0
        public void RemoveNodeWithBothSubtreesTest06()
        {
            HashSet <int> hashSet;

            int[] ints = new int[90];
            hashSet = HashSetFactory.Create(ints);
            this.RemoveNodeWithBothSubtreesTest(hashSet, 0);
        }
        public void AddTest12()
        {
            HashSet <int> hashSet;

            int[] ints = new int[198];
            hashSet = HashSetFactory.Create(ints);
            this.AddTest(hashSet);
        }
Ejemplo n.º 4
0
        public void ToArrayTest03()
        {
            HashSet <int> hashSet;

            int[] ints = new int[0];
            hashSet = HashSetFactory.Create(ints);
            this.ToArrayTest(hashSet);
            PexAssert.IsNotNull((object)hashSet);
            PexAssert.AreEqual <int>(0, hashSet.Count);
            PexAssert.IsNotNull(hashSet.Comparer);
        }
        public void AddTest08()
        {
            HashSet <int> hashSet;

            int[] ints = new int[4];
            hashSet = HashSetFactory.Create(ints);
            this.AddTest(hashSet);
            PexAssert.IsNotNull((object)hashSet);
            PexAssert.AreEqual <int>(1, hashSet.Count);
            PexAssert.IsNotNull(hashSet.Comparer);
        }
Ejemplo n.º 6
0
        public void RemoveNodeWithBothSubtreesTest05()
        {
            HashSet <int> hashSet;

            int[] ints = new int[4];
            ints[0] = 8192;
            ints[1] = 4111;
            ints[2] = 8192;
            ints[3] = 8192;
            hashSet = HashSetFactory.Create(ints);
            this.RemoveNodeWithBothSubtreesTest(hashSet, 0);
        }
Ejemplo n.º 7
0
        public void RemoveNodeWithBothSubtreesTest04()
        {
            HashSet <int> hashSet;

            int[] ints = new int[4];
            ints[0] = 40668;
            ints[1] = 2113937320;
            ints[2] = 40668;
            ints[3] = 40668;
            hashSet = HashSetFactory.Create(ints);
            this.RemoveNodeWithBothSubtreesTest(hashSet, 0);
        }
        public void AddTest10()
        {
            HashSet <int> hashSet;

            int[] ints = new int[4];
            ints[0] = 229376;
            ints[1] = -2147254272;
            hashSet = HashSetFactory.Create(ints);
            this.AddTest(hashSet);
            PexAssert.IsNotNull((object)hashSet);
            PexAssert.AreEqual <int>(3, hashSet.Count);
            PexAssert.IsNotNull(hashSet.Comparer);
        }
        public void AddTest09()
        {
            HashSet <int> hashSet;

            int[] ints = new int[4];
            ints[0] = 57845396;
            ints[1] = 956301312;
            hashSet = HashSetFactory.Create(ints);
            this.AddTest(hashSet);
            PexAssert.IsNotNull((object)hashSet);
            PexAssert.AreEqual <int>(3, hashSet.Count);
            PexAssert.IsNotNull(hashSet.Comparer);
        }
        public void AddTest11()
        {
            HashSet <int> hashSet;

            int[] ints = new int[4];
            ints[0] = 704643072;
            ints[1] = -1442840576;
            ints[2] = int.MinValue;
            ints[3] = int.MinValue;
            hashSet = HashSetFactory.Create(ints);
            this.AddTest(hashSet);
            PexAssert.IsNotNull((object)hashSet);
            PexAssert.AreEqual <int>(3, hashSet.Count);
            PexAssert.IsNotNull(hashSet.Comparer);
        }