public void EmptyNode_HasAttribute_ReturnsFalse(Fb2Node instance) { instance.IsEmpty.Should().BeTrue(); if (instance.AllowedAttributes.Count == 0) { return; } instance.Attributes.Should().BeEmpty(); instance.HasAttribute(instance.AllowedAttributes.First()).Should().BeFalse(); instance.HasAttribute(new Fb2Attribute(instance.AllowedAttributes.First(), "blah")).Should().BeFalse(); instance.HasAttribute(instance.AllowedAttributes.First(), true).Should().BeFalse(); instance.HasAttribute(new Fb2Attribute(instance.AllowedAttributes.First(), "blah", "http://www.w3.org//xlink")).Should().BeFalse(); }