Example #1
0
        public void PropertyNotExistsTest()
        {
            var p = new CMSProperties(_database);

            p.DeleteProperty(TestPropName);
            Assert.IsFalse(p.PropertyExists(TestPropName));
        }
Example #2
0
        public void GetPropertyStringDefaultTest()
        {
            var p = new CMSProperties(_database);

            p.DeleteProperty(TestPropName);
            var testValue = Guid.NewGuid().ToString();
            var s         = p.GetProperty(TestPropName, testValue);

            Assert.AreEqual(s, testValue);
        }
Example #3
0
        public void DeletePropertyTest()
        {
            var p         = new CMSProperties(_database);
            var testValue = Guid.NewGuid().ToString();

            p.SaveProperty(TestPropName, testValue);
            Assert.IsTrue(p.PropertyExists(TestPropName));

            p.DeleteProperty(TestPropName);
            Assert.IsFalse(p.PropertyExists(TestPropName));
        }