public void ValidatesResources() { // Arrange var statement = new AuthzDecisionStatement(); var validator = new Saml20StatementValidator(); statement.Resource = string.Empty; var action = new Schema.Core.Action { Namespace = "http://valid/namespace" }; statement.Action = new[] { action }; validator.ValidateStatement(statement); statement.Resource = "urn:valid.ok:askjld"; // Act validator.ValidateStatement(statement); }