Exemple #1
0
		public void IsEmpty_SetNoValue_ReturnsTrue() {
			var context = new Context("context");
			var prop = new Property<bool>("propertyname", context, CultureInfo.InvariantCulture);
			Assert.IsTrue(prop.IsEmpty());
		}
Exemple #2
0
		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());
		}
Exemple #3
0
		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());
		}