コード例 #1
0
 public void CollectionGetOccurrencesFindsOnlyOneOccurrenceOfCompletionItemWithSpecifiedName()
 {
     Assert.AreEqual(1, itemCollection.GetOccurrences("text"));
 }
コード例 #2
0
        public void ElementNameAttributeAppearsOnce()
        {
            int nameAttributeCount = elementAttributes.GetOccurrences("name");

            Assert.AreEqual(1, nameAttributeCount, "Should be only one name attribute.");
        }