Exemple #1
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);
        }
Exemple #2
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);
        }
Exemple #3
0
        public void ContainsColumnNameNull(IDataGeneratorCollection col)
        {
            string dg = null;

            col.Contains(dg);
        }
Exemple #4
0
        public void ContainsColumnNull(IDataGeneratorCollection col)
        {
            DataColumn dg = null;

            col.Contains(dg);
        }
Exemple #5
0
        public void ContainsDataGeneratorNull(IDataGeneratorCollection col)
        {
            IDataGenerator dg = null;

            col.Contains(dg);
        }
Exemple #6
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();
        }