Ejemplo n.º 1
0
 public void should_save_configuration()
 {
     var config = new Configuration();
     var path = Guid.NewGuid().ToString();
     var configurationLoader = new ConfigurationLoader();
     configurationLoader.Save(config, path);
     var xml = File.ReadAllText(path);
     Assert.That(xml, Is.EqualTo("<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Configuration xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" />"));
 }