/// <summary> /// Asserts that an element has a specific attribute /// </summary> public static AndConnector <NodeWrapper> ShouldContainAttribute(this NodeWrapper node, string name) { Asserts.True(node.HasAttribute(name)); return(new AndConnector <NodeWrapper>(node)); }
/// <summary> /// Asserts that an element should exist at least once /// </summary> public static AndConnector <QueryWrapper> ShouldExist(this QueryWrapper query) { Asserts.True(query.Any()); return(new AndConnector <QueryWrapper>(query)); }