public void CollectionGetOccurrencesFindsOnlyOneOccurrenceOfCompletionItemWithSpecifiedName() { Assert.AreEqual(1, itemCollection.GetOccurrences("text")); }
public void ElementNameAttributeAppearsOnce() { int nameAttributeCount = elementAttributes.GetOccurrences("name"); Assert.AreEqual(1, nameAttributeCount, "Should be only one name attribute."); }