public void IsAttribute(string word, bool expected) { var result = instance.IsAttribute(new TestWordItem(word)); Assert.AreEqual(expected, result); result = instance.IsAttribute(new TestWordItem("Unknown", word)); Assert.AreEqual(expected, result); }
public void IsAttribute(string word, bool expected) { var result = instance.IsAttribute(new TestWordItem { Text = word }); Assert.AreEqual(expected, result); result = instance.IsAttribute(new TestWordItem { Text = "Unknown", Stemmed = word }); Assert.AreEqual(expected, result); }