public void IsEmpty_SetNoValue_ReturnsTrue() { var context = new Context("context"); var prop = new Property<bool>("propertyname", context, CultureInfo.InvariantCulture); Assert.IsTrue(prop.IsEmpty()); }
public void IsEmpty_SetValueToContent_ReturnsFalse() { var context = new Context("context"); var prop = new Property<string>("propertyname", context, CultureInfo.InvariantCulture); prop.Value = "Hello world"; Assert.IsFalse(prop.IsEmpty()); }
public void IsEmpty_SetStringToEmpty_ReturnsTrue() { var context = new Context("context"); var prop = new Property<string>("propertyname", context, CultureInfo.InvariantCulture); prop.Value = string.Empty; Assert.IsTrue(prop.IsEmpty()); }