Example #1
0
        public void TestFindAttributeByName()
        {
            Assert.IsNull(_root.FindAttributeByName(AttributeName), "FindAttributeByName (no attribute)");
            Assert.IsNull(_header.FindAttributeByName(AttributeName), "FindAttributeByName (no attribute)");
            IResultAttribute attribute = new FormattedAttribute <string, int>(AttributeName, 512);

            _header.Attributes.Add(attribute);
            Assert.AreSame(attribute, _header.FindAttributeByName(AttributeName), "FindAttributeByName");
            Assert.IsNull(_header.FindAttributeByName("MyDummyName"), "FindAttributeByName (not listed)");
        }
Example #2
0
 public void TestFindAttributeByNameNull()
 {
     _root.FindAttributeByName(null);
 }