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)"); }
public void TestFindAttributeByNameNull() { _root.FindAttributeByName(null); }