private static void AssertAllOfEqual(XacmlAllOf expected, XacmlAllOf actual) { Assert.NotNull(actual); Assert.NotNull(expected); AssertCollections(expected.Matches, actual.Matches, AssertMatchEqual); }
private static void WriteAllOf(XmlWriter writer, XacmlAllOf xacmlAllOf) { Guard.ArgumentNotNull(writer, nameof(writer)); Guard.ArgumentNotNull(xacmlAllOf, nameof(xacmlAllOf)); writer.WriteStartElement(XacmlConstants.Prefixes.Xacml, XacmlConstants.ElementNames.AllOf, Xacml30Constants.NameSpaces.Policy); foreach (XacmlMatch xacmlMatch in xacmlAllOf.Matches) { WriteMatch(writer, xacmlMatch); } writer.WriteEndElement(); }