public void AddsConfigExtensionWhenNoExtensionIsSpecified() { var sut = new NetConfigManager(); Configuration config = sut.LoadFromFile(GetPath("WithConnectionString.exe")); config.ConnectionStrings.ConnectionStrings[0].ConnectionString.ShouldBe("From App Config"); }
public void LoadsConfigurationFromExeConfigFile() { var sut = new NetConfigManager(); Configuration config = sut.LoadFromFile(GetPath("WithConnectionString.exe.config")); config.ConnectionStrings.ConnectionStrings[0].ConnectionString.ShouldBe("From App Config"); }
public void ThrowsIfPathDoesNotExist() { var sut = new NetConfigManager(); sut.LoadFromFile(GetPath("FileDoesNotExist.config")); }
public void ThrowsIfNullPath() { var sut = new NetConfigManager(); sut.LoadFromFile(null); }