public void TestDuplicateIgnore()
 {
     var configurator = new RepositoryXmlConfigurator();
     configurator.Configure(Directory.GetCurrentDirectory() + @"\sqlitem.config", false);
     var manager = configurator.ItemManager;
     Assert.AreEqual(4, manager.ItemCount);
     var item = manager.Get("GetSchoolsByAreaID");
     Assert.AreEqual("GetSchoolsByAreaID", item.Name);
     Assert.AreEqual("select * from experiment where id in @id", RemoveWhitespace(item.Sql));
     Assert.Throws<MySqlException>(() => item.OpenConnection("aa", "22"));
     item = manager.Get("ABTest1");
     Assert.AreEqual("ABTest1", item.Name);
     Assert.AreEqual("select * from experiment where id in @id", item.Sql);
     item = manager.Get("ABTest3");
     Assert.AreEqual("ABTest3", item.Name);
     Assert.AreEqual("select * from experiment where id in @id", RemoveWhitespace(item.Sql));
 }
 public void TestDuplicateThrow()
 {
     var configurator = new RepositoryXmlConfigurator();
     Assert.Throws<SqlItemDuplicateException>(() => configurator.Configure());
 }