public void SimpleLoadAndModifyTest()
        {
            using (var src = new XmlFileConfigSource<BasicTypesSampleWithoutAttr>()
                .LoadFile(paths.Find(TEST_FILE_NAME)))
            {
                bool flag = false;
                var cfg = src.Get();

                src.Reloaded += x =>
                {
                    cfg = x;
                    cfg.AnIntegral.Should().Be(43);
                    Assert.AreEqual(43.43, cfg.AFloat, 0.001);
                    flag = true;
                };

                XmlConfigSourceFixture.TestCreatedSimpleSample(cfg);

                File.WriteAllText(Path.Combine(currentDirectory, TEST_FILE_NAME), SAMPLE_XML);

                long time = DateTime.Now.Ticks;
                while (!flag && new TimeSpan(DateTime.Now.Ticks - time).TotalSeconds < 3) ;

                flag.Should().Be.True();
            }
        }
 public void SimpleLoadTest()
 {
     using (var src = new XmlFileConfigSource<BasicTypesSampleWithoutAttr>())
     {
         var cfg = src.LoadFile(paths.Find(TEST_FILE_NAME)).Get();
         XmlConfigSourceFixture.TestCreatedSimpleSample(cfg);
     }
 }