public void Load()
        {
            var configLoader = new XmlConfigBuilder(ResourceType.File, "SmartSqlMapConfig.xml");
            var config       = configLoader.Build();

            Assert.NotNull(config);
        }
示例#2
0
 public void LoadFailTest()
 {
     try
     {
         var configLoader = new XmlConfigBuilder(ResourceType.File, "SmartSqlMapConfig2.xml");
         var config       = configLoader.Build();
     }
     catch (SmartSqlException ex)
     {
         Assert.StartsWith("Read Nodes must have Weight attribute", ex.Message);
     }
 }
示例#3
0
 public void Load()
 {
     var configLoader = new XmlConfigBuilder(ResourceType.File, "SmartSqlMapConfig.xml");
     var config       = configLoader.Build(null);
 }