public void CreateTextField() { FieldAdapter text = FieldAdapter.CreateTextField("Name", "Value"); Assert.AreEqual("Name", text.Name); Assert.AreEqual("Value", text.StringValue); Assert.IsTrue(text.IsTokenized); Assert.IsTrue(text.IsIndexed); Assert.IsTrue(text.IsStored); }
public void CreateReaderTextField() { TextReader textReader = new StringReader(string.Empty); FieldAdapter text = FieldAdapter.CreateTextField("Name", textReader); Assert.AreEqual("Name", text.Name); Assert.AreSame(textReader, text.ReaderValue); Assert.IsTrue(text.IsTokenized); Assert.IsTrue(text.IsIndexed); Assert.IsFalse(text.IsStored); }