public void ShouldLoadSettingsFromConfigFileCorrectly() { const string settingInString = @" <healthMonitoring> <client name=""local.api"" enable=""true""> <ping endpoint=""http://v1.api.egi.local.rbidev.ds/a/entry/for/reporting/status"" interval=""5000"" timeout=""5000""> </ping> <Checker type=""Rbi.Property.HealthMonitoring.BasicHttpStatsChecker, Rbi.Property.HealthMonitoring"" /> <outputs> <file format=""json"" path=""c:\local.api.log"" maximumFileSize=""10MB"" when=""all"" /> <database connectionString="""" when=""all""/> <email from=""no-reply@healthmonitoring"" to=""[email protected],[email protected]"" when=""timeout,failure""/> <console when=""all""/> </outputs> </client> </healthMonitoring>"; XElement setting = XElement.Parse(settingInString); SettingLoader loader = new SettingLoader(null); HealthMonitoringSetting hmSetting = loader.Parse(""); Assert.AreEqual(1, hmSetting.Clients.Length); }