diff options
Diffstat (limited to 'src/DotNetOpenAuth.OpenId/Xrds/XrdsNode.cs')
-rw-r--r-- | src/DotNetOpenAuth.OpenId/Xrds/XrdsNode.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DotNetOpenAuth.OpenId/Xrds/XrdsNode.cs b/src/DotNetOpenAuth.OpenId/Xrds/XrdsNode.cs index 3e163f7..91c59ba 100644 --- a/src/DotNetOpenAuth.OpenId/Xrds/XrdsNode.cs +++ b/src/DotNetOpenAuth.OpenId/Xrds/XrdsNode.cs @@ -6,10 +6,10 @@ namespace DotNetOpenAuth.Xrds { using System; - using System.Diagnostics.Contracts; using System.Xml; using System.Xml.XPath; using DotNetOpenAuth.Messaging; + using Validation; /// <summary> /// A node in an XRDS document. @@ -45,7 +45,7 @@ namespace DotNetOpenAuth.Xrds { /// <param name="document">The document's root node, which this instance represents.</param> protected XrdsNode(XPathNavigator document) { Requires.NotNull(document, "document"); - Requires.True(document.NameTable != null, null); + Requires.That(document.NameTable != null, "document", "requires document.NameTable != null"); this.Node = document; this.XmlNamespaceResolver = new XmlNamespaceManager(document.NameTable); |