public void Load() { var configLoader = new XmlConfigBuilder(ResourceType.File, "SmartSqlMapConfig.xml"); var config = configLoader.Build(); Assert.NotNull(config); }
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); } }
public void Load() { var configLoader = new XmlConfigBuilder(ResourceType.File, "SmartSqlMapConfig.xml"); var config = configLoader.Build(null); }