Example #1
0
        public void AddAndGetItemColumnName(IDataGeneratorCollection col)
        {
            int count = col.Count;

            col.Add(factory.Binary);
            Assert.AreEqual(factory.Binary, col[factory.Binary.Column.ColumnName]);
        }
Example #2
0
        public void AddAndCheckByDataGenerator(IDataGeneratorCollection col)
        {
            int count = col.Count;

            col.Add(factory.Binary);
            Assert.IsTrue(col.Contains(factory.Binary));
            Assert.AreEqual(count + 1, col.Count);
        }
Example #3
0
        public void AddAndRemoveByColumnName(IDataGeneratorCollection col)
        {
            int count = col.Count;

            col.Add(factory.Binary);
            col.Remove(factory.Binary.Column.ColumnName);
            Assert.IsTrue(!col.Contains(factory.Binary));
            Assert.AreEqual(count, col.Count);
        }
Example #4
0
        public void Add()
        {
            IDataGenerator gen = this.factory.GetRandomGenerator();

            if (col.Contains(gen))
            {
                try
                {
                    Console.WriteLine("Add({0}) - duplicate", gen);
                    col.Add(gen);
                }
                catch (ArgumentException)
                {}
            }
            else
            {
                Console.WriteLine("Add({0})", gen);
                int count = col.Count;
                col.Add(gen);
                oracle.Add(gen);
                Assert.AreEqual(count + 1, col.Count);
            }
            this.Check();
        }
Example #5
0
 public void AddDuplicate(IDataGeneratorCollection col)
 {
     col.Add(factory.Binary);
     col.Add(factory.Binary);
 }
Example #6
0
 public void AddNull(IDataGeneratorCollection col)
 {
     col.Add(null);
 }