public void PropertyNotExistsTest() { var p = new CMSProperties(_database); p.DeleteProperty(TestPropName); Assert.IsFalse(p.PropertyExists(TestPropName)); }
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); }
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)); }