public void ToXmlExpectedReturnsXml()
        {
            var settings = new SettingsBaseMock("x", "y", "localhost");
            var result   = settings.ToXml();

            Assert.IsNotNull(result);
            Assert.IsInstanceOfType(result, typeof(XElement));
        }
        public void ToXmlExpectedSerializesEachProperty()
        {
            var settings = new SettingsBaseMock("x", "y", "localhost");

            var result = settings.ToXml();

            Assert.AreEqual(settings.SettingName, result.Name);
            Assert.AreEqual(settings.DisplayName, result.AttributeSafe("DisplayName"));
        }
Пример #3
0
        public void ToXmlExpectedSerializesEachProperty()
        {
            var settings = new SettingsBaseMock("x", "y", "localhost");

            var result = settings.ToXml();
            Assert.AreEqual(settings.SettingName, result.Name);
            Assert.AreEqual(settings.DisplayName, result.AttributeSafe("DisplayName"));
        }
Пример #4
0
 public void ToXmlExpectedReturnsXml()
 {
     var settings = new SettingsBaseMock("x", "y", "localhost");
     var result = settings.ToXml();
     Assert.IsNotNull(result);
     Assert.IsInstanceOfType(result, typeof(XElement));
 }