public void CQValueElement_GetCaml_ReturnsCorrectCaml() { CQValueElement value = new CQValueElement("val", CQValueType.Text.ToString()); CQValueElement value2 = new CQValueElement("val2", CQValueType.DateTime.ToString(), true); Expected = "<Value Type='Text'>val</Value>"; Assert.That(value.GetCaml(), Is.EqualTo(Expected)); Expected = "<Value Type='DateTime' IncludeTimeValue='TRUE'>val2</Value>"; Assert.That(value2.GetCaml(), Is.EqualTo(Expected)); }
public ICQOperatorElementValue Value(CQValueElement element) { _elements.Add(element); return this; }