internal virtual PropertyContainer_Accessor CreatePropertyContainer_Accessor()
        {
            // TODO: Instantiate an appropriate concrete class.
            PropertyContainer_Accessor target = null;

            return(target);
        }
 public void GetPropertyValueTest()
 {
     PrivateObject param0 = CreateIniElement();
     var target = new PropertyContainer_Accessor(param0);
     string key = "name";
     string expected = "values";
     string actual;
     actual = target.GetPropertyValue(key);
     Assert.AreEqual(expected, actual);
 }
        public void GetPropertyValueTest()
        {
            PrivateObject param0   = CreateIniElement();
            var           target   = new PropertyContainer_Accessor(param0);
            string        key      = "name";
            string        expected = "values";
            string        actual;

            actual = target.GetPropertyValue(key);
            Assert.AreEqual(expected, actual);
        }
        public void SetPropertyValueTest()
        {
            XNamespace xNamespace = "urn:nhibernate-configuration-2.2";
            PrivateObject param0 = CreateIniElement();
            var target = new PropertyContainer_Accessor(param0);
            string key = "newName";
            string value = "newValue";
            target.SetPropertyValue(key, value);

            IEnumerable<XElement> property = from prop in target.settingElement.Elements(xNamespace + "property")
                                             where prop.Attribute("name").Value == key
                                             select prop;

            XElement ne = property.SingleOrDefault();
            Assert.AreEqual(value, ne.Value);
        }
        public void GetPropertyValueTest()
        {
            PrivateObject param0 = CreateIniElement();
            var target = new PropertyContainer_Accessor(param0);
            string key = "name";
            string expected = "values";
            string actual;
            actual = target.GetPropertyValue(key);
            Assert.AreEqual(expected, actual);1111
        }

        /// <summary>
        ///A test for SetPropertyValue
        ///</summary>
        [TestMethod]
        [DeploymentItem("Ornament.Util.dll")]
        public void SetPropertyValueTest()
        {
            XNamespace    xNamespace = "urn:nhibernate-configuration-2.2";
            PrivateObject param0     = CreateIniElement();
            var           target     = new PropertyContainer_Accessor(param0);
            string        key        = "newName";
            string        value      = "newValue";

            target.SetPropertyValue(key, value);

            IEnumerable <XElement> property = from prop in target.settingElement.Elements(xNamespace + "property")
                                              where prop.Attribute("name").Value == key
                                              select prop;

            XElement ne = property.SingleOrDefault();

            Assert.AreEqual(value, ne.Value);
        }