public void CreateDateTimeKeywordField() { FieldAdapter keyword = FieldAdapter.CreateKeywordField("Name", DateTime.Now); Assert.AreEqual("Name", keyword.Name); Assert.IsFalse(keyword.IsTokenized); Assert.IsTrue(keyword.IsIndexed); Assert.IsTrue(keyword.IsStored); }
public void CreateKeywordField() { FieldAdapter keyword = FieldAdapter.CreateKeywordField("Name", "Value"); Assert.AreEqual("Name", keyword.Name); Assert.AreEqual("Value", keyword.StringValue); Assert.IsFalse(keyword.IsTokenized); Assert.IsTrue(keyword.IsIndexed); Assert.IsTrue(keyword.IsStored); }