public void Test1_Test2Result_Null() { IResultConnectionString expected = new Test1_ResultConnectionString(); var conf = new ConfigurationManager(ConfigurationManager.GetAssemblyPath(typeof(TestConfigurationManager))); var result = conf.ConnectionStrings.ConnectionStrings[expected.ConnectionStringName]; Assert.IsNull(result); }
public void Test1_Test2Result_Ok() { IResultConnectionString expected = new Test1_ResultConnectionString(); var conf = new ConfigurationManager(ConfigurationManager.GetAssemblyPath(typeof(Test1_ResultAppKey))); var result = conf.ConnectionStrings.ConnectionStrings[expected.ConnectionStringName]; Assert.AreEqual(expected.Result, result.ConnectionString); }