Exemple #1
0
        public void AddDatabaseObjectExitsRuleTest_Failure()
        {
            var options = new TestGeneratorOptions();

            Assert.Throws <ArgumentNullException>(() =>
                                                  options.AddDatabaseObjectExitsRule(null, DatabaseObjectType.StoredProcedure));
        }
Exemple #2
0
        public void AddDatabaseObjectExitsRuleTest_Successful()
        {
            var options = new TestGeneratorOptions();

            options.AddDatabaseObjectExitsRule(new string[] { "sp1", "sp2" }, DatabaseObjectType.StoredProcedure);

            Assert.NotNull(options);
        }